diff --git a/backend/extensions/Squidex.Extensions/Validation/CompositeUniqueValidator.cs b/backend/extensions/Squidex.Extensions/Validation/CompositeUniqueValidator.cs index f9de5e4b1..5a25ef73a 100644 --- a/backend/extensions/Squidex.Extensions/Validation/CompositeUniqueValidator.cs +++ b/backend/extensions/Squidex.Extensions/Validation/CompositeUniqueValidator.cs @@ -22,11 +22,11 @@ internal sealed class CompositeUniqueValidator(string contentTag, IContentReposi { if (value is ContentData data) { - context.Root.AddTask(async ct => await ValidateAsync(data, context)); + context.Root.AddTask(ct => ValidateAsync(data, context)); } } - private async Task ValidateAsync(ContentData data, ValidationContext context) + private async ValueTask ValidateAsync(ContentData data, ValidationContext context) { var validateableFields = context.Root.Schema.Fields.Where(IsValidateableField); @@ -48,7 +48,7 @@ internal sealed class CompositeUniqueValidator(string contentTag, IContentReposi var found = await contentRepository.QueryIdsAsync(context.Root.App, context.Root.Schema, filter, SearchScope.All); if (found.Any(x => x.Id != context.Root.ContentId)) { - context.AddError(Enumerable.Empty(), "A content with the same values already exist."); + context.AddError("A content with the same values already exist.", Enumerable.Empty()); } } } diff --git a/backend/i18n/frontend_en.json b/backend/i18n/frontend_en.json index b984905e7..fa0d64df8 100644 --- a/backend/i18n/frontend_en.json +++ b/backend/i18n/frontend_en.json @@ -852,6 +852,7 @@ "schemas.field.allowedValues": "Allowed Values", "schemas.field.createEnum": "Generate GraphQL Enum.", "schemas.field.createEnumHint": "Generate a GraphQL enumeration for this field. The input format is not compatible with a string anymore and can be a breaking change for your client.", + "schemas.field.createOnly": "Immutable (cannot be changed)", "schemas.field.defaultValue": "Default Value", "schemas.field.defaultValues": "Default Values", "schemas.field.defaultValuesHint": "Set the default value per language and override the default value property, if defined. Only use it if really needed.", diff --git a/backend/i18n/frontend_fr.json b/backend/i18n/frontend_fr.json index 72c296e96..5a631e8a1 100644 --- a/backend/i18n/frontend_fr.json +++ b/backend/i18n/frontend_fr.json @@ -852,6 +852,7 @@ "schemas.field.allowedValues": "Valeurs autorisées", "schemas.field.createEnum": "Générer l'énumération GraphQL.", "schemas.field.createEnumHint": "Générez une énumération GraphQL pour ce champ. Le format d'entrée n'est plus compatible avec une chaîne et peut constituer un changement radical pour votre client.", + "schemas.field.createOnly": "Immutable (cannot be changed)", "schemas.field.defaultValue": "Valeur par défaut", "schemas.field.defaultValues": "Les valeurs par défaut", "schemas.field.defaultValuesHint": "Définissez la valeur par défaut par langue et remplacez la propriété de valeur par défaut, si elle est définie. Ne l'utilisez qu'en cas de besoin.", diff --git a/backend/i18n/frontend_it.json b/backend/i18n/frontend_it.json index 2bc4c3c71..642864932 100644 --- a/backend/i18n/frontend_it.json +++ b/backend/i18n/frontend_it.json @@ -852,6 +852,7 @@ "schemas.field.allowedValues": "Valori consentiti", "schemas.field.createEnum": "Generate GraphQL Enum.", "schemas.field.createEnumHint": "Generate a GraphQL enumeration for this field. The input format is not compatible with a string anymore and can be a breaking change for your client.", + "schemas.field.createOnly": "Immutable (cannot be changed)", "schemas.field.defaultValue": "Valore predefinito", "schemas.field.defaultValues": "Valori predefiniti", "schemas.field.defaultValuesHint": "Imposta il valore predefinito per la lingua e sovrascrivere il valore predefinito, se definito. Usalo solo se davvero necessario.", diff --git a/backend/i18n/frontend_nl.json b/backend/i18n/frontend_nl.json index bab57073b..779b3e50d 100644 --- a/backend/i18n/frontend_nl.json +++ b/backend/i18n/frontend_nl.json @@ -852,6 +852,7 @@ "schemas.field.allowedValues": "Toegestane waarden", "schemas.field.createEnum": "Generate GraphQL Enum.", "schemas.field.createEnumHint": "Generate a GraphQL enumeration for this field. The input format is not compatible with a string anymore and can be a breaking change for your client.", + "schemas.field.createOnly": "Immutable (cannot be changed)", "schemas.field.defaultValue": "Standaardwaarde", "schemas.field.defaultValues": "Standaardwaardes", "schemas.field.defaultValuesHint": "Stel de standaardwaarde per taal in en overschrijf de standaardwaarde-eigenschap, indien gedefinieerd. Gebruik het alleen als het echt nodig is.", diff --git a/backend/i18n/frontend_pt.json b/backend/i18n/frontend_pt.json index 8c7d9e10c..3444ada57 100644 --- a/backend/i18n/frontend_pt.json +++ b/backend/i18n/frontend_pt.json @@ -852,6 +852,7 @@ "schemas.field.allowedValues": "Valores Permitidos", "schemas.field.createEnum": "Gerar GraphQL Enum.", "schemas.field.createEnumHint": "Gere uma enumeração GraphQL para este campo. O formato de entrada já não é compatível com uma corda e pode ser uma mudança de rutura para o seu cliente.", + "schemas.field.createOnly": "Immutable (cannot be changed)", "schemas.field.defaultValue": "Valor Predefinido", "schemas.field.defaultValues": "Valores predefinidos", "schemas.field.defaultValuesHint": "Desaponha o valor predefinido por idioma e substitua a propriedade de valor predefinido, se definida. Só a use se realmente for necessário.", diff --git a/backend/i18n/frontend_zh.json b/backend/i18n/frontend_zh.json index 3565eada5..d9b02e36e 100644 --- a/backend/i18n/frontend_zh.json +++ b/backend/i18n/frontend_zh.json @@ -852,6 +852,7 @@ "schemas.field.allowedValues": "允许的值", "schemas.field.createEnum": "Generate GraphQL Enum.", "schemas.field.createEnumHint": "Generate a GraphQL enumeration for this field. The input format is not compatible with a string anymore and can be a breaking change for your client.", + "schemas.field.createOnly": "Immutable (cannot be changed)", "schemas.field.defaultValue": "Default Value", "schemas.field.defaultValues": "默认值", "schemas.field.defaultValuesHint": "设置每种语言的默认值并覆盖默认值属性(如果已定义)。仅在真正需要时才使用它。", diff --git a/backend/i18n/source/backend_en.json b/backend/i18n/source/backend_en.json index 2fe628c7a..aabfcd7b8 100644 --- a/backend/i18n/source/backend_en.json +++ b/backend/i18n/source/backend_en.json @@ -153,6 +153,7 @@ "contents.validation.between": "Must be between {min} and {max}.", "contents.validation.characterCount": "Must have exactly {count} character(s).", "contents.validation.charactersBetween": "Must have between {min} and {max} character(s).", + "contents.validation.createOnly": "Field cannot be changed after creation.", "contents.validation.duplicates": "Must not contain duplicate values.", "contents.validation.error": "Validation failed with internal error.", "contents.validation.exactValue": "Must be exactly {value}.", diff --git a/backend/i18n/source/frontend_en.json b/backend/i18n/source/frontend_en.json index b984905e7..fa0d64df8 100644 --- a/backend/i18n/source/frontend_en.json +++ b/backend/i18n/source/frontend_en.json @@ -852,6 +852,7 @@ "schemas.field.allowedValues": "Allowed Values", "schemas.field.createEnum": "Generate GraphQL Enum.", "schemas.field.createEnumHint": "Generate a GraphQL enumeration for this field. The input format is not compatible with a string anymore and can be a breaking change for your client.", + "schemas.field.createOnly": "Immutable (cannot be changed)", "schemas.field.defaultValue": "Default Value", "schemas.field.defaultValues": "Default Values", "schemas.field.defaultValuesHint": "Set the default value per language and override the default value property, if defined. Only use it if really needed.", diff --git a/backend/src/Squidex.Domain.Apps.Core.Model/FieldDescriptions.Designer.cs b/backend/src/Squidex.Domain.Apps.Core.Model/FieldDescriptions.Designer.cs index 4cfd84d2e..a5d3b8211 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Model/FieldDescriptions.Designer.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Model/FieldDescriptions.Designer.cs @@ -762,6 +762,24 @@ namespace Squidex.Domain.Apps.Core { } } + /// + /// Looks up a localized string similar to The type of action that is performed.. + /// + public static string FieldRuleAction { + get { + return ResourceManager.GetString("FieldRuleAction", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The context object.. + /// + public static string FieldRuleContext { + get { + return ResourceManager.GetString("FieldRuleContext", resourceCulture); + } + } + /// /// Looks up a localized string similar to The graphql request.. /// diff --git a/backend/src/Squidex.Domain.Apps.Core.Model/FieldDescriptions.resx b/backend/src/Squidex.Domain.Apps.Core.Model/FieldDescriptions.resx index 9df238aa6..97c9d1af2 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Model/FieldDescriptions.resx +++ b/backend/src/Squidex.Domain.Apps.Core.Model/FieldDescriptions.resx @@ -426,6 +426,9 @@ The raw value. + + The context object. + The ID of the schema. @@ -477,4 +480,7 @@ The list of additional properties that have the name 'name'. + + The type of action that is performed. + \ No newline at end of file diff --git a/backend/src/Squidex.Domain.Apps.Core.Model/Schemas/FieldProperties.cs b/backend/src/Squidex.Domain.Apps.Core.Model/Schemas/FieldProperties.cs index 34733f5ca..c17c8e946 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Model/Schemas/FieldProperties.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Model/Schemas/FieldProperties.cs @@ -17,6 +17,8 @@ public abstract record FieldProperties : NamedElementPropertiesBase public bool IsHalfWidth { get; init; } + public bool IsCreateOnly { get; init; } + public string? Placeholder { get; init; } public string? EditorUrl { get; init; } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/Scripting/ScriptingCompleter.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/Scripting/ScriptingCompleter.cs index 0a9c3a0de..11457179a 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/Scripting/ScriptingCompleter.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/Scripting/ScriptingCompleter.cs @@ -231,6 +231,13 @@ public sealed partial class ScriptingCompleter(IEnumerable de FieldDescriptions.UserAppRole); }); + AddObject("ctx", FieldDescriptions.FieldRuleContext, () => + { + + Add(JsonType.String, "action", + FieldDescriptions.UserAppRole, ["Create", "Update"]); + }); + AddObject("data", FieldDescriptions.ContentData, () => { AddData(); diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/DefaultValidatorsFactory.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/DefaultValidatorsFactory.cs index 75f318a3d..cab294e71 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/DefaultValidatorsFactory.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/DefaultValidatorsFactory.cs @@ -5,6 +5,7 @@ // All rights reserved. Licensed under the MIT license. // ========================================================================== +using Squidex.Domain.Apps.Core.Contents; using Squidex.Domain.Apps.Core.Schemas; using Squidex.Domain.Apps.Core.ValidateContent.Validators; @@ -18,6 +19,11 @@ public sealed class DefaultValidatorsFactory : IValidatorsFactory { yield return NoValueValidator.Instance; } + + if (field is IRootField rootField && field.RawProperties.IsCreateOnly && context.Root.PreviousData is ContentData previous) + { + yield return new NotChangedValidator(rootField, previous); + } } public IEnumerable CreateValueValidators(ValidationContext context, IField field, ValidatorFactory factory) diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/RootContext.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/RootContext.cs index 1d0d25cdd..1f97b10aa 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/RootContext.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/RootContext.cs @@ -7,6 +7,7 @@ using System.Collections.Concurrent; using Squidex.Domain.Apps.Core.Apps; +using Squidex.Domain.Apps.Core.Contents; using Squidex.Domain.Apps.Core.Schemas; using Squidex.Infrastructure; using Squidex.Infrastructure.Json; @@ -30,6 +31,8 @@ public sealed class RootContext(App app, Schema schema, DomainId contentId, Reso public ResolvedComponents Components { get; } = components; + public ContentData? PreviousData { get; init; } + public IEnumerable Errors { get => errors; diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/ValidationContext.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/ValidationContext.cs index 638e0b762..d4cbde168 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/ValidationContext.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/ValidationContext.cs @@ -21,9 +21,9 @@ public sealed record ValidationContext(RootContext Root) public ValidationAction Action { get; init; } - public void AddError(IEnumerable path, string message) + public void AddError(string message, IEnumerable? path = null) { - Root.AddError(path, message); + Root.AddError(path ?? Path, message); } public ValidationContext Optimized(bool optimized = true) diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/AggregateValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/AggregateValidator.cs index cd60d30a6..b54b358d8 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/AggregateValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/AggregateValidator.cs @@ -29,7 +29,7 @@ public sealed class AggregateValidator(IEnumerable? validators) : IV } catch { - context.AddError(context.Path, T.Get("contents.validation.error")); + context.AddError(T.Get("contents.validation.error")); } } } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/AllowedValuesValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/AllowedValuesValidator.cs index 0ea3e4de2..75d76b1db 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/AllowedValuesValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/AllowedValuesValidator.cs @@ -30,7 +30,7 @@ public sealed class AllowedValuesValidator : IValidator { if (value is TValue typedValue && !allowedValues.Contains(typedValue)) { - context.AddError(context.Path, T.Get("contents.validation.notAllowed")); + context.AddError(T.Get("contents.validation.notAllowed"), context.Path); } } } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/AssetsValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/AssetsValidator.cs index 5d4405768..03b210722 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/AssetsValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/AssetsValidator.cs @@ -50,7 +50,7 @@ public sealed class AssetsValidator : IValidator context.Root.AddTask(ct => ValidateCoreAsync(value, context, ct)); } - private async Task ValidateCoreAsync(object? value, ValidationContext context, + private async ValueTask ValidateCoreAsync(object? value, ValidationContext context, CancellationToken ct) { var foundIds = new List(); @@ -69,7 +69,7 @@ public sealed class AssetsValidator : IValidator { if (context.Action == ValidationAction.Upsert) { - context.AddError(assetPath, T.Get("contents.validation.assetNotFound", new { id = assetId })); + context.AddError(T.Get("contents.validation.assetNotFound", new { id = assetId }), assetPath); } continue; @@ -118,19 +118,19 @@ public sealed class AssetsValidator : IValidator { var min = properties.MinSize.Value.ToReadableSize(); - context.AddError(path, T.Get("contents.validation.minimumSize", new { size = asset.FileSize.ToReadableSize(), min })); + context.AddError(T.Get("contents.validation.minimumSize", new { size = asset.FileSize.ToReadableSize(), min }), path); } if (properties.MaxSize != null && asset.FileSize > properties.MaxSize) { var max = properties.MaxSize.Value.ToReadableSize(); - context.AddError(path, T.Get("contents.validation.maximumSize", new { size = asset.FileSize.ToReadableSize(), max })); + context.AddError(T.Get("contents.validation.maximumSize", new { size = asset.FileSize.ToReadableSize(), max }), path); } if (properties.AllowedExtensions is { Count: > 0 } && !properties.AllowedExtensions.Any(x => asset.FileName.EndsWith("." + x, StringComparison.OrdinalIgnoreCase))) { - context.AddError(path, T.Get("contents.validation.extension")); + context.AddError(T.Get("contents.validation.extension"), path); } } @@ -140,7 +140,7 @@ public sealed class AssetsValidator : IValidator if (properties.ExpectedType != null && properties.ExpectedType != type) { - context.AddError(path, T.Get("contents.validation.assetType", new { type = properties.ExpectedType })); + context.AddError(T.Get("contents.validation.assetType", new { type = properties.ExpectedType }), path); } } @@ -150,22 +150,22 @@ public sealed class AssetsValidator : IValidator if (properties.MinWidth != null && w < properties.MinWidth) { - context.AddError(path, T.Get("contents.validation.minimumWidth", new { width = w, min = properties.MinWidth })); + context.AddError(T.Get("contents.validation.minimumWidth", new { width = w, min = properties.MinWidth }), path); } if (properties.MaxWidth != null && w > properties.MaxWidth) { - context.AddError(path, T.Get("contents.validation.maximumWidth", new { width = w, max = properties.MaxWidth })); + context.AddError(T.Get("contents.validation.maximumWidth", new { width = w, max = properties.MaxWidth }), path); } if (properties.MinHeight != null && h < properties.MinHeight) { - context.AddError(path, T.Get("contents.validation.minimumHeight", new { height = h, min = properties.MinHeight })); + context.AddError(T.Get("contents.validation.minimumHeight", new { height = h, min = properties.MinHeight }), path); } if (properties.MaxHeight != null && h > properties.MaxHeight) { - context.AddError(path, T.Get("contents.validation.maximumHeight", new { height = h, max = properties.MaxHeight })); + context.AddError(T.Get("contents.validation.maximumHeight", new { height = h, max = properties.MaxHeight }), path); } if (properties.AspectHeight != null && properties.AspectWidth != null) @@ -174,7 +174,7 @@ public sealed class AssetsValidator : IValidator if (Math.Abs(expectedRatio - actualRatio) > double.Epsilon) { - context.AddError(path, T.Get("contents.validation.aspectRatio", new { width = properties.AspectWidth, height = properties.AspectHeight })); + context.AddError(T.Get("contents.validation.aspectRatio", new { width = properties.AspectWidth, height = properties.AspectHeight }), path); } } } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/CollectionItemValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/CollectionItemValidator.cs index 77cbdf430..fb353ad59 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/CollectionItemValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/CollectionItemValidator.cs @@ -23,17 +23,18 @@ public sealed class CollectionItemValidator : IValidator public void Validate(object? value, ValidationContext context) { - if (value is ICollection { Count: > 0 } items) + if (value is not ICollection { Count: > 0 } items) { - var itemIndex = 1; + return; + } - foreach (var item in items) - { - var itemContext = context.Nested($"[{itemIndex}]"); + var itemIndex = 1; + foreach (var item in items) + { + var itemContext = context.Nested($"[{itemIndex}]"); - itemValidator.Validate(item, itemContext); - itemIndex++; - } + itemValidator.Validate(item, itemContext); + itemIndex++; } } } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/CollectionValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/CollectionValidator.cs index 793fd9902..9f437e1f4 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/CollectionValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/CollectionValidator.cs @@ -35,7 +35,7 @@ public sealed class CollectionValidator : IValidator { if (isRequired && !context.IsOptional) { - context.AddError(context.Path, T.Get("contents.validation.required")); + context.AddError(T.Get("contents.validation.required")); } return; @@ -45,23 +45,23 @@ public sealed class CollectionValidator : IValidator { if (minItems == maxItems && minItems != items.Count) { - context.AddError(context.Path, T.Get("contents.validation.itemCount", new { count = minItems })); + context.AddError(T.Get("contents.validation.itemCount", new { count = minItems })); } else if (items.Count < minItems || items.Count > maxItems) { - context.AddError(context.Path, T.Get("contents.validation.itemCountBetween", new { min = minItems, max = maxItems })); + context.AddError(T.Get("contents.validation.itemCountBetween", new { min = minItems, max = maxItems })); } } else { if (minItems != null && items.Count < minItems) { - context.AddError(context.Path, T.Get("contents.validation.minItems", new { min = minItems })); + context.AddError(T.Get("contents.validation.minItems", new { min = minItems })); } if (maxItems != null && items.Count > maxItems) { - context.AddError(context.Path, T.Get("contents.validation.maxItems", new { max = maxItems })); + context.AddError(T.Get("contents.validation.maxItems", new { max = maxItems })); } } } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/FieldValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/FieldValidator.cs index 870cfe3a3..fb0c6cc74 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/FieldValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/FieldValidator.cs @@ -29,41 +29,44 @@ public sealed class FieldValidator : IValidator public void Validate(object? value, ValidationContext context) { - var typedValue = value; + var typedValue = ResolveValue(value, context); - try + validator.Validate(typedValue, context); + } + + private object? ResolveValue(object? value, ValidationContext context) + { + if (value is not JsonValue jsonValue) { - if (value is JsonValue jsonValue) - { - if (jsonValue == default || Updates.IsUnset(jsonValue)) - { - typedValue = null; - } - else - { - typedValue = jsonValue.Value; + return value; + } + + if (jsonValue == default || Updates.IsUnset(jsonValue)) + { + return null; + } - var (typed, error) = JsonValueConverter.ConvertValue(field, jsonValue, - context.Root.Serializer, - context.Root.Components); + var result = jsonValue.Value; + try + { + var (typed, error) = JsonValueConverter.ConvertValue(field, jsonValue, + context.Root.Serializer, + context.Root.Components); - if (error != null) - { - context.AddError(context.Path, error.Error); - } - else - { - typedValue = typed; - } - } + if (error != null) + { + context.AddError(error.Error); + } + else + { + result = typed; } } catch { - context.AddError(context.Path, T.Get("contents.validation.invalid")); - return; + context.AddError(T.Get("contents.validation.invalid")); } - validator.Validate(typedValue, context); + return result; } } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/NoValueValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/NoValueValidator.cs index 6eb3b1f81..552dd31ae 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/NoValueValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/NoValueValidator.cs @@ -21,7 +21,7 @@ public sealed class NoValueValidator : IValidator { if (!value.IsUndefined()) { - context.AddError(context.Path, T.Get("contents.validation.mustBeEmpty")); + context.AddError(T.Get("contents.validation.mustBeEmpty")); } } } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/NotChangedValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/NotChangedValidator.cs new file mode 100644 index 000000000..fe7368b94 --- /dev/null +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/NotChangedValidator.cs @@ -0,0 +1,43 @@ +// ========================================================================== +// Squidex Headless CMS +// ========================================================================== +// Copyright (c) Squidex UG (haftungsbeschraenkt) +// All rights reserved. Licensed under the MIT license. +// ========================================================================== + +using Squidex.Domain.Apps.Core.Apps; +using Squidex.Domain.Apps.Core.Contents; +using Squidex.Domain.Apps.Core.Schemas; +using Squidex.Infrastructure.Translations; + +namespace Squidex.Domain.Apps.Core.ValidateContent.Validators; + +public sealed class NotChangedValidator(IRootField field, ContentData previousData) : IValidator +{ + public void Validate(object? value, ValidationContext context) + { + var previousFieldData = + previousData.GetValueOrDefault(field.Name); + + var newFieldData = + value as ContentFieldData; + + var partitions = context.Root.App.PartitionResolver()(field.Partitioning); + + foreach (var partition in partitions.AllKeys) + { + var previousLanguageValue = + previousFieldData?.GetValueOrDefault(partition); + + var newLanguageValue = + newFieldData?.GetValueOrDefault(partition); + + if (!Equals(previousLanguageValue, newLanguageValue)) + { + var path = context.Path.Enqueue(partition); + + context.AddError(T.Get("contents.validation.createOnly"), path); + } + } + } +} diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/ObjectValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/ObjectValidator.cs index ede57af39..7c35faad3 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/ObjectValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/ObjectValidator.cs @@ -23,45 +23,47 @@ public sealed class ObjectValidator(IDictionary values) + if (value is not IReadOnlyDictionary values) { - foreach (var fieldData in values) - { - var name = fieldData.Key; + return; + } - if (!fields.ContainsKey(name)) - { - context.AddError(context.Path.Enqueue(name), T.Get("contents.validation.unknownField", new { fieldType })); - } - } + foreach (var fieldData in values) + { + var name = fieldData.Key; - foreach (var (name, field) in fields) + if (!fields.ContainsKey(name)) { - var fieldValue = Undefined.Value; + context.AddError(T.Get("contents.validation.unknownField", new { fieldType }), context.Path.Enqueue(name)); + } + } - if (!values.TryGetValue(name, out var nestedValue)) - { - // If the original value was unset, we have to validate the children for required values. - if (isPartial && !originalValue.IsUnset()) - { - continue; - } - } - else - { - fieldValue = nestedValue!; - } + foreach (var (name, field) in fields) + { + var fieldValue = Undefined.Value; - // Use a special null values for unsets so we can treat them as null for required validators. - if (Updates.IsUnset(fieldValue)) + if (!values.TryGetValue(name, out var nestedValue)) + { + // If the original value was unset, we have to validate the children for required values. + if (isPartial && !originalValue.IsUnset()) { - fieldValue = Undefined.Unset; + continue; } + } + else + { + fieldValue = nestedValue!; + } - var fieldContext = context.Nested(name, field.IsOptional); - - field.Validator.Validate(fieldValue, fieldContext); + // Use a special null values for unsets so we can treat them as null for required validators. + if (Updates.IsUnset(fieldValue)) + { + fieldValue = Undefined.Unset; } + + var fieldContext = context.Nested(name, field.IsOptional); + + field.Validator.Validate(fieldValue, fieldContext); } } } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/PatternValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/PatternValidator.cs index b6493067c..5c5b02021 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/PatternValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/PatternValidator.cs @@ -35,29 +35,28 @@ public class PatternValidator : IValidator public void Validate(object? value, ValidationContext context) { - if (value is string stringValue) + if (value is not string stringValue || string.IsNullOrEmpty(stringValue)) { - if (!string.IsNullOrEmpty(stringValue)) + return; + } + + try + { + if (!regex.IsMatch(stringValue)) { - try + if (string.IsNullOrWhiteSpace(errorMessage)) { - if (!regex.IsMatch(stringValue)) - { - if (string.IsNullOrWhiteSpace(errorMessage)) - { - context.AddError(context.Path, T.Get("contents.validation.pattern")); - } - else - { - context.AddError(context.Path, errorMessage); - } - } + context.AddError(T.Get("contents.validation.pattern")); } - catch + else { - context.AddError(context.Path, T.Get("contents.validation.regexTooSlow")); + context.AddError(errorMessage); } } } + catch + { + context.AddError(T.Get("contents.validation.regexTooSlow")); + } } } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/RangeValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/RangeValidator.cs index 5f6a9fa19..0a6442dfa 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/RangeValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/RangeValidator.cs @@ -28,30 +28,32 @@ public sealed class RangeValidator : IValidator where TValue : struct, I public void Validate(object? value, ValidationContext context) { - if (value is TValue typedValue) + if (value is not TValue typedValue) { - if (min != null && max != null) + return; + } + + if (min != null && max != null) + { + if (Equals(min, max) && Equals(min.Value, max.Value)) + { + context.AddError(T.Get("contents.validation.exactValue", new { value = max.Value })); + } + else if (typedValue.CompareTo(min.Value) < 0 || typedValue.CompareTo(max.Value) > 0) { - if (Equals(min, max) && Equals(min.Value, max.Value)) - { - context.AddError(context.Path, T.Get("contents.validation.exactValue", new { value = max.Value })); - } - else if (typedValue.CompareTo(min.Value) < 0 || typedValue.CompareTo(max.Value) > 0) - { - context.AddError(context.Path, T.Get("contents.validation.between", new { min, max })); - } + context.AddError(T.Get("contents.validation.between", new { min, max })); } - else + } + else + { + if (min != null && typedValue.CompareTo(min.Value) < 0) + { + context.AddError(T.Get("contents.validation.min", new { min })); + } + + if (max != null && typedValue.CompareTo(max.Value) > 0) { - if (min != null && typedValue.CompareTo(min.Value) < 0) - { - context.AddError(context.Path, T.Get("contents.validation.min", new { min })); - } - - if (max != null && typedValue.CompareTo(max.Value) > 0) - { - context.AddError(context.Path, T.Get("contents.validation.max", new { max })); - } + context.AddError(T.Get("contents.validation.max", new { max })); } } } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/ReferencesValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/ReferencesValidator.cs index 50988f5b1..a669076ea 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/ReferencesValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/ReferencesValidator.cs @@ -49,7 +49,7 @@ public sealed class ReferencesValidator : IValidator context.Root.AddTask(ct => ValidateCoreAsync(value, context, ct)); } - private async Task ValidateCoreAsync(object? value, ValidationContext context, + private async ValueTask ValidateCoreAsync(object? value, ValidationContext context, CancellationToken ct) { var foundIds = new List(); @@ -69,7 +69,7 @@ public sealed class ReferencesValidator : IValidator { if (context.Action == ValidationAction.Upsert) { - context.AddError(path, T.Get("contents.validation.referenceNotFound", new { id })); + context.AddError(T.Get("contents.validation.referenceNotFound", new { id }), path); } continue; @@ -81,7 +81,7 @@ public sealed class ReferencesValidator : IValidator { if (context.Action == ValidationAction.Upsert) { - context.AddError(path, T.Get("contents.validation.referenceToInvalidSchema", new { id })); + context.AddError(T.Get("contents.validation.referenceToInvalidSchema", new { id }), path); } isValid = false; diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/RequiredStringValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/RequiredStringValidator.cs index 9d3478444..1c628f44d 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/RequiredStringValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/RequiredStringValidator.cs @@ -20,7 +20,7 @@ public class RequiredStringValidator(bool validateEmptyStrings = false) : IValid if (value.IsNullOrUndefined() || IsEmptyString(value)) { - context.AddError(context.Path, T.Get("contents.validation.required")); + context.AddError(T.Get("contents.validation.required")); } } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/RequiredValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/RequiredValidator.cs index a585dff10..8e85ac875 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/RequiredValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/RequiredValidator.cs @@ -15,7 +15,7 @@ public class RequiredValidator : IValidator { if (value.IsNullOrUndefined() && !context.IsOptional) { - context.AddError(context.Path, T.Get("contents.validation.required")); + context.AddError(T.Get("contents.validation.required"), context.Path); } } } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/StringLengthValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/StringLengthValidator.cs index 38ee990f6..676933294 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/StringLengthValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/StringLengthValidator.cs @@ -28,30 +28,32 @@ public class StringLengthValidator : IValidator public void Validate(object? value, ValidationContext context) { - if (value is string stringValue && !string.IsNullOrEmpty(stringValue)) + if (value is not string stringValue || string.IsNullOrEmpty(stringValue)) { - if (minLength != null && maxLength != null) + return; + } + + if (minLength != null && maxLength != null) + { + if (minLength == maxLength && minLength != stringValue.Length) + { + context.AddError(T.Get("contents.validation.characterCount", new { count = minLength }), context.Path); + } + else if (stringValue.Length < minLength || stringValue.Length > maxLength) { - if (minLength == maxLength && minLength != stringValue.Length) - { - context.AddError(context.Path, T.Get("contents.validation.characterCount", new { count = minLength })); - } - else if (stringValue.Length < minLength || stringValue.Length > maxLength) - { - context.AddError(context.Path, T.Get("contents.validation.charactersBetween", new { min = minLength, max = maxLength })); - } + context.AddError(T.Get("contents.validation.charactersBetween", new { min = minLength, max = maxLength }), context.Path); } - else + } + else + { + if (minLength != null && stringValue.Length < minLength) + { + context.AddError(T.Get("contents.validation.minLength", new { min = minLength }), context.Path); + } + + if (maxLength != null && stringValue.Length > maxLength) { - if (minLength != null && stringValue.Length < minLength) - { - context.AddError(context.Path, T.Get("contents.validation.minLength", new { min = minLength })); - } - - if (maxLength != null && stringValue.Length > maxLength) - { - context.AddError(context.Path, T.Get("contents.validation.maxLength", new { max = maxLength })); - } + context.AddError(T.Get("contents.validation.maxLength", new { max = maxLength }), context.Path); } } } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/StringTextValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/StringTextValidator.cs index 78253a60c..8c3e43bcc 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/StringTextValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/StringTextValidator.cs @@ -44,68 +44,70 @@ public sealed class StringTextValidator : IValidator public void Validate(object? value, ValidationContext context) { - if (value is string stringValue && !string.IsNullOrEmpty(stringValue)) + if (value is not string stringValue || string.IsNullOrEmpty(stringValue)) { - if (transform != null) - { - stringValue = transform(stringValue); - } + return; + } - if (minWords != null || maxWords != null) - { - var words = stringValue.WordCount(); + if (transform != null) + { + stringValue = transform(stringValue); + } - if (minWords != null && maxWords != null) + if (minWords != null || maxWords != null) + { + var words = stringValue.WordCount(); + + if (minWords != null && maxWords != null) + { + if (minWords == maxWords && minWords != words) + { + context.AddError(T.Get("contents.validation.wordCount", new { count = minWords })); + } + else if (words < minWords || words > maxWords) { - if (minWords == maxWords && minWords != words) - { - context.AddError(context.Path, T.Get("contents.validation.wordCount", new { count = minWords })); - } - else if (words < minWords || words > maxWords) - { - context.AddError(context.Path, T.Get("contents.validation.wordsBetween", new { min = minWords, max = maxWords })); - } + context.AddError(T.Get("contents.validation.wordsBetween", new { min = minWords, max = maxWords })); } - else + } + else + { + if (words < minWords) { - if (words < minWords) - { - context.AddError(context.Path, T.Get("contents.validation.minWords", new { min = minWords })); - } + context.AddError(T.Get("contents.validation.minWords", new { min = minWords })); + } - if (words > maxWords) - { - context.AddError(context.Path, T.Get("contents.validation.maxWords", new { max = maxWords })); - } + if (words > maxWords) + { + context.AddError(T.Get("contents.validation.maxWords", new { max = maxWords })); } } + } - if (minCharacters != null || maxCharacters != null) - { - var characters = stringValue.CharacterCount(); + if (minCharacters != null || maxCharacters != null) + { + var characters = stringValue.CharacterCount(); - if (minCharacters != null && maxCharacters != null) + if (minCharacters != null && maxCharacters != null) + { + if (minCharacters == maxCharacters && minCharacters != characters) { - if (minCharacters == maxCharacters && minCharacters != characters) - { - context.AddError(context.Path, T.Get("contents.validation.normalCharacterCount", new { count = minCharacters })); - } - else if (characters < minCharacters || characters > maxCharacters) - { - context.AddError(context.Path, T.Get("contents.validation.normalCharactersBetween", new { min = minCharacters, max = maxCharacters })); - } + context.AddError(T.Get("contents.validation.normalCharacterCount", new { count = minCharacters })); } - else + else if (characters < minCharacters || characters > maxCharacters) { - if (characters < minCharacters) - { - context.AddError(context.Path, T.Get("contents.validation.minNormalCharacters", new { min = minCharacters })); - } + context.AddError(T.Get("contents.validation.normalCharactersBetween", new { min = minCharacters, max = maxCharacters })); + } + } + else + { + if (characters < minCharacters) + { + context.AddError(T.Get("contents.validation.minNormalCharacters", new { min = minCharacters }), context.Path); + } - if (characters > maxCharacters) - { - context.AddError(context.Path, T.Get("contents.validation.maxCharacters", new { max = maxCharacters })); - } + if (characters > maxCharacters) + { + context.AddError(T.Get("contents.validation.maxCharacters", new { max = maxCharacters }), context.Path); } } } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/UniqueObjectValuesValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/UniqueObjectValuesValidator.cs index 9ef41c1e3..987902b0b 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/UniqueObjectValuesValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/UniqueObjectValuesValidator.cs @@ -37,7 +37,7 @@ public sealed class UniqueObjectValuesValidator(IEnumerable fields) : IV { if (item.TryGetValue(field, out var fieldValue) && !duplicates.Add(fieldValue)) { - context.AddError(context.Path, T.Get("contents.validation.uniqueObjectValues", new { field })); + context.AddError(T.Get("contents.validation.uniqueObjectValues", new { field })); break; } } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/UniqueValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/UniqueValidator.cs index 13978b10e..e7a965eab 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/UniqueValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/UniqueValidator.cs @@ -42,14 +42,14 @@ public sealed class UniqueValidator(CheckUniqueness checkUniqueness) : IValidato } } - private async Task ValidateCoreAsync(ValidationContext context, FilterNode filter, + private async ValueTask ValidateCoreAsync(ValidationContext context, FilterNode filter, CancellationToken ct) { var found = await checkUniqueness(filter, ct); if (found.Any(x => x.Id != context.Root.ContentId)) { - context.AddError(context.Path, T.Get("contents.validation.unique")); + context.AddError(T.Get("contents.validation.unique")); } } diff --git a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/UniqueValuesValidator.cs b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/UniqueValuesValidator.cs index b1ecdfa7c..a4ed6922f 100644 --- a/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/UniqueValuesValidator.cs +++ b/backend/src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/UniqueValuesValidator.cs @@ -13,14 +13,16 @@ public sealed class UniqueValuesValidator : IValidator { public void Validate(object? value, ValidationContext context) { - if (value is IEnumerable items && items.Any()) + if (value is not IEnumerable items || !items.Any()) { - var itemsArray = items.ToArray(); + return; + } + + var itemsArray = items.ToArray(); - if (itemsArray.Length != itemsArray.Distinct().Count()) - { - context.AddError(context.Path, T.Get("contents.validation.duplicates")); - } + if (itemsArray.Length != itemsArray.Distinct().Count()) + { + context.AddError(T.Get("contents.validation.duplicates")); } } } diff --git a/backend/src/Squidex.Domain.Apps.Entities/Contents/DomainObject/ContentDomainObject.cs b/backend/src/Squidex.Domain.Apps.Entities/Contents/DomainObject/ContentDomainObject.cs index a1d1c6539..063fcdb6b 100644 --- a/backend/src/Squidex.Domain.Apps.Entities/Contents/DomainObject/ContentDomainObject.cs +++ b/backend/src/Squidex.Domain.Apps.Entities/Contents/DomainObject/ContentDomainObject.cs @@ -249,7 +249,7 @@ public partial class ContentDomainObject( if (!c.DoNotValidate) { - await operation.ValidateInputAsync(c.Data, c.OptimizeValidation, Snapshot.IsPublished, ct); + await operation.ValidateInputAsync(c.Data, c.OptimizeValidation, Snapshot.IsPublished, null, ct); } var status = await operation.GetInitialStatusAsync(); @@ -322,7 +322,7 @@ public partial class ContentDomainObject( if (!c.DoNotValidate) { - await operation.ValidateInputAsync(newData, c.OptimizeValidation, Snapshot.IsPublished, ct); + await operation.ValidateInputAsync(newData, c.OptimizeValidation, Snapshot.IsPublished, Snapshot.EditingData, ct); } if (!c.DoNotValidateWorkflow) diff --git a/backend/src/Squidex.Domain.Apps.Entities/Contents/DomainObject/ContentOperation.cs b/backend/src/Squidex.Domain.Apps.Entities/Contents/DomainObject/ContentOperation.cs index bc3cd330c..4f5a8fcf2 100644 --- a/backend/src/Squidex.Domain.Apps.Entities/Contents/DomainObject/ContentOperation.cs +++ b/backend/src/Squidex.Domain.Apps.Entities/Contents/DomainObject/ContentOperation.cs @@ -13,7 +13,8 @@ using Squidex.Infrastructure; namespace Squidex.Domain.Apps.Entities.Contents.DomainObject; -public sealed class ContentOperation(IServiceProvider serviceProvider, Func snapshot) : OperationContextBase(serviceProvider, snapshot) +public sealed class ContentOperation(IServiceProvider serviceProvider, Func snapshot) + : OperationContextBase(serviceProvider, snapshot) { public Schema Schema { get; init; } diff --git a/backend/src/Squidex.Domain.Apps.Entities/Contents/DomainObject/Guards/ValidationExtensions.cs b/backend/src/Squidex.Domain.Apps.Entities/Contents/DomainObject/Guards/ValidationExtensions.cs index 24af0cbf9..57302b273 100644 --- a/backend/src/Squidex.Domain.Apps.Entities/Contents/DomainObject/Guards/ValidationExtensions.cs +++ b/backend/src/Squidex.Domain.Apps.Entities/Contents/DomainObject/Guards/ValidationExtensions.cs @@ -48,10 +48,13 @@ public static class ValidationExtensions } public static async Task ValidateInputAsync(this ContentOperation operation, - ContentData data, bool optimize, bool published, + ContentData data, + bool optimize, + bool published, + ContentData? previousData, CancellationToken ct) { - var validator = GetValidator(operation, optimize, published); + var validator = GetValidator(operation, optimize, published, previousData); await validator.ValidateInputAsync(data, ct); @@ -59,10 +62,12 @@ public static class ValidationExtensions } public static async Task ValidateInputPartialAsync(this ContentOperation operation, - ContentData data, bool optimize, bool published, + ContentData data, + bool optimize, + bool published, CancellationToken ct) { - var validator = GetValidator(operation, optimize, published); + var validator = GetValidator(operation, optimize, published, null); await validator.ValidateInputPartialAsync(data, ct); @@ -70,10 +75,12 @@ public static class ValidationExtensions } public static async Task ValidateContentAsync(this ContentOperation operation, - ContentData data, bool optimize, bool published, + ContentData data, + bool optimize, + bool published, CancellationToken ct) { - var validator = GetValidator(operation, optimize, published); + var validator = GetValidator(operation, optimize, published, null); await validator.ValidateContentAsync(data, ct); @@ -81,10 +88,12 @@ public static class ValidationExtensions } public static async Task ValidateContentAndInputAsync(this ContentOperation operation, - ContentData data, bool optimize, bool published, + ContentData data, + bool optimize, + bool published, CancellationToken ct) { - var validator = GetValidator(operation, optimize, published); + var validator = GetValidator(operation, optimize, published, null); await validator.ValidateInputAndContentAsync(data, ct); @@ -128,7 +137,10 @@ public static class ValidationExtensions } } - private static ContentValidator GetValidator(this ContentOperation operation, bool optimize, bool published) + private static ContentValidator GetValidator(this ContentOperation operation, + bool optimize, + bool published, + ContentData? previousData) { var rootContext = new RootContext( @@ -136,7 +148,10 @@ public static class ValidationExtensions operation.Schema, operation.CommandId, operation.Components, - operation.Resolve()); + operation.Resolve()) + { + PreviousData = previousData + }; var validationContext = new ValidationContext(rootContext).Optimized(optimize).AsPublishing(published); diff --git a/backend/src/Squidex.Infrastructure/Tasks/Scheduler.cs b/backend/src/Squidex.Infrastructure/Tasks/Scheduler.cs index c24550ae1..90b7242bb 100644 --- a/backend/src/Squidex.Infrastructure/Tasks/Scheduler.cs +++ b/backend/src/Squidex.Infrastructure/Tasks/Scheduler.cs @@ -8,7 +8,7 @@ namespace Squidex.Infrastructure.Tasks; #pragma warning disable MA0048 // File name must match type name -public delegate Task SchedulerTask(CancellationToken ct); +public delegate ValueTask SchedulerTask(CancellationToken ct); #pragma warning restore MA0048 // File name must match type name public sealed class Scheduler diff --git a/backend/src/Squidex.Shared/Texts.fr.resx b/backend/src/Squidex.Shared/Texts.fr.resx index 755c107d0..2ab7f9b1f 100644 --- a/backend/src/Squidex.Shared/Texts.fr.resx +++ b/backend/src/Squidex.Shared/Texts.fr.resx @@ -544,6 +544,9 @@ Doit contenir entre {min} et {max} caractère(s). + + Field cannot be changed after creation. + Ne doit pas contenir de valeurs en double. diff --git a/backend/src/Squidex.Shared/Texts.it.resx b/backend/src/Squidex.Shared/Texts.it.resx index c303d6931..b006c3a2d 100644 --- a/backend/src/Squidex.Shared/Texts.it.resx +++ b/backend/src/Squidex.Shared/Texts.it.resx @@ -544,6 +544,9 @@ Deve essere tra {min} e {max} carattere(i). + + Field cannot be changed after creation. + Non può avere valori duplicati. diff --git a/backend/src/Squidex.Shared/Texts.nl.resx b/backend/src/Squidex.Shared/Texts.nl.resx index 5c76f55b7..842aa8491 100644 --- a/backend/src/Squidex.Shared/Texts.nl.resx +++ b/backend/src/Squidex.Shared/Texts.nl.resx @@ -544,6 +544,9 @@ Moet tussen {min} en {max} teken (s) bevatten. + + Field cannot be changed after creation. + Mag geen dubbele waarden bevatten. diff --git a/backend/src/Squidex.Shared/Texts.pt.resx b/backend/src/Squidex.Shared/Texts.pt.resx index 4648f8d8d..0e9ea9abd 100644 --- a/backend/src/Squidex.Shared/Texts.pt.resx +++ b/backend/src/Squidex.Shared/Texts.pt.resx @@ -544,6 +544,9 @@ Deve ter entre {min} e {max} caractere(es). + + Field cannot be changed after creation. + Não pode ter duplicados. diff --git a/backend/src/Squidex.Shared/Texts.resx b/backend/src/Squidex.Shared/Texts.resx index 3571182fc..7f74a020a 100644 --- a/backend/src/Squidex.Shared/Texts.resx +++ b/backend/src/Squidex.Shared/Texts.resx @@ -544,6 +544,9 @@ Must have between {min} and {max} character(s). + + Field cannot be changed after creation. + Must not contain duplicate values. diff --git a/backend/src/Squidex.Shared/Texts.zh.resx b/backend/src/Squidex.Shared/Texts.zh.resx index 69aed83fe..fcc7582ee 100644 --- a/backend/src/Squidex.Shared/Texts.zh.resx +++ b/backend/src/Squidex.Shared/Texts.zh.resx @@ -544,6 +544,9 @@ 必须在 {min} 到 {max} 个字符之间。 + + Field cannot be changed after creation. + 不得包含重复值。 diff --git a/backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/FieldPropertiesDto.cs b/backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/FieldPropertiesDto.cs index 45ced2ca5..62f125542 100644 --- a/backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/FieldPropertiesDto.cs +++ b/backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/FieldPropertiesDto.cs @@ -48,6 +48,11 @@ public abstract class FieldPropertiesDto /// public bool IsHalfWidth { get; set; } + /// + /// Indicates if the field can only be created and not modified. + /// + public bool IsCreateOnly { get; set; } + /// /// Optional url to the editor. /// diff --git a/backend/src/Squidex/wwwroot/editor/squidex-editor.js b/backend/src/Squidex/wwwroot/editor/squidex-editor.js index d22d31339..78d704f75 100644 --- a/backend/src/Squidex/wwwroot/editor/squidex-editor.js +++ b/backend/src/Squidex/wwwroot/editor/squidex-editor.js @@ -1,5 +1,5 @@ -var Lue=Object.defineProperty;var Nue=(Fn,dn,$e)=>dn in Fn?Lue(Fn,dn,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Fn[dn]=$e;var dt=(Fn,dn,$e)=>(Nue(Fn,typeof dn!="symbol"?dn+"":dn,$e),$e),$ue=(Fn,dn,$e)=>{if(!dn.has(Fn))throw TypeError("Cannot "+$e)};var eS=(Fn,dn,$e)=>{if(dn.has(Fn))throw TypeError("Cannot add the same private member more than once");dn instanceof WeakSet?dn.add(Fn):dn.set(Fn,$e)};var Uv=(Fn,dn,$e)=>($ue(Fn,dn,"access private method"),$e);(function(){"use strict";var mp,nS,Mv,rD;var Fn=document.createElement("style");Fn.textContent=`.remirror-theme{width:100%}.remirror-theme{position:relative}.remirror-theme *{box-sizing:border-box}.remirror-theme .ProseMirror>p{margin-bottom:1rem!important}.remirror-theme .ProseMirror>p:last-child{margin-bottom:0!important}.remirror-theme .ProseMirror h1{margin-top:.5rem!important}.remirror-theme .ProseMirror h1:first-child{margin-top:0!important}.remirror-theme .ProseMirror h2{margin-top:.375rem!important}.remirror-theme .ProseMirror h2:first-child{margin-top:0!important}.remirror-theme .ProseMirror h3,.remirror-theme .ProseMirror h4,.remirror-theme .ProseMirror h5,.remirror-theme .ProseMirror h6{margin-top:.25rem!important}.remirror-theme .ProseMirror h3:first-child,.remirror-theme .ProseMirror h4:first-child,.remirror-theme .ProseMirror h5:first-child,.remirror-theme .ProseMirror h6:first-child{margin-top:0!important}.remirror-theme .ProseMirror hr{border:0;border-top:1px solid #a7a9b4!important}.remirror-editor{min-height:300px!important;max-height:500px}.MuiStack-root>.MuiBox-root{margin-right:5px}.MuiBox-root>.MuiButtonBase-root{border-color:#dedfe3!important;border-radius:0}.MuiBox-root>.MuiButtonBase-root{border-left-width:0!important}.MuiBox-root>.MuiBox-root:first-child>.MuiButtonBase-root{border-left-width:1px!important}.MuiStack-root>.MuiBox-root>.MuiButtonBase-root:first-child{border-left-width:1px!important}.MuiButtonBase-root.Mui-selected:hover{background-color:#3284f4!important}.remirror-editor-wrapper{padding-top:0!important}.custom-icon path{fill:#0000008a}.remirror-theme div.ProseMirror{border:1px solid #dedfe3!important;border-radius:0!important;box-shadow:none!important}.MuiTooltip-popper>div{background-color:#1a2129;border-radius:0;font-size:85%;font-weight:400;padding:.5rem}.MuiMenu-paper{transform:none!important}.squidex-editor-disabled{pointer-events:none}.squidex-editor-menu{border:1px solid #dedfe3;border-bottom:0;padding:5px}.squidex-editor-menu fieldset{border-radius:0;border:0;display:flex;outline:0;padding:0}.squidex-editor-menu fieldset:disabled,.squidex-editor-menu fieldset.disabled{pointer-events:none}.squidex-editor-menu fieldset:disabled,.squidex-editor-menu fieldset.disabled{opacity:.5}.squidex-editor-counter{border-top:0;border:1px solid #dedfe3;display:flex;flex-direction:row;font-size:85%;font-weight:400;justify-content:space-between;opacity:1;padding:4px;text-align:right}.squidex-editor-counter label{display:flex}.squidex-editor-image-view{border:1px solid #dedfe3;border-radius:0;display:inline-block;margin-top:15px;margin-bottom:15px;overflow:hidden}.squidex-editor-image-buttons{bottom:10px;left:10px;position:absolute}.squidex-editor-image-element{display:block;max-width:400px;max-height:400px}.squidex-editor-image-info{left:10px;top:10px;position:absolute;background-color:#3284f4;color:#fff;font-size:85%;font-weight:400;padding:2px 6px}.squidex-editor-main{position:relative}.squidex-editor-main .ace_editor{bottom:0;left:0;right:0;top:0;position:absolute;border:1px solid #dedfe3}.squidex-editor-content-link{align-items:center;border-radius:2px;border:1px solid #dedfe3;padding:10px;display:flex;flex-direction:row;flex-wrap:nowrap;margin-top:10px;margin-bottom:10px}.squidex-editor-content-schema{display:block;overflow-x:hidden;overflow-y:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;min-width:0;width:auto;border-right:1px solid #c2c4cc;color:#8b8f9d;flex-shrink:0;padding-left:10px;padding-right:10px;width:200px}.squidex-editor-content-name{display:block;overflow-x:hidden;overflow-y:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;min-width:0;width:auto;padding-left:10px;padding-right:0}.squidex-editor-html{margin-bottom:10px;margin-top:10px;position:relative}.squidex-editor-html-label{left:6px;top:0;position:absolute;color:#8b8f9d;font-size:85%;font-weight:400}.squidex-editor-html textarea{border:1px solid #dedfe3;font-family:monospace;font-size:inherit;height:100px;outline:none;overflow-x:hidden;overflow-y:auto;padding:30px 14px 14px;resize:vertical;width:100%}.squidex-editor-button{align-items:center;background-color:#fff;border-radius:0;border:1px solid #dedfe3;bottom:10px;display:inline-flex;font-size:85%;font-weight:400;margin-right:5px;padding:6px 12px}.squidex-editor-button:hover{background-color:#f5f5f5}.squidex-editor-input{border:1px solid #dedfe3;border-radius:0;box-sizing:border-box;height:30px;margin-left:0;margin-right:5px;outline:none;padding:6px 12px}.squidex-editor-input:active{border-color:#3284f4}.squidex-editor-floating{border:1px solid #dedfe3}.squidex-editor-floating.hidden{display:none}.squidex-editor-floating .MuiBox-root{margin-right:0!important}.squidex-editor-floating .MuiButtonBase-root{height:30px}.squidex-editor-modal-wrapper,.squidex-editor-modal-backdrop{bottom:0;left:0;right:0;top:0;position:absolute}.squidex-editor-modal-backdrop{background-color:#00000003}.squidex-editor-modal-window{left:50%;top:50%;background-color:#fff;border:0;border-radius:.25rem;box-sizing:border-box;box-shadow:0 3px 16px #0003;margin-top:-50px;margin-left:-150px;position:absolute;width:350px}.squidex-editor-modal-body{display:flex;flex-direction:row;flex-grow:1;padding-top:0!important}.squidex-editor-modal-body,.squidex-editor-modal-title{padding:15px}.squidex-editor-modal-title{font-size:85%}.squidex-editor-modal-window input{flex-grow:1}:has(.remirror-language-select-positioner)~pre[class*=language-]{padding-top:2.5rem!important}.remirror-language-select-positioner{right:5px;top:5px;position:absolute}.b:before{content:"";font-family:monospace;font-size:90%}.b:after{content:"";font-family:monospace;font-size:90%} -`,document.head.appendChild(Fn);function dn(t,e){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var $e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function io(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var rS={exports:{}},wp={},oS={exports:{}},Ve={};/** +var nde=Object.defineProperty;var rde=(Bn,dn,$e)=>dn in Bn?nde(Bn,dn,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Bn[dn]=$e;var ht=(Bn,dn,$e)=>(rde(Bn,typeof dn!="symbol"?dn+"":dn,$e),$e),ode=(Bn,dn,$e)=>{if(!dn.has(Bn))throw TypeError("Cannot "+$e)};var oS=(Bn,dn,$e)=>{if(dn.has(Bn))throw TypeError("Cannot add the same private member more than once");dn instanceof WeakSet?dn.add(Bn):dn.set(Bn,$e)};var Vv=(Bn,dn,$e)=>(ode(Bn,dn,"access private method"),$e);(function(){"use strict";var yp,sS,Iv,vD;var Bn=document.createElement("style");Bn.textContent=`.remirror-theme{width:100%}.remirror-theme{position:relative}.remirror-theme *{box-sizing:border-box}.remirror-theme div.ProseMirror{--rmr-font-family-default: DM Sans, sans-serif !important;--rmr-line-height-default: 1.6 !important;--rmr-font-size-5: 2rem;--rmr-font-size-4: 1.75rem;--rmr-font-size-3: 1.5rem;--rmr-font-size-2: 1.25rem;--rmr-font-size-1: 1.125rem}.remirror-editor:not(.readonly):not(.ProseMirror-hideselection) ::selection{background-color:#9d8aff33}.remirror-editor:not(.readonly):not(.ProseMirror-hideselection) .selection::selection{background:transparent}.remirror-theme .ProseMirror h1{font-weight:700;margin-top:2rem!important}.remirror-theme .ProseMirror h2{font-weight:700;margin-top:1.5rem!important}.remirror-theme .ProseMirror h3{font-weight:600;margin-top:1.25rem!important}.remirror-theme .ProseMirror h4,.remirror-theme .ProseMirror h5,.remirror-theme .ProseMirror h6{font-weight:600;margin-top:1rem!important}.remirror-theme .ProseMirror p:not(:first-child){font-size:1rem;font-weight:400;line-height:1.6;margin-top:.75rem!important}.remirror-theme .ProseMirror .ProseMirror-widget+*{margin-top:0!important}.remirror-theme .ProseMirror hr{border:0;border-top:1px solid #a7a9b4!important}.remirror-editor{margin-left:auto;margin-right:auto;max-width:700px}.MuiStack-root>.MuiBox-root{margin-right:5px}.MuiBox-root>.MuiButtonBase-root{border-color:#dedfe3!important;border-radius:0}.MuiBox-root>.MuiButtonBase-root{border-left-width:0!important}.MuiBox-root>.MuiBox-root:first-child>button{border-left-width:1px!important}.MuiButtonBase-root.Mui-selected:hover{background-color:#3284f4!important}.remirror-editor-wrapper{border:1px solid #dedfe3!important;border-radius:0;min-height:300px;max-height:500px;overflow-y:auto;padding-top:0!important}.custom-icon path{fill:#0000008a}.remirror-theme div.ProseMirror{border:0!important;border-radius:0!important;box-sizing:border-box;box-shadow:none!important;padding:2rem!important;overflow-y:visible!important}.MuiTooltip-popper>div{background-color:#1a2129;border-radius:0;font-size:85%;font-weight:400;padding:.5rem}.MuiMenu-paper{transform:none!important}.squidex-editor-disabled{pointer-events:none}.squidex-editor-menu{border:1px solid #dedfe3;border-bottom:0;display:flex;flex-direction:row;flex-grow:0;justify-content:center;padding:5px}.squidex-editor-menu-group{border-radius:0;border:0;display:flex;outline:0;padding:0}.squidex-editor-menu-group{gap:5px}.squidex-editor-menu-group:disabled,.squidex-editor-menu-group.disabled{pointer-events:none}.squidex-editor-menu-group:disabled,.squidex-editor-menu-group.disabled{opacity:.5}.squidex-editor-counter{border:1px solid #dedfe3;border-top:0;display:flex;flex-direction:row;font-size:85%;font-weight:400;justify-content:space-between;opacity:1;padding:4px;text-align:right}.squidex-editor-counter label{display:flex}.squidex-editor-image-view{border-radius:0;display:block;margin-top:15px;margin-bottom:15px}.squidex-editor-image-view img{border:1px solid #dedfe3}.squidex-editor-image-buttons{bottom:15px;left:10px;position:absolute}.squidex-editor-image-element{display:inline-block;max-width:400px;max-height:400px}.squidex-editor-image-info{left:10px;top:10px;position:absolute;background-color:#3284f4;color:#fff;font-size:85%;font-weight:400;padding:2px 6px}.squidex-editor-main{position:relative}.squidex-editor-main .ace_editor{bottom:0;left:0;right:0;top:0;position:absolute;border:1px solid #dedfe3}.squidex-editor-content-link{align-items:center;border-radius:2px;border:1px solid #dedfe3;padding:10px;display:flex;flex-direction:row;flex-wrap:nowrap;margin-top:10px;margin-bottom:10px}.squidex-editor-content-schema{display:block;overflow-x:hidden;overflow-y:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;min-width:0;width:auto;border-right:1px solid #c2c4cc;color:#8b8f9d;flex-shrink:0;padding-left:10px;padding-right:10px;width:200px}.squidex-editor-content-name{display:block;overflow-x:hidden;overflow-y:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;min-width:0;width:auto;padding-left:10px;padding-right:0}.squidex-editor-html{margin-bottom:10px;margin-top:10px;position:relative}.squidex-editor-html-label{left:6px;top:0;position:absolute;color:#8b8f9d;font-size:85%;font-weight:400}.squidex-editor-html textarea{border:1px solid #dedfe3;font-family:monospace;font-size:inherit;height:100px;outline:none;overflow-x:hidden;overflow-y:auto;padding:30px 14px 14px;resize:vertical;width:100%}.squidex-editor-button{align-items:center;background-color:#fff;border-radius:0;border:1px solid #dedfe3;bottom:10px;display:inline-flex;font-size:85%;font-weight:400;margin-right:5px;padding:6px 12px}.squidex-editor-button:hover{background-color:#f5f5f5}.squidex-editor-input{border:1px solid #dedfe3;border-radius:0;box-sizing:border-box;height:30px;margin-left:0;margin-right:5px;outline:none;padding:6px 12px}.squidex-editor-input:active{border-color:#3284f4}.squidex-editor-floating.hidden{display:none}.squidex-editor-floating .MuiBox-root{margin-right:0!important}.squidex-editor-floating .MuiButtonBase-root{height:30px}.squidex-editor-modal-wrapper,.squidex-editor-modal-backdrop{bottom:0;left:0;right:0;top:0;position:absolute}.squidex-editor-modal-backdrop{background-color:#00000003}.squidex-editor-modal-window{left:50%;top:50%;background-color:#fff;border:0;border-radius:.25rem;box-sizing:border-box;box-shadow:0 3px 16px #0003;margin-top:-50px;margin-left:-150px;position:absolute;width:350px}.squidex-editor-modal-body{display:flex;flex-direction:row;flex-grow:1;padding-top:0!important}.squidex-editor-modal-body,.squidex-editor-modal-title{padding:15px}.squidex-editor-modal-title{font-size:85%}.squidex-editor-modal-window input{flex-grow:1}.image-node-view-wrapper.ProseMirror-selectednode{outline:none!important}.image-node-view-wrapper.ProseMirror-selectednode .squidex-editor-image-element{border-color:#3284f4;border-radius:0;outline:1px solid #3284f4}.content-link-node-view-wrapper.ProseMirror-selectednode{outline:none!important}.content-link-node-view-wrapper.ProseMirror-selectednode .squidex-editor-content-link{outline:2px solid #3284f4}:has(.remirror-language-select-positioner)~pre[class*=language-]{padding-top:2.5rem!important}.remirror-language-select-positioner{right:5px;top:5px;position:absolute}.b:before{content:"";font-family:monospace;font-size:90%}.b:after{content:"";font-family:monospace;font-size:90%} +`,document.head.appendChild(Bn);function dn(t,e){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var $e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function io(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var aS={exports:{}},Ep={},lS={exports:{}},Ve={};/** * @license React * react.production.min.js * @@ -7,7 +7,7 @@ var Lue=Object.defineProperty;var Nue=(Fn,dn,$e)=>dn in Fn?Lue(Fn,dn,{enumerable * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Eu=Symbol.for("react.element"),oD=Symbol.for("react.portal"),iD=Symbol.for("react.fragment"),sD=Symbol.for("react.strict_mode"),aD=Symbol.for("react.profiler"),lD=Symbol.for("react.provider"),cD=Symbol.for("react.context"),uD=Symbol.for("react.forward_ref"),dD=Symbol.for("react.suspense"),hD=Symbol.for("react.memo"),pD=Symbol.for("react.lazy"),iS=Symbol.iterator;function fD(t){return t===null||typeof t!="object"?null:(t=iS&&t[iS]||t["@@iterator"],typeof t=="function"?t:null)}var sS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},aS=Object.assign,lS={};function Ml(t,e,n){this.props=t,this.context=e,this.refs=lS,this.updater=n||sS}Ml.prototype.isReactComponent={},Ml.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},Ml.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function cS(){}cS.prototype=Ml.prototype;function Wv(t,e,n){this.props=t,this.context=e,this.refs=lS,this.updater=n||sS}var Vv=Wv.prototype=new cS;Vv.constructor=Wv,aS(Vv,Ml.prototype),Vv.isPureReactComponent=!0;var uS=Array.isArray,dS=Object.prototype.hasOwnProperty,jv={current:null},hS={key:!0,ref:!0,__self:!0,__source:!0};function pS(t,e,n){var r,o={},i=null,s=null;if(e!=null)for(r in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(i=""+e.key),e)dS.call(e,r)&&!hS.hasOwnProperty(r)&&(o[r]=e[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1dn in Fn?Lue(Fn,dn,{enumerable * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var bD=D,xD=Symbol.for("react.element"),wD=Symbol.for("react.fragment"),kD=Object.prototype.hasOwnProperty,ED=bD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,SD={key:!0,ref:!0,__self:!0,__source:!0};function gS(t,e,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)kD.call(e,r)&&!SD.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)o[r]===void 0&&(o[r]=e[r]);return{$$typeof:xD,type:t,key:i,ref:s,props:o,_owner:ED.current}}wp.Fragment=wD,wp.jsx=gS,wp.jsxs=gS,rS.exports=wp;var V=rS.exports,Xv={exports:{}};(function(t,e){var n=typeof Reflect<"u"?Reflect.construct:void 0,r=Object.defineProperty,o=Error.captureStackTrace;o===void 0&&(o=function(u){var c=new Error;r(u,"stack",{configurable:!0,get:function(){var h=c.stack;return r(this,"stack",{configurable:!0,value:h,writable:!0}),h},set:function(h){r(u,"stack",{configurable:!0,value:h,writable:!0})}})});function i(a){a!==void 0&&r(this,"message",{configurable:!0,value:a,writable:!0});var u=this.constructor.name;u!==void 0&&u!==this.name&&r(this,"name",{configurable:!0,value:u,writable:!0}),o(this,this.constructor)}i.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:i,writable:!0}});var s=function(){function a(c,d){return r(c,"name",{configurable:!0,value:d})}try{var u=function(){};if(a(u,"foo"),u.name==="foo")return a}catch{}}();function l(a,u){if(u==null||u===Error)u=i;else if(typeof u!="function")throw new TypeError("super_ should be a function");var c;if(typeof a=="string")c=a,a=n!==void 0?function(){return n(u,arguments,this.constructor)}:function(){u.apply(this,arguments)},s!==void 0&&(s(a,c),c=void 0);else if(typeof a!="function")throw new TypeError("constructor should be either a string or a function");a.super_=a.super=u;var d={constructor:{configurable:!0,value:a,writable:!0}};return c!==void 0&&(d.name={configurable:!0,value:c,writable:!0}),a.prototype=Object.create(u.prototype,d),a}e=t.exports=l,e.BaseError=i})(Xv,Xv.exports);var mS=Xv.exports,vS="ProseMirror-selectednode",qv="",ts="\0",yS="__state_override__",CD={LastNodeCompatible:"lastNodeCompatible",FormattingMark:"formattingMark",FormattingNode:"formattingNode",NodeCursor:"nodeCursor",FontStyle:"fontStyle",Link:"link",Color:"color",Alignment:"alignment",Indentation:"indentation",Behavior:"behavior",Code:"code",InlineNode:"inline",ListContainerNode:"listContainer",ListItemNode:"listItemNode",Block:"block",BlockNode:"block",TextBlock:"textBlock",ExcludeInputRules:"excludeFromInputRules",PreventExits:"preventsExits",Media:"media"},we=CD,xi=Symbol.for("__remirror__"),hn=(t=>(t.PlainExtension="RemirrorPlainExtension",t.NodeExtension="RemirrorNodeExtension",t.MarkExtension="RemirrorMarkExtension",t.PlainExtensionConstructor="RemirrorPlainExtensionConstructor",t.NodeExtensionConstructor="RemirrorNodeExtensionConstructor",t.MarkExtensionConstructor="RemirrorMarkExtensionConstructor",t.Manager="RemirrorManager",t.Preset="RemirrorPreset",t.PresetConstructor="RemirrorPresetConstructor",t))(hn||{}),tt=(t=>(t[t.Critical=1e6]="Critical",t[t.Highest=1e5]="Highest",t[t.High=1e4]="High",t[t.Medium=1e3]="Medium",t[t.Default=100]="Default",t[t.Low=10]="Low",t[t.Lowest=0]="Lowest",t))(tt||{}),mr=(t=>(t[t.None=0]="None",t[t.Create=1]="Create",t[t.EditorView=2]="EditorView",t[t.Runtime=3]="Runtime",t[t.Destroy=4]="Destroy",t))(mr||{}),oe=(t=>(t.Undo="_|undo|_",t.Redo="_|redo|_",t.Bold="_|bold|_",t.Italic="_|italic|_",t.Underline="_|underline|_",t.Strike="_|strike|_",t.Code="_|code|_",t.Paragraph="_|paragraph|_",t.H1="_|h1|_",t.H2="_|h2|_",t.H3="_|h3|_",t.H4="_|h4|_",t.H5="_|h5|_",t.H6="_|h6|_",t.TaskList="_|task|_",t.BulletList="_|bullet|_",t.OrderedList="_|number|_",t.Quote="_|quote|_",t.Divider="_|divider|_",t.Codeblock="_|codeblock|_",t.ClearFormatting="_|clear|_",t.Superscript="_|sup|_",t.Subscript="_|sub|_",t.LeftAlignment="_|left-align|_",t.CenterAlignment="_|center-align|_",t.RightAlignment="_|right-align|_",t.JustifyAlignment="_|justify-align|_",t.InsertLink="_|link|_",t.Find="_|find|_",t.FindBackwards="_|find-backwards|_",t.FindReplace="_|find-replace|_",t.AddFootnote="_|footnote|_",t.AddComment="_|comment|_",t.ContextMenu="_|context-menu|_",t.IncreaseFontSize="_|inc-font-size|_",t.DecreaseFontSize="_|dec-font-size|_",t.IncreaseIndent="_|indent|_",t.DecreaseIndent="_|dedent|_",t.Shortcuts="_|shortcuts|_",t.Copy="_|copy|_",t.Cut="_|cut|_",t.Paste="_|paste|_",t.PastePlain="_|paste-plain|_",t.SelectAll="_|select-all|_",t.Format="_|format|_",t))(oe||{}),re=(t=>(t.PROD="RMR0000",t.UNKNOWN="RMR0001",t.INVALID_COMMAND_ARGUMENTS="RMR0002",t.CUSTOM="RMR0003",t.CORE_HELPERS="RMR0004",t.MUTATION="RMR0005",t.INTERNAL="RMR0006",t.MISSING_REQUIRED_EXTENSION="RMR0007",t.MANAGER_PHASE_ERROR="RMR0008",t.INVALID_GET_EXTENSION="RMR0010",t.INVALID_MANAGER_ARGUMENTS="RMR0011",t.SCHEMA="RMR0012",t.HELPERS_CALLED_IN_OUTER_SCOPE="RMR0013",t.INVALID_MANAGER_EXTENSION="RMR0014",t.DUPLICATE_COMMAND_NAMES="RMR0016",t.DUPLICATE_HELPER_NAMES="RMR0017",t.NON_CHAINABLE_COMMAND="RMR0018",t.INVALID_EXTENSION="RMR0019",t.INVALID_CONTENT="RMR0021",t.INVALID_NAME="RMR0050",t.EXTENSION="RMR0100",t.EXTENSION_SPEC="RMR0101",t.EXTENSION_EXTRA_ATTRIBUTES="RMR0102",t.INVALID_SET_EXTENSION_OPTIONS="RMR0103",t.REACT_PROVIDER_CONTEXT="RMR0200",t.REACT_GET_ROOT_PROPS="RMR0201",t.REACT_EDITOR_VIEW="RMR0202",t.REACT_CONTROLLED="RMR0203",t.REACT_NODE_VIEW="RMR0204",t.REACT_GET_CONTEXT="RMR0205",t.REACT_COMPONENTS="RMR0206",t.REACT_HOOKS="RMR0207",t.I18N_CONTEXT="RMR0300",t))(re||{}),TD=function(e){return AD(e)&&!_D(e)};function AD(t){return!!t&&typeof t=="object"}function _D(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||OD(t)}var RD=typeof Symbol=="function"&&Symbol.for,MD=RD?Symbol.for("react.element"):60103;function OD(t){return t.$$typeof===MD}function ID(t){return Array.isArray(t)?[]:{}}function Su(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Ol(ID(t),t,e):t}function LD(t,e,n){return t.concat(e).map(function(r){return Su(r,n)})}function ND(t,e){if(!e.customMerge)return Ol;var n=e.customMerge(t);return typeof n=="function"?n:Ol}function $D(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function bS(t){return Object.keys(t).concat($D(t))}function xS(t,e){try{return e in t}catch{return!1}}function DD(t,e){return xS(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function PD(t,e,n){var r={};return n.isMergeableObject(t)&&bS(t).forEach(function(o){r[o]=Su(t[o],n)}),bS(e).forEach(function(o){DD(t,o)||(xS(t,o)&&n.isMergeableObject(e[o])?r[o]=ND(o,n)(t[o],e[o],n):r[o]=Su(e[o],n))}),r}function Ol(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||LD,n.isMergeableObject=n.isMergeableObject||TD,n.cloneUnlessOtherwiseSpecified=Su;var r=Array.isArray(e),o=Array.isArray(t),i=r===o;return i?r?n.arrayMerge(t,e,n):PD(t,e,n):Su(e,n)}Ol.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,o){return Ol(r,o,n)},{})};var zD=Ol,FD=zD;const BD=io(FD);var HD=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var s=i[o];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n};const UD=io(HD);/*! + */var LD=D,ND=Symbol.for("react.element"),$D=Symbol.for("react.fragment"),DD=Object.prototype.hasOwnProperty,PD=LD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,zD={key:!0,ref:!0,__self:!0,__source:!0};function bS(t,e,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)DD.call(e,r)&&!zD.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)o[r]===void 0&&(o[r]=e[r]);return{$$typeof:ND,type:t,key:i,ref:s,props:o,_owner:PD.current}}Ep.Fragment=$D,Ep.jsx=bS,Ep.jsxs=bS,aS.exports=Ep;var V=aS.exports,Zv={exports:{}};(function(t,e){var n=typeof Reflect<"u"?Reflect.construct:void 0,r=Object.defineProperty,o=Error.captureStackTrace;o===void 0&&(o=function(u){var c=new Error;r(u,"stack",{configurable:!0,get:function(){var h=c.stack;return r(this,"stack",{configurable:!0,value:h,writable:!0}),h},set:function(h){r(u,"stack",{configurable:!0,value:h,writable:!0})}})});function i(a){a!==void 0&&r(this,"message",{configurable:!0,value:a,writable:!0});var u=this.constructor.name;u!==void 0&&u!==this.name&&r(this,"name",{configurable:!0,value:u,writable:!0}),o(this,this.constructor)}i.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:i,writable:!0}});var s=function(){function a(c,d){return r(c,"name",{configurable:!0,value:d})}try{var u=function(){};if(a(u,"foo"),u.name==="foo")return a}catch{}}();function l(a,u){if(u==null||u===Error)u=i;else if(typeof u!="function")throw new TypeError("super_ should be a function");var c;if(typeof a=="string")c=a,a=n!==void 0?function(){return n(u,arguments,this.constructor)}:function(){u.apply(this,arguments)},s!==void 0&&(s(a,c),c=void 0);else if(typeof a!="function")throw new TypeError("constructor should be either a string or a function");a.super_=a.super=u;var d={constructor:{configurable:!0,value:a,writable:!0}};return c!==void 0&&(d.name={configurable:!0,value:c,writable:!0}),a.prototype=Object.create(u.prototype,d),a}e=t.exports=l,e.BaseError=i})(Zv,Zv.exports);var xS=Zv.exports,wS="ProseMirror-selectednode",Jv="",ns="\0",kS="__state_override__",FD={LastNodeCompatible:"lastNodeCompatible",FormattingMark:"formattingMark",FormattingNode:"formattingNode",NodeCursor:"nodeCursor",FontStyle:"fontStyle",Link:"link",Color:"color",Alignment:"alignment",Indentation:"indentation",Behavior:"behavior",Code:"code",InlineNode:"inline",ListContainerNode:"listContainer",ListItemNode:"listItemNode",Block:"block",BlockNode:"block",TextBlock:"textBlock",ExcludeInputRules:"excludeFromInputRules",PreventExits:"preventsExits",Media:"media"},we=FD,bi=Symbol.for("__remirror__"),hn=(t=>(t.PlainExtension="RemirrorPlainExtension",t.NodeExtension="RemirrorNodeExtension",t.MarkExtension="RemirrorMarkExtension",t.PlainExtensionConstructor="RemirrorPlainExtensionConstructor",t.NodeExtensionConstructor="RemirrorNodeExtensionConstructor",t.MarkExtensionConstructor="RemirrorMarkExtensionConstructor",t.Manager="RemirrorManager",t.Preset="RemirrorPreset",t.PresetConstructor="RemirrorPresetConstructor",t))(hn||{}),tt=(t=>(t[t.Critical=1e6]="Critical",t[t.Highest=1e5]="Highest",t[t.High=1e4]="High",t[t.Medium=1e3]="Medium",t[t.Default=100]="Default",t[t.Low=10]="Low",t[t.Lowest=0]="Lowest",t))(tt||{}),vr=(t=>(t[t.None=0]="None",t[t.Create=1]="Create",t[t.EditorView=2]="EditorView",t[t.Runtime=3]="Runtime",t[t.Destroy=4]="Destroy",t))(vr||{}),oe=(t=>(t.Undo="_|undo|_",t.Redo="_|redo|_",t.Bold="_|bold|_",t.Italic="_|italic|_",t.Underline="_|underline|_",t.Strike="_|strike|_",t.Code="_|code|_",t.Paragraph="_|paragraph|_",t.H1="_|h1|_",t.H2="_|h2|_",t.H3="_|h3|_",t.H4="_|h4|_",t.H5="_|h5|_",t.H6="_|h6|_",t.TaskList="_|task|_",t.BulletList="_|bullet|_",t.OrderedList="_|number|_",t.Quote="_|quote|_",t.Divider="_|divider|_",t.Codeblock="_|codeblock|_",t.ClearFormatting="_|clear|_",t.Superscript="_|sup|_",t.Subscript="_|sub|_",t.LeftAlignment="_|left-align|_",t.CenterAlignment="_|center-align|_",t.RightAlignment="_|right-align|_",t.JustifyAlignment="_|justify-align|_",t.InsertLink="_|link|_",t.Find="_|find|_",t.FindBackwards="_|find-backwards|_",t.FindReplace="_|find-replace|_",t.AddFootnote="_|footnote|_",t.AddComment="_|comment|_",t.ContextMenu="_|context-menu|_",t.IncreaseFontSize="_|inc-font-size|_",t.DecreaseFontSize="_|dec-font-size|_",t.IncreaseIndent="_|indent|_",t.DecreaseIndent="_|dedent|_",t.Shortcuts="_|shortcuts|_",t.Copy="_|copy|_",t.Cut="_|cut|_",t.Paste="_|paste|_",t.PastePlain="_|paste-plain|_",t.SelectAll="_|select-all|_",t.Format="_|format|_",t))(oe||{}),re=(t=>(t.PROD="RMR0000",t.UNKNOWN="RMR0001",t.INVALID_COMMAND_ARGUMENTS="RMR0002",t.CUSTOM="RMR0003",t.CORE_HELPERS="RMR0004",t.MUTATION="RMR0005",t.INTERNAL="RMR0006",t.MISSING_REQUIRED_EXTENSION="RMR0007",t.MANAGER_PHASE_ERROR="RMR0008",t.INVALID_GET_EXTENSION="RMR0010",t.INVALID_MANAGER_ARGUMENTS="RMR0011",t.SCHEMA="RMR0012",t.HELPERS_CALLED_IN_OUTER_SCOPE="RMR0013",t.INVALID_MANAGER_EXTENSION="RMR0014",t.DUPLICATE_COMMAND_NAMES="RMR0016",t.DUPLICATE_HELPER_NAMES="RMR0017",t.NON_CHAINABLE_COMMAND="RMR0018",t.INVALID_EXTENSION="RMR0019",t.INVALID_CONTENT="RMR0021",t.INVALID_NAME="RMR0050",t.EXTENSION="RMR0100",t.EXTENSION_SPEC="RMR0101",t.EXTENSION_EXTRA_ATTRIBUTES="RMR0102",t.INVALID_SET_EXTENSION_OPTIONS="RMR0103",t.REACT_PROVIDER_CONTEXT="RMR0200",t.REACT_GET_ROOT_PROPS="RMR0201",t.REACT_EDITOR_VIEW="RMR0202",t.REACT_CONTROLLED="RMR0203",t.REACT_NODE_VIEW="RMR0204",t.REACT_GET_CONTEXT="RMR0205",t.REACT_COMPONENTS="RMR0206",t.REACT_HOOKS="RMR0207",t.I18N_CONTEXT="RMR0300",t))(re||{}),BD=function(e){return HD(e)&&!UD(e)};function HD(t){return!!t&&typeof t=="object"}function UD(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||jD(t)}var WD=typeof Symbol=="function"&&Symbol.for,VD=WD?Symbol.for("react.element"):60103;function jD(t){return t.$$typeof===VD}function GD(t){return Array.isArray(t)?[]:{}}function Eu(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Il(GD(t),t,e):t}function KD(t,e,n){return t.concat(e).map(function(r){return Eu(r,n)})}function YD(t,e){if(!e.customMerge)return Il;var n=e.customMerge(t);return typeof n=="function"?n:Il}function XD(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function ES(t){return Object.keys(t).concat(XD(t))}function SS(t,e){try{return e in t}catch{return!1}}function qD(t,e){return SS(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function ZD(t,e,n){var r={};return n.isMergeableObject(t)&&ES(t).forEach(function(o){r[o]=Eu(t[o],n)}),ES(e).forEach(function(o){qD(t,o)||(SS(t,o)&&n.isMergeableObject(e[o])?r[o]=YD(o,n)(t[o],e[o],n):r[o]=Eu(e[o],n))}),r}function Il(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||KD,n.isMergeableObject=n.isMergeableObject||BD,n.cloneUnlessOtherwiseSpecified=Eu;var r=Array.isArray(e),o=Array.isArray(t),i=r===o;return i?r?n.arrayMerge(t,e,n):ZD(t,e,n):Eu(e,n)}Il.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,o){return Il(r,o,n)},{})};var JD=Il,QD=JD;const e4=io(QD);var t4=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var s=i[o];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n};const n4=io(t4);/*! * isobject * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */var wS=function(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1};/*! + */var CS=function(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1};/*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */var WD=wS;function kS(t){return WD(t)===!0&&Object.prototype.toString.call(t)==="[object Object]"}var VD=function(e){var n,r;return!(kS(e)===!1||(n=e.constructor,typeof n!="function")||(r=n.prototype,kS(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};/*! + */var r4=CS;function TS(t){return r4(t)===!0&&Object.prototype.toString.call(t)==="[object Object]"}var o4=function(e){var n,r;return!(TS(e)===!1||(n=e.constructor,typeof n!="function")||(r=n.prototype,TS(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};/*! * is-extendable * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. - */var jD=VD,GD=function(e){return jD(e)||typeof e=="function"||Array.isArray(e)};/*! + */var i4=o4,s4=function(e){return i4(e)||typeof e=="function"||Array.isArray(e)};/*! * object.omit * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */var KD=GD,YD=function(e,n,r){if(!KD(e))return{};typeof n=="function"&&(r=n,n=[]),typeof n=="string"&&(n=[n]);for(var o=typeof r=="function",i=Object.keys(e),s={},l=0;l * * Copyright (c) 2014-2015 Jon Schlinkert, contributors. * Licensed under the MIT License - */var XD=wS,qD=function(e,n){if(!XD(e)&&typeof e!="function")return{};var r={};if(typeof n=="string")return n in e&&(r[n]=e[n]),r;for(var o=n.length,i=-1;++i{let d=a.prefixes[c]||"",h=u;return n===!1&&(r&&(h=h.normalize("NFD").replace(new RegExp(`[^a-zA-ZØßø0-9${r.join("")}]`,"g"),"")),r||(h=h.normalize("NFD").replace(/[^a-zA-ZØßø0-9]/g,""),d="")),r&&(d=d.replace(new RegExp(`[^${r.join("")}]`,"g"),"")),c===0?d+h:!d&&!h?"":s&&!d&&o.match(/\s/)?" "+h:(d||o)+h}).filter(Boolean)}function QD(t){const e=t.matchAll(ES).next().value,n=e?e.index:0;return t.slice(0,n+1).toUpperCase()+t.slice(n+1).toLowerCase()}function CS(t,e){return SS(t,e).reduce((n,r)=>n+QD(r),"")}function TS(t,e){return SS(t,{...e,prefix:"-"}).join("").toLowerCase()}function Qv(t,e,n,r){var o,i=!1,s=0;function l(){o&&clearTimeout(o)}function a(){l(),i=!0}typeof e!="boolean"&&(r=n,n=e,e=void 0);function u(){for(var c=arguments.length,d=new Array(c),h=0;ht?g():e!==!0&&(o=setTimeout(r?m:g,r===void 0?t-f:t))}return u.cancel=a,u}function AS(t,e,n){return n===void 0?Qv(t,e,!1):Qv(t,n,e!==!1)}function Due(t){return t}function _t(t,e,n){const r=t[e];return e1(!Cp(r),n),r}function e1(t,e){if(!t)throw new e4(e)}var e4=class extends mS.BaseError{constructor(){super(...arguments),this.name="AssertionError"}};function nn(t){return Object.entries(t)}function Cu(t){return Object.keys(t)}function Tu(t){return Object.values(t)}function Jn(t,e,n){return t.includes(e,n)}function ye(t){return Object.assign(Object.create(null),t)}function _S(t){return Object.prototype.toString.call(t)}function RS(t){return _S(t).slice(8,-1)}function Au(t,e){return n=>typeof n!==t?!1:e?e(n):!0}function t1(t){return e=>RS(e)===t}var Cp=Au("undefined"),ke=Au("string"),$r=Au("number",t=>!Number.isNaN(t)),Xe=Au("function");function t4(t){return t===null}function n1(t){return t===!0||t===!1}function ns(t){if(RS(t)!=="Object")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})}function n4(t){return t==null||/^[bns]/.test(typeof t)}function rs(t){return t4(t)||Cp(t)}function Tn(t){return!rs(t)&&(Xe(t)||Au("object")(t))}var r4=t1("RegExp");function o4(t){return t1("Map")(t)}function i4(t){return t1("Set")(t)}function _u(t){return Tn(t)&&!o4(t)&&!i4(t)&&Object.keys(t).length===0}var Ot=Array.isArray;function is(t){return Ot(t)&&t.length===0}function MS(t){return Ot(t)&&t.length>0}function s4(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Il(t,e,n=r=>!!r){e.lastIndex=0;const r=[],o=e.flags;let i;o.includes("g")||(e=new RegExp(e.source,`g${o}`));do i=e.exec(t),i&&r.push(i);while(n(i));return e.lastIndex=0,r}function Tp(){const t=Date.now(),e=Tp.last||t;return Tp.last=t>e?t:e+1}Tp.last=0;function Ll(t=""){return`${t}${Tp().toString(36)}`}function OS(t){return Zv(t,e=>!Cp(e))}function a4(t){if(!ns(t))throw new Error("An invalid value was passed into this clone utility. Expected a plain object");return{...t}}var IS=UD;function Nl(t,e=!1){const n=e?[...t].reverse():t,r=new Set(n);return e?[...r].reverse():[...r]}function LS(t){const e=[];for(const n of t){const r=Ot(n)?LS(n):[n];e.push(...r)}return e}function NS(){}function $S(...t){return BD.all(t,{isMergeableObject:ns})}function l4({min:t,max:e,value:n}){return ne?e:n}function c4(t){return t[t.length-1]}function ss(t,e){return[...t].map((n,r)=>({value:n,index:r})).sort((n,r)=>e(n.value,r.value)||n.index-r.index).map(({value:n})=>n)}function u4(t,e,n){try{if(ke(e)&&e in t)return t[e];Ot(e)&&(e=`['${e.join("']['")}']`);let r=t;return e.replace(/\[\s*(["'])(.*?)\1\s*]|^\s*(\w+)\s*(?=\.|\[|$)|\.\s*(\w*)\s*(?=\.|\[|$)|\[\s*(-?\d+)\s*]/g,(o,i,s,l,a,u)=>(r=r[s||l||a||u],"")),r===void 0?n:r}catch{return n}}function d4(t,e){const n=a4(e);let r=n;for(const[o,i]of t.entries()){const s=o>=t.length-1;let l=r[i];if(s){if(Ot(r)){const a=Number.parseInt(i.toString(),10);$r(a)&&r.splice(a,1)}else Reflect.deleteProperty(r,i);return n}if(n4(l))return n;l=Ot(l)?[...l]:{...l},r[i]=l,r=l}return n}function h4(t){return e=>u4(e,t)}function r1(t,e,n=!1){const r=[],o=new Set,i=Xe(e)?e:h4(e),s=n?[...t].reverse():t;for(const l of s){const a=i(l);o.has(a)||(o.add(a),r.push(l))}return n?r.reverse():r}function o1(t,e){const n=Ot(t)?t[0]:t;return $r(e)?n<=e?Array.from({length:e+1-n},(r,o)=>o+n):Array.from({length:n+1-e},(r,o)=>-1*o+n):Array.from({length:Math.abs(n)},(r,o)=>(n<0?-1:1)*o)}function Yo(t,...e){const n=e.filter($r);return t>=Math.min(...n)&&t<=Math.max(...n)}function DS(t){return Xe(t)?t():t}var PS="https://remirror.io/docs/errors",p4={[re.UNKNOWN]:"An error occurred but we're not quite sure why. 🧐",[re.INVALID_COMMAND_ARGUMENTS]:"The arguments passed to the command method were invalid.",[re.CUSTOM]:"This is a custom error, possibly thrown by an external library.",[re.CORE_HELPERS]:"An error occurred in a function called from the `@remirror/core-helpers` library.",[re.MUTATION]:"Mutation of immutable value detected.",[re.INTERNAL]:"This is an error which should not occur and is internal to the remirror codebase.",[re.MISSING_REQUIRED_EXTENSION]:"Your editor is missing a required extension.",[re.MANAGER_PHASE_ERROR]:"This occurs when accessing a method or property before it is available.",[re.INVALID_GET_EXTENSION]:"The user requested an invalid extension from the getExtensions method. Please check the `createExtensions` return method is returning an extension with the defined constructor.",[re.INVALID_MANAGER_ARGUMENTS]:"Invalid value(s) passed into `Manager` constructor. Only `Presets` and `Extensions` are supported.",[re.SCHEMA]:"There is a problem with the schema or you are trying to access a node / mark that doesn't exists.",[re.HELPERS_CALLED_IN_OUTER_SCOPE]:"The `helpers` method which is passed into the ``create*` method should only be called within returned method since it relies on an active view (not present in the outer scope).",[re.INVALID_MANAGER_EXTENSION]:"You requested an invalid extension from the manager.",[re.DUPLICATE_COMMAND_NAMES]:"Command method names must be unique within the editor.",[re.DUPLICATE_HELPER_NAMES]:"Helper method names must be unique within the editor.",[re.NON_CHAINABLE_COMMAND]:"Attempted to chain a non chainable command.",[re.INVALID_EXTENSION]:"The provided extension is invalid.",[re.INVALID_CONTENT]:"The content provided to the editor is not supported.",[re.INVALID_NAME]:"An invalid name was used for the extension.",[re.EXTENSION]:"An error occurred within an extension. More details should be made available.",[re.EXTENSION_SPEC]:"The spec was defined without calling the `defaults`, `parse` or `dom` methods.",[re.EXTENSION_EXTRA_ATTRIBUTES]:"Extra attributes must either be a string or an object.",[re.INVALID_SET_EXTENSION_OPTIONS]:"A call to `extension.setOptions` was made with invalid keys.",[re.REACT_PROVIDER_CONTEXT]:"`useRemirrorContext` was called outside of the `remirror` context. It can only be used within an active remirror context created by the ``.",[re.REACT_GET_ROOT_PROPS]:"`getRootProps` has been attached to the DOM more than once. It should only be attached to the dom once per editor.",[re.REACT_EDITOR_VIEW]:"A problem occurred adding the editor view to the dom.",[re.REACT_CONTROLLED]:"There is a problem with your controlled editor setup.",[re.REACT_NODE_VIEW]:"Something went wrong with your custom ReactNodeView Component.",[re.REACT_GET_CONTEXT]:"You attempted to call `getContext` provided by the `useRemirror` prop during the first render of the editor. This is not possible and should only be after the editor first mounts.",[re.REACT_COMPONENTS]:"An error occurred within a remirror component.",[re.REACT_HOOKS]:"An error occurred within a remirror hook.",[re.I18N_CONTEXT]:"You called `useI18n()` outside of an `I18nProvider` context."};function f4(t){return ke(t)&&Jn(Tu(re),t)}function g4(t,e){const n=p4[t],r=n?`${n} + */var c4=CS,u4=function(e,n){if(!c4(e)&&typeof e!="function")return{};var r={};if(typeof n=="string")return n in e&&(r[n]=e[n]),r;for(var o=n.length,i=-1;++i{let d=a.prefixes[c]||"",h=u;return n===!1&&(r&&(h=h.normalize("NFD").replace(new RegExp(`[^a-zA-ZØßø0-9${r.join("")}]`,"g"),"")),r||(h=h.normalize("NFD").replace(/[^a-zA-ZØßø0-9]/g,""),d="")),r&&(d=d.replace(new RegExp(`[^${r.join("")}]`,"g"),"")),c===0?d+h:!d&&!h?"":s&&!d&&o.match(/\s/)?" "+h:(d||o)+h}).filter(Boolean)}function p4(t){const e=t.matchAll(AS).next().value,n=e?e.index:0;return t.slice(0,n+1).toUpperCase()+t.slice(n+1).toLowerCase()}function RS(t,e){return _S(t,e).reduce((n,r)=>n+p4(r),"")}function MS(t,e){return _S(t,{...e,prefix:"-"}).join("").toLowerCase()}function t1(t,e,n,r){var o,i=!1,s=0;function l(){o&&clearTimeout(o)}function a(){l(),i=!0}typeof e!="boolean"&&(r=n,n=e,e=void 0);function u(){for(var c=arguments.length,d=new Array(c),h=0;ht?g():e!==!0&&(o=setTimeout(r?m:g,r===void 0?t-f:t))}return u.cancel=a,u}function OS(t,e,n){return n===void 0?t1(t,e,!1):t1(t,n,e!==!1)}function ide(t){return t}function _t(t,e,n){const r=t[e];return n1(!Ap(r),n),r}function n1(t,e){if(!t)throw new f4(e)}var f4=class extends xS.BaseError{constructor(){super(...arguments),this.name="AssertionError"}};function nn(t){return Object.entries(t)}function Su(t){return Object.keys(t)}function Cu(t){return Object.values(t)}function Qn(t,e,n){return t.includes(e,n)}function ye(t){return Object.assign(Object.create(null),t)}function IS(t){return Object.prototype.toString.call(t)}function LS(t){return IS(t).slice(8,-1)}function Tu(t,e){return n=>typeof n!==t?!1:e?e(n):!0}function r1(t){return e=>LS(e)===t}var Ap=Tu("undefined"),ke=Tu("string"),Dr=Tu("number",t=>!Number.isNaN(t)),Xe=Tu("function");function g4(t){return t===null}function o1(t){return t===!0||t===!1}function rs(t){if(LS(t)!=="Object")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})}function m4(t){return t==null||/^[bns]/.test(typeof t)}function is(t){return g4(t)||Ap(t)}function Tn(t){return!is(t)&&(Xe(t)||Tu("object")(t))}var v4=r1("RegExp");function y4(t){return r1("Map")(t)}function b4(t){return r1("Set")(t)}function Au(t){return Tn(t)&&!y4(t)&&!b4(t)&&Object.keys(t).length===0}var Ot=Array.isArray;function ss(t){return Ot(t)&&t.length===0}function NS(t){return Ot(t)&&t.length>0}function x4(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Ll(t,e,n=r=>!!r){e.lastIndex=0;const r=[],o=e.flags;let i;o.includes("g")||(e=new RegExp(e.source,`g${o}`));do i=e.exec(t),i&&r.push(i);while(n(i));return e.lastIndex=0,r}function _p(){const t=Date.now(),e=_p.last||t;return _p.last=t>e?t:e+1}_p.last=0;function Nl(t=""){return`${t}${_p().toString(36)}`}function $S(t){return Qv(t,e=>!Ap(e))}function w4(t){if(!rs(t))throw new Error("An invalid value was passed into this clone utility. Expected a plain object");return{...t}}var DS=n4;function $l(t,e=!1){const n=e?[...t].reverse():t,r=new Set(n);return e?[...r].reverse():[...r]}function PS(t){const e=[];for(const n of t){const r=Ot(n)?PS(n):[n];e.push(...r)}return e}function zS(){}function FS(...t){return e4.all(t,{isMergeableObject:rs})}function k4({min:t,max:e,value:n}){return ne?e:n}function E4(t){return t[t.length-1]}function as(t,e){return[...t].map((n,r)=>({value:n,index:r})).sort((n,r)=>e(n.value,r.value)||n.index-r.index).map(({value:n})=>n)}function S4(t,e,n){try{if(ke(e)&&e in t)return t[e];Ot(e)&&(e=`['${e.join("']['")}']`);let r=t;return e.replace(/\[\s*(["'])(.*?)\1\s*]|^\s*(\w+)\s*(?=\.|\[|$)|\.\s*(\w*)\s*(?=\.|\[|$)|\[\s*(-?\d+)\s*]/g,(o,i,s,l,a,u)=>(r=r[s||l||a||u],"")),r===void 0?n:r}catch{return n}}function C4(t,e){const n=w4(e);let r=n;for(const[o,i]of t.entries()){const s=o>=t.length-1;let l=r[i];if(s){if(Ot(r)){const a=Number.parseInt(i.toString(),10);Dr(a)&&r.splice(a,1)}else Reflect.deleteProperty(r,i);return n}if(m4(l))return n;l=Ot(l)?[...l]:{...l},r[i]=l,r=l}return n}function T4(t){return e=>S4(e,t)}function i1(t,e,n=!1){const r=[],o=new Set,i=Xe(e)?e:T4(e),s=n?[...t].reverse():t;for(const l of s){const a=i(l);o.has(a)||(o.add(a),r.push(l))}return n?r.reverse():r}function s1(t,e){const n=Ot(t)?t[0]:t;return Dr(e)?n<=e?Array.from({length:e+1-n},(r,o)=>o+n):Array.from({length:n+1-e},(r,o)=>-1*o+n):Array.from({length:Math.abs(n)},(r,o)=>(n<0?-1:1)*o)}function Yo(t,...e){const n=e.filter(Dr);return t>=Math.min(...n)&&t<=Math.max(...n)}function BS(t){return Xe(t)?t():t}var HS="https://remirror.io/docs/errors",A4={[re.UNKNOWN]:"An error occurred but we're not quite sure why. 🧐",[re.INVALID_COMMAND_ARGUMENTS]:"The arguments passed to the command method were invalid.",[re.CUSTOM]:"This is a custom error, possibly thrown by an external library.",[re.CORE_HELPERS]:"An error occurred in a function called from the `@remirror/core-helpers` library.",[re.MUTATION]:"Mutation of immutable value detected.",[re.INTERNAL]:"This is an error which should not occur and is internal to the remirror codebase.",[re.MISSING_REQUIRED_EXTENSION]:"Your editor is missing a required extension.",[re.MANAGER_PHASE_ERROR]:"This occurs when accessing a method or property before it is available.",[re.INVALID_GET_EXTENSION]:"The user requested an invalid extension from the getExtensions method. Please check the `createExtensions` return method is returning an extension with the defined constructor.",[re.INVALID_MANAGER_ARGUMENTS]:"Invalid value(s) passed into `Manager` constructor. Only `Presets` and `Extensions` are supported.",[re.SCHEMA]:"There is a problem with the schema or you are trying to access a node / mark that doesn't exists.",[re.HELPERS_CALLED_IN_OUTER_SCOPE]:"The `helpers` method which is passed into the ``create*` method should only be called within returned method since it relies on an active view (not present in the outer scope).",[re.INVALID_MANAGER_EXTENSION]:"You requested an invalid extension from the manager.",[re.DUPLICATE_COMMAND_NAMES]:"Command method names must be unique within the editor.",[re.DUPLICATE_HELPER_NAMES]:"Helper method names must be unique within the editor.",[re.NON_CHAINABLE_COMMAND]:"Attempted to chain a non chainable command.",[re.INVALID_EXTENSION]:"The provided extension is invalid.",[re.INVALID_CONTENT]:"The content provided to the editor is not supported.",[re.INVALID_NAME]:"An invalid name was used for the extension.",[re.EXTENSION]:"An error occurred within an extension. More details should be made available.",[re.EXTENSION_SPEC]:"The spec was defined without calling the `defaults`, `parse` or `dom` methods.",[re.EXTENSION_EXTRA_ATTRIBUTES]:"Extra attributes must either be a string or an object.",[re.INVALID_SET_EXTENSION_OPTIONS]:"A call to `extension.setOptions` was made with invalid keys.",[re.REACT_PROVIDER_CONTEXT]:"`useRemirrorContext` was called outside of the `remirror` context. It can only be used within an active remirror context created by the ``.",[re.REACT_GET_ROOT_PROPS]:"`getRootProps` has been attached to the DOM more than once. It should only be attached to the dom once per editor.",[re.REACT_EDITOR_VIEW]:"A problem occurred adding the editor view to the dom.",[re.REACT_CONTROLLED]:"There is a problem with your controlled editor setup.",[re.REACT_NODE_VIEW]:"Something went wrong with your custom ReactNodeView Component.",[re.REACT_GET_CONTEXT]:"You attempted to call `getContext` provided by the `useRemirror` prop during the first render of the editor. This is not possible and should only be after the editor first mounts.",[re.REACT_COMPONENTS]:"An error occurred within a remirror component.",[re.REACT_HOOKS]:"An error occurred within a remirror hook.",[re.I18N_CONTEXT]:"You called `useI18n()` outside of an `I18nProvider` context."};function _4(t){return ke(t)&&Qn(Cu(re),t)}function R4(t,e){const n=A4[t],r=n?`${n} `:"",o=e?`${e} -`:"";return`${r}${o}For more information visit ${PS}#${t.toLowerCase()}`}var zS=class extends mS.BaseError{constructor({code:t,message:e,disableLogging:n=!1}={}){const r=f4(t)?t:re.CUSTOM;super(g4(r,e)),this.errorCode=r,this.url=`${PS}#${r.toLowerCase()}`,n||console.error(this.message)}static create(t={}){return new zS(t)}};function be(t,e){if(!t)throw zS.create(e)}function Ap(t){if(typeof t!="object"||t===null)return t;const e=Symbol.toStringTag in t&&t[Symbol.toStringTag]==="Module"?t.default??t:t;return e&&typeof t=="object"&&"__esModule"in e&&e.__esModule&&e.default!==void 0?e.default:e}function ha(t,e={}){return t}function An(t){this.content=t}An.prototype={constructor:An,find:function(t){for(var e=0;e>1}},An.from=function(t){if(t instanceof An)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new An(e)};function FS(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),i=e.child(r);if(o==i){n+=o.nodeSize;continue}if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)n++;return n}if(o.content.size||i.content.size){let s=FS(o.content,i.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function BS(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:n,b:r};let s=t.child(--o),l=e.child(--i),a=s.nodeSize;if(s==l){n-=a,r-=a;continue}if(!s.sameMarkup(l))return{a:n,b:r};if(s.isText&&s.text!=l.text){let u=0,c=Math.min(s.text.length,l.text.length);for(;ue&&r(a,o+l,i||null,s)!==!1&&a.content.size){let c=l+1;a.nodesBetween(Math.max(0,e-c),Math.min(a.content.size,n-c),r,o+c)}l=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",s=!0;return this.nodesBetween(e,n,(l,a)=>{l.isText?(i+=l.text.slice(Math.max(e,a)-a,n-a),s=!r):l.isLeaf?(o?i+=typeof o=="function"?o(l):o:l.type.spec.leafText&&(i+=l.type.spec.leafText(l)),s=!r):!s&&l.isBlock&&(i+=r,s=!0)},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);ie)for(let i=0,s=0;se&&((sn)&&(l.isText?l=l.cut(Math.max(0,e-s),Math.min(l.text.length,n-s)):l=l.cut(Math.max(0,e-s-1),Math.min(l.content.size,n-s-1))),r.push(l),o+=l.nodeSize),s=a}return new J(r,o)}cutByIndex(e,n){return e==n?J.empty:e==0&&n==this.content.length?this:new J(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new J(o,i)}addToStart(e){return new J([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new J(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;nthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let i=this.child(r),s=o+i.nodeSize;if(s>=e)return s==e||n>0?_p(r+1,s):_p(r,o);o=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return J.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new J(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return J.empty;let n,r=0;for(let o=0;othis.type.rank&&(n||(n=e.slice(0,o)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;nr.type.rank-o.type.rank),n}}Ge.none=[];class Mp extends Error{}class ae{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=US(this.content,e+this.openStart,n);return r&&new ae(r,this.openStart,this.openEnd)}removeBetween(e,n){return new ae(HS(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return ae.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ae(J.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)o++;return new ae(e,r,o)}}ae.empty=new ae(J.empty,0,0);function HS(t,e,n){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r),{index:s,offset:l}=t.findIndex(n);if(o==e||i.isText){if(l!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(HS(i.content,e-o-1,n-o-1)))}function US(t,e,n,r){let{index:o,offset:i}=t.findIndex(e),s=t.maybeChild(o);if(i==e||s.isText)return r&&!r.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let l=US(s.content,e-i-1,n);return l&&t.replaceChild(o,s.copy(l))}function m4(t,e,n){if(n.openStart>t.depth)throw new Mp("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Mp("Inconsistent open depths");return WS(t,e,n,0)}function WS(t,e,n,r){let o=t.index(r),i=t.node(r);if(o==e.index(r)&&r=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Ru(t,e,n,r){let o=(e||t).node(n),i=0,s=e?e.index(n):o.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(pa(t.nodeAfter,r),i++));for(let l=i;lo&&s1(t,e,o+1),s=r.depth>o&&s1(n,r,o+1),l=[];return Ru(null,t,o,l),i&&s&&e.index(o)==n.index(o)?(VS(i,s),pa(fa(i,jS(t,e,n,r,o+1)),l)):(i&&pa(fa(i,Op(t,e,o+1)),l),Ru(e,n,o,l),s&&pa(fa(s,Op(n,r,o+1)),l)),Ru(r,null,o,l),new J(l)}function Op(t,e,n){let r=[];if(Ru(null,t,n,r),t.depth>n){let o=s1(t,e,n+1);pa(fa(o,Op(t,e,n+1)),r)}return Ru(e,null,n,r),new J(r)}function v4(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)o=e.node(i).copy(J.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class $l{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let i=0;i0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new ga(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,i=n;for(let s=e;;){let{index:l,offset:a}=s.content.findIndex(i),u=i-a;if(r.push(s,l,o+a),!u||(s=s.child(l),s.isText))break;i=u-1,o+=a+1}return new $l(n,r,i)}static resolveCached(e,n){for(let o=0;oe&&this.nodesBetween(e,n,i=>(r.isInSet(i.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),GS(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=J.empty,o=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),l=s&&s.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let a=o;an.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=J.fromJSON(e,n.content);return e.nodeType(n.type).create(n.attrs,o,r)}};as.prototype.text=void 0;class Ip extends as{constructor(e,n,r,o){if(super(e,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):GS(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Ip(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ip(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function GS(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class ma{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new x4(e,n);if(r.next==null)return ma.empty;let o=KS(r);r.next&&r.err("Unexpected trailing text");let i=A4(T4(o));return _4(i,r),i}matchType(e){for(let n=0;nu.createAndFill()));for(let u=0;u=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o{let i=o+(r.validEnd?"*":" ")+" ";for(let s=0;s"+e.indexOf(r.next[s].next);return i}).join(` -`)}}ma.empty=new ma(!0);class x4{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function KS(t){let e=[];do e.push(w4(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function w4(t){let e=[];do e.push(k4(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function k4(t){let e=C4(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=E4(t,e);else break;return e}function YS(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function E4(t,e){let n=YS(t),r=n;return t.eat(",")&&(t.next!="}"?r=YS(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function S4(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let i in n){let s=n[i];s.groups.indexOf(e)>-1&&o.push(s)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function C4(t){if(t.eat("(")){let e=KS(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=S4(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function T4(t){let e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(s,l,a){let u={term:a,to:l};return e[s].push(u),u}function o(s,l){s.forEach(a=>a.to=l)}function i(s,l){if(s.type=="choice")return s.exprs.reduce((a,u)=>a.concat(i(u,l)),[]);if(s.type=="seq")for(let a=0;;a++){let u=i(s.exprs[a],l);if(a==s.exprs.length-1)return u;o(u,l=n())}else if(s.type=="star"){let a=n();return r(l,a),o(i(s.expr,a),a),[r(a)]}else if(s.type=="plus"){let a=n();return o(i(s.expr,l),a),o(i(s.expr,a),a),[r(a)]}else{if(s.type=="opt")return[r(l)].concat(i(s.expr,l));if(s.type=="range"){let a=l;for(let u=0;u{t[s].forEach(({term:l,to:a})=>{if(!l)return;let u;for(let c=0;c{u||o.push([l,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let i=e[r.join(",")]=new ma(r.indexOf(t.length-1)>-1);for(let s=0;s-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;nr[i]=new nD(i,n,s));let o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class R4{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Mu{constructor(e,n,r,o){this.name=e,this.rank=n,this.schema=r,this.spec=o,this.attrs=QS(o.attrs),this.excluded=null;let i=ZS(this.attrs);this.instance=i?new Ge(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Ge(this,JS(this.attrs,e))}static compile(e,n){let r=Object.create(null),o=0;return e.forEach((i,s)=>r[i]=new Mu(i,o++,n,s)),r}removeFromSet(e){for(var n=0;n-1}}let M4=class{constructor(e){this.cached=Object.create(null);let n=this.spec={};for(let o in e)n[o]=e[o];n.nodes=An.from(e.nodes),n.marks=An.from(e.marks||{}),this.nodes=c1.compile(this.spec.nodes,this),this.marks=Mu.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let i=this.nodes[o],s=i.spec.content||"",l=i.spec.marks;i.contentMatch=r[s]||(r[s]=ma.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=l=="_"?null:l?eC(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:eC(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof c1){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,o)}text(e,n){let r=this.nodes.text;return new Ip(r,r.defaultAttrs,e,Ge.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return as.fromJSON(this,e)}markFromJSON(e){return Ge.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}};function eC(t,e){let n=[];for(let r=0;r-1)&&n.push(s=a)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}class va{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[],n.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let o=e.nodes[r.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let r=new oC(this,n,!1);return r.addAll(e,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new oC(this,n,!0);return r.addAll(e,n.from,n.to),ae.maxOpen(r.finish())}matchTag(e,n,r){for(let o=r?this.tags.indexOf(r)+1:0;oe.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=n))){if(s.getAttrs){let a=s.getAttrs(n);if(a===!1)continue;s.attrs=a||void 0}return s}}}static schemaRules(e){let n=[];function r(o){let i=o.priority==null?50:o.priority,s=0;for(;s{r(s=iC(s)),s.mark||s.ignore||s.clearMark||(s.mark=o)})}for(let o in e.nodes){let i=e.nodes[o].spec.parseDOM;i&&i.forEach(s=>{r(s=iC(s)),s.node||s.ignore||s.mark||(s.node=o)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new va(e,va.schemaRules(e)))}}const tC={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},O4={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},nC={ol:!0,ul:!0},Lp=1,Np=2,Ou=4;function rC(t,e,n){return e!=null?(e?Lp:0)|(e==="full"?Np:0):t&&t.whitespace=="pre"?Lp|Np:n&~Ou}class $p{constructor(e,n,r,o,i,s,l){this.type=e,this.attrs=n,this.marks=r,this.pendingMarks=o,this.solid=i,this.options=l,this.content=[],this.activeMarks=Ge.none,this.stashMarks=[],this.match=s||(l&Ou?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(J.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Lp)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-o[0].length))}}let n=J.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(J.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(e){for(let n=this.stashMarks.length-1;n>=0;n--)if(e.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(e){for(let n=0,r=this.pendingMarks;nthis.addAll(e)),s&&this.sync(l),this.needsBlock=a}else this.withStyleRules(e,()=>{this.addElementByRule(e,i,i.consuming===!1?o:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` -`))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let n=Ge.none,r=Ge.none;for(let o=0;o{s.clearMark(l)&&(r=l.addToSet(r))}):n=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(n),s.consuming===!1)i=s;else break}return[n,r]}addElementByRule(e,n,r){let o,i,s;n.node?(i=this.parser.schema.nodes[n.node],i.isLeaf?this.insertNode(i.create(n.attrs))||this.leafFallback(e):o=this.enter(i,n.attrs||null,n.preserveWhitespace)):(s=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(s));let l=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a));else{let a=e;typeof n.contentElement=="string"?a=e.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(e):n.contentElement&&(a=n.contentElement),this.findAround(e,a,!0),this.addAll(a)}o&&this.sync(l)&&this.open--,s&&this.removePendingMark(s,l)}addAll(e,n,r){let o=n||0;for(let i=n?e.childNodes[n]:e.firstChild,s=r==null?null:e.childNodes[r];i!=s;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i);this.findAtPoint(e,o)}findPlace(e){let n,r;for(let o=this.open;o>=0;o--){let i=this.nodes[o],s=i.findWrapping(e);if(s&&(!n||n.length>s.length)&&(n=s,r=i,!s.length)||i.solid)break}if(!n)return!1;this.sync(r);for(let o=0;othis.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),s=(l,a)=>{for(;l>=0;l--){let u=n[l];if(u==""){if(l==n.length-1||l==0)continue;for(;a>=i;a--)if(s(l-1,a))return!0;return!1}else{let c=a>0||a==0&&o?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!c||c.name!=u&&c.groups.indexOf(u)==-1)return!1;a--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let n=D4(e,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,n){for(let r=this.open;r>=0;r--){let o=this.nodes[r];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let s=o.popFromStashMark(e);s&&o.type&&o.type.allowsMarkType(s.type)&&(o.activeMarks=s.addToSet(o.activeMarks))}if(o==n)break}}}function I4(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&nC.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function L4(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function N4(t){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=e.exec(t);)r.push(n[1],n[2].trim());return r}function iC(t){let e={};for(let n in t)e[n]=t[n];return e}function $4(t,e){let n=e.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(t))continue;let i=[],s=l=>{i.push(l);for(let a=0;a{if(i.length||s.marks.length){let l=0,a=0;for(;l=0;o--){let i=this.serializeMark(e.marks[o],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,n,r={}){let o=this.marks[e.type.name];return o&&Dr.renderSpec(u1(r),o(e,n))}static renderSpec(e,n,r=null){if(typeof n=="string")return{dom:e.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let o=n[0],i=o.indexOf(" ");i>0&&(r=o.slice(0,i),o=o.slice(i+1));let s,l=r?e.createElementNS(r,o):e.createElement(o),a=n[1],u=1;if(a&&typeof a=="object"&&a.nodeType==null&&!Array.isArray(a)){u=2;for(let c in a)if(a[c]!=null){let d=c.indexOf(" ");d>0?l.setAttributeNS(c.slice(0,d),c.slice(d+1),a[c]):l.setAttribute(c,a[c])}}for(let c=u;cu)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:h,contentDOM:p}=Dr.renderSpec(e,d,r);if(l.appendChild(h),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:l,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Dr(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=sC(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return sC(e.marks)}}function sC(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function u1(t){return t.document||window.document}const aC=65535,lC=Math.pow(2,16);function P4(t,e){return t+e*lC}function cC(t){return t&aC}function z4(t){return(t-(t&aC))/lC}const uC=1,dC=2,Dp=4,hC=8;class d1{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&hC)>0}get deletedBefore(){return(this.delInfo&(uC|Dp))>0}get deletedAfter(){return(this.delInfo&(dC|Dp))>0}get deletedAcross(){return(this.delInfo&Dp)>0}}class Pr{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Pr.empty)return Pr.empty}recover(e){let n=0,r=cC(e);if(!this.inverted)for(let o=0;oe)break;let u=this.ranges[l+i],c=this.ranges[l+s],d=a+u;if(e<=d){let h=u?e==a?-1:e==d?1:n:n,p=a+o+(h<0?0:c);if(r)return p;let f=e==(n<0?a:d)?null:P4(l/3,e-a),g=e==a?dC:e==d?uC:Dp;return(n<0?e!=a:e!=d)&&(g|=hC),new d1(p,g,f)}o+=c-u}return r?e+o:new d1(e+o,0,null)}touches(e,n){let r=0,o=cC(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;le)break;let u=this.ranges[l+i],c=a+u;if(e<=c&&l==o*3)return!0;r+=this.ranges[l+s]-u}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,i=0;o=0;n--){let o=e.getMirror(n);this.appendMap(e.maps[n].invert(),o!=null&&o>n?r-o-1:void 0)}}invert(){let e=new Dl;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;ri&&a!s.isAtom||!l.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),o),n.openStart,n.openEnd);return jt.fromReplace(e,this.from,this.to,i)}invert(){return new _o(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new wi(n.pos,r.pos,this.mark)}merge(e){return e instanceof wi&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new wi(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new wi(n.from,n.to,e.markFromJSON(n.mark))}}rn.jsonID("addMark",wi);class _o extends rn{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new ae(p1(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return jt.fromReplace(e,this.from,this.to,r)}invert(){return new wi(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new _o(n.pos,r.pos,this.mark)}merge(e){return e instanceof _o&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new _o(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new _o(n.from,n.to,e.markFromJSON(n.mark))}}rn.jsonID("removeMark",_o);class ls extends rn{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return jt.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return jt.fromReplace(e,this.pos,this.pos+1,new ae(J.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let o=0;or.pos?null:new Gt(n.pos,r.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Gt(n.from,n.to,n.gapFrom,n.gapTo,ae.fromJSON(e,n.slice),n.insert,!!n.structure)}}rn.jsonID("replaceAround",Gt);function f1(t,e,n){let r=t.resolve(e),o=n-e,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let s=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function F4(t,e,n,r){let o=[],i=[],s,l;t.doc.nodesBetween(e,n,(a,u,c)=>{if(!a.isInline)return;let d=a.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let h=Math.max(u,e),p=Math.min(u+a.nodeSize,n),f=r.addToSet(d);for(let g=0;gt.step(a)),i.forEach(a=>t.step(a))}function B4(t,e,n,r){let o=[],i=0;t.doc.nodesBetween(e,n,(s,l)=>{if(!s.isInline)return;i++;let a=null;if(r instanceof Mu){let u=s.marks,c;for(;c=r.isInSet(u);)(a||(a=[])).push(c),u=c.removeFromSet(u)}else r?r.isInSet(s.marks)&&(a=[r]):a=s.marks;if(a&&a.length){let u=Math.min(l+s.nodeSize,n);for(let c=0;ct.step(new _o(s.from,s.to,s.style)))}function H4(t,e,n,r=n.contentMatch){let o=t.doc.nodeAt(e),i=[],s=e+1;for(let l=0;l=0;l--)t.step(i[l])}function U4(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function zl(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let o=t.$from.node(r),i=t.$from.index(r),s=t.$to.indexAfter(r);if(rn;f--)g||r.index(f)>0?(g=!0,c=J.from(r.node(f).copy(c)),d++):a--;let h=J.empty,p=0;for(let f=i,g=!1;f>n;f--)g||o.after(f+1)=0;s--){if(r.size){let l=n[s].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=J.from(n[s].type.create(n[s].attrs,r))}let o=e.start,i=e.end;t.step(new Gt(o,i,o,i,new ae(r,0,0),n.length,!0))}function K4(t,e,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(s,l)=>{if(s.isTextblock&&!s.hasMarkup(r,o)&&Y4(t.doc,t.mapping.slice(i).map(l),r)){t.clearIncompatible(t.mapping.slice(i).map(l,1),r);let a=t.mapping.slice(i),u=a.map(l,1),c=a.map(l+s.nodeSize,1);return t.step(new Gt(u,c,u+1,c-1,new ae(J.from(r.create(o,null,s.marks)),0,0),1,!0)),!1}})}function Y4(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function X4(t,e,n,r,o){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(r,null,o||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new Gt(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new ae(J.from(s),0,0),1,!0))}function Fl(t,e,n=1,r){let o=t.resolve(e),i=o.depth-n,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let u=o.depth-1,c=n-2;u>i;u--,c--){let d=o.node(u),h=o.index(u);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(h,d.childCount),f=r&&r[c+1];f&&(p=p.replaceChild(0,f.type.create(f.attrs)));let g=r&&r[c]||d;if(!d.canReplace(h+1,d.childCount)||!g.type.validContent(p))return!1}let l=o.indexAfter(i),a=r&&r[0];return o.node(i).canReplaceWith(l,l,a?a.type:o.node(i+1).type)}function q4(t,e,n=1,r){let o=t.doc.resolve(e),i=J.empty,s=J.empty;for(let l=o.depth,a=o.depth-n,u=n-1;l>a;l--,u--){i=J.from(o.node(l).copy(i));let c=r&&r[u];s=J.from(c?c.type.create(c.attrs,s):o.node(l).copy(s))}t.step(new pn(e,e,new ae(i.append(s),n,n),!0))}function Iu(t,e){let n=t.resolve(e),r=n.index();return Z4(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function Z4(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function J4(t,e,n){let r=new pn(e-n,e+n,ae.empty,!0);t.step(r)}function fC(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let o=r.depth-1;o>=0;o--){let i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let i=r.indexAfter(o);if(r.node(o).canReplaceWith(i,i,n))return r.after(o+1);if(i=0;s--){let l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,a=r.index(s)+(l>0?1:0),u=r.node(s),c=!1;if(i==1)c=u.canReplace(a,a,o);else{let d=u.contentMatchAt(a).findWrapping(o.firstChild.type);c=d&&u.canReplaceWith(a,a,d[0])}if(c)return l==0?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function m1(t,e,n=e,r=ae.empty){if(e==n&&!r.size)return null;let o=t.resolve(e),i=t.resolve(n);return gC(o,i,r)?new pn(e,n,r):new eP(o,i,r).fit()}function gC(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class eP{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=J.empty;for(let o=0;o<=e.depth;o++){let i=e.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=J.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let i=this.placed,s=r.depth,l=o.depth;for(;s&&l&&i.childCount==1;)i=i.firstChild.content,s--,l--;let a=new ae(i,s,l);return e>-1?new Gt(r.pos,e,this.$to.pos,this.$to.end(),a,n):a.size||r.pos!=this.$to.pos?new pn(r.pos,o.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,o=this.unplaced.openEnd;r1&&(o=0),i.type.spec.isolating&&o<=r){e=r;break}n=i.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let o,i=null;r?(i=v1(this.unplaced.content,r-1).firstChild,o=i.content):o=this.unplaced.content;let s=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:a,match:u}=this.frontier[l],c,d=null;if(n==1&&(s?u.matchType(s.type)||(d=u.fillBefore(J.from(s),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:l,parent:i,inject:d};if(n==2&&s&&(c=u.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:l,parent:i,wrap:c};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=v1(e,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new ae(e,n+1,Math.max(r,o.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=v1(e,n);if(o.childCount<=1&&n>0){let i=e.size-n<=n+o.size;this.unplaced=new ae(Lu(e,n-1,1),n-1,i?n-1:r)}else this.unplaced=new ae(Lu(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:o,wrap:i}){for(;this.depth>n;)this.closeFrontierNode();if(i)for(let g=0;g1||a==0||g.content.size)&&(d=m,c.push(mC(g.mark(h.allowedMarks(g.marks)),u==1?a:0,u==l.childCount?p:-1)))}let f=u==l.childCount;f||(p=-1),this.placed=Nu(this.placed,n,J.from(c)),this.frontier[n].match=d,f&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,m=l;g1&&o==this.$to.end(--r);)++o;return o}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:o}=this.frontier[n],i=n=0;l--){let{match:a,type:u}=this.frontier[l],c=y1(e,l,u,a,!0);if(!c||c.childCount)continue e}return{depth:n,fit:s,move:i?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Nu(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let o=e.node(r),i=o.type.contentMatch.fillBefore(o.content,!0,e.index(r));this.openFrontierNode(o.type,o.attrs,i)}return e}openFrontierNode(e,n=null,r){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=Nu(this.placed,this.depth,J.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(J.empty,!0);n.childCount&&(this.placed=Nu(this.placed,this.frontier.length,n))}}function Lu(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Lu(t.firstChild.content,e-1,n)))}function Nu(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Nu(t.lastChild.content,e-1,n)))}function v1(t,e){for(let n=0;n1&&(r=r.replaceChild(0,mC(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(J.empty,!0)))),t.copy(r)}function y1(t,e,n,r,o){let i=t.node(e),s=o?t.indexAfter(e):t.index(e);if(s==i.childCount&&!n.compatibleContent(i.type))return null;let l=r.fillBefore(i.content,!0,s);return l&&!tP(n,i.content,s)?l:null}function tP(t,e,n){for(let r=n;r0;h--,p--){let f=o.node(h).type.spec;if(f.defining||f.definingAsContext||f.isolating)break;s.indexOf(h)>-1?l=h:o.before(h)==p&&s.splice(1,0,-h)}let a=s.indexOf(l),u=[],c=r.openStart;for(let h=r.content,p=0;;p++){let f=h.firstChild;if(u.push(f),p==r.openStart)break;h=f.content}for(let h=c-1;h>=0;h--){let p=u[h],f=nP(p.type);if(f&&!p.sameMarkup(o.node(Math.abs(l)-1)))c=h;else if(f||!p.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let p=(h+c+1)%(r.openStart+1),f=u[p];if(f)for(let g=0;g=0&&(t.replace(e,n,r),!(t.steps.length>d));h--){let p=s[h];p<0||(e=o.before(p),n=i.after(p))}}function vC(t,e,n,r,o){if(er){let i=o.contentMatchAt(0),s=i.fillBefore(t).append(t);t=s.append(i.matchFragment(s).fillBefore(J.empty,!0))}return t}function oP(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=fC(t.doc,e,r.type);o!=null&&(e=n=o)}t.replaceRange(e,n,new ae(J.from(r),0,0))}function iP(t,e,n){let r=t.doc.resolve(e),o=t.doc.resolve(n),i=yC(r,o);for(let s=0;s0&&(a||r.node(l-1).canReplace(r.index(l-1),o.indexAfter(l-1))))return t.delete(r.before(l),o.after(l))}for(let s=1;s<=r.depth&&s<=o.depth;s++)if(e-r.start(s)==r.depth-s&&n>r.end(s)&&o.end(s)-n!=o.depth-s)return t.delete(r.before(s),n);t.delete(e,n)}function yC(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let o=r;o>=0;o--){let i=t.start(o);if(ie.pos+(e.depth-o)||t.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(i==e.start(o)||o==t.depth&&o==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&n.push(o)}return n}class Bl extends rn{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return jt.fail("No node at attribute step's position");let r=Object.create(null);for(let i in n.attrs)r[i]=n.attrs[i];r[this.attr]=this.value;let o=n.type.create(r,null,n.marks);return jt.fromReplace(e,this.pos,this.pos+1,new ae(J.from(o),0,n.isLeaf?0:1))}getMap(){return Pr.empty}invert(e){return new Bl(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Bl(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Bl(n.pos,n.attr,n.value)}}rn.jsonID("attr",Bl);class $u extends rn{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let o in e.attrs)n[o]=e.attrs[o];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return jt.ok(r)}getMap(){return Pr.empty}invert(e){return new $u(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new $u(n.attr,n.value)}}rn.jsonID("docAttr",$u);let Hl=class extends Error{};Hl=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},Hl.prototype=Object.create(Error.prototype),Hl.prototype.constructor=Hl,Hl.prototype.name="TransformError";class sP{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Dl}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Hl(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=ae.empty){let o=m1(this.doc,e,n,r);return o&&this.step(o),this}replaceWith(e,n,r){return this.replace(e,n,new ae(J.from(r),0,0))}delete(e,n){return this.replace(e,n,ae.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return rP(this,e,n,r),this}replaceRangeWith(e,n,r){return oP(this,e,n,r),this}deleteRange(e,n){return iP(this,e,n),this}lift(e,n){return W4(this,e,n),this}join(e,n=1){return J4(this,e,n),this}wrap(e,n){return G4(this,e,n),this}setBlockType(e,n=e,r,o=null){return K4(this,e,n,r,o),this}setNodeMarkup(e,n,r=null,o){return X4(this,e,n,r,o),this}setNodeAttribute(e,n,r){return this.step(new Bl(e,n,r)),this}setDocAttribute(e,n){return this.step(new $u(e,n)),this}addNodeMark(e,n){return this.step(new ls(e,n)),this}removeNodeMark(e,n){if(!(n instanceof Ge)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new Pl(e,n)),this}split(e,n=1,r){return q4(this,e,n,r),this}addMark(e,n,r){return F4(this,e,n,r),this}removeMark(e,n,r){return B4(this,e,n,r),this}clearIncompatible(e,n,r){return H4(this,e,n,r),this}}const b1=Object.create(null);class He{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new aP(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n=0;i--){let s=n<0?Ul(e.node(0),e.node(i),e.before(i+1),e.index(i),n,r):Ul(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,n,r);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new Qn(e.node(0))}static atStart(e){return Ul(e,e,0,0,1)||new Qn(e)}static atEnd(e){return Ul(e,e,e.content.size,e.childCount,-1)||new Qn(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=b1[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in b1)throw new RangeError("Duplicate use of selection JSON ID "+e);return b1[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Me.between(this.$anchor,this.$head).getBookmark()}}He.prototype.visible=!0;class aP{constructor(e,n){this.$from=e,this.$to=n}}let bC=!1;function xC(t){!bC&&!t.parent.inlineContent&&(bC=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Me extends He{constructor(e,n=e){xC(e),xC(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return He.near(r);let o=e.resolve(n.map(this.anchor));return new Me(o.parent.inlineContent?o:r,r)}replace(e,n=ae.empty){if(super.replace(e,n),n==ae.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Me&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Pp(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Me(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let o=e.resolve(n);return new this(o,r==n?o:e.resolve(r))}static between(e,n,r){let o=e.pos-n.pos;if((!r||o)&&(r=o>=0?1:-1),!n.parent.inlineContent){let i=He.findFrom(n,r,!0)||He.findFrom(n,-r,!0);if(i)n=i.$head;else return He.near(n,r)}return e.parent.inlineContent||(o==0?e=n:(e=(He.findFrom(e,-r,!0)||He.findFrom(e,r,!0)).$anchor,e.pos0?0:1);o>0?s=0;s+=o){let l=e.child(s);if(l.isAtom){if(!i&&Oe.isSelectable(l))return Oe.create(t,n-(o<0?l.nodeSize:0))}else{let a=Ul(t,l,n+o,o<0?l.childCount:0,o,i);if(a)return a}n+=l.nodeSize*o}return null}function wC(t,e,n){let r=t.steps.length-1;if(r{s==null&&(s=c)}),t.setSelection(He.near(t.doc.resolve(s),n))}const kC=1,zp=2,EC=4;class cP extends sP{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=zp,this}ensureMarks(e){return Ge.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&zp)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~zp,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||Ge.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let o=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let i=this.storedMarks;if(!i){let s=this.doc.resolve(n);i=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,o.text(e,i)),this.selection.empty||this.setSelection(He.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=EC,this}get scrolledIntoView(){return(this.updated&EC)>0}}function SC(t,e){return!e||!t?t:t.bind(e)}class Du{constructor(e,n,r){this.name=e,this.init=SC(n.init,r),this.apply=SC(n.apply,r)}}const uP=[new Du("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Du("selection",{init(t,e){return t.selection||He.atStart(e.doc)},apply(t){return t.selection}}),new Du("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Du("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class w1{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=uP.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Du(r.key,r.spec.state,r))})}}class ya{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;rr.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[r],i=o.spec.state;i&&i.toJSON&&(n[r]=i.toJSON.call(o,this[o.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new w1(e.schema,e.plugins),i=new ya(o);return o.fields.forEach(s=>{if(s.name=="doc")i.doc=as.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=He.fromJSON(i.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let l in r){let a=r[l],u=a.spec.state;if(a.key==s.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,l)){i[s.name]=u.fromJSON.call(a,e,n[l],i);return}}i[s.name]=s.init(e,i)}}),i}}function CC(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=CC(o,e,{})),n[r]=o}return n}class Xo{constructor(e){this.spec=e,this.props={},e.props&&CC(e.props,this,this.props),this.key=e.key?e.key.key:TC("plugin")}getState(e){return e[this.key]}}const k1=Object.create(null);function TC(t){return t in k1?t+"$"+ ++k1[t]:(k1[t]=0,t+"$")}class ba{constructor(e="key"){this.key=TC(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}var dP=/[A-Z]/g,hP=/^ms-/,E1={};function pP(t){return"-"+t.toLowerCase()}function fP(t){if(E1.hasOwnProperty(t))return E1[t];var e=t.replace(dP,pP);return E1[t]=hP.test(e)?"-"+e:e}function gP(t){return fP(t)}function mP(t,e){return gP(t)+":"+e}function vP(t){var e="";for(var n in t){var r=t[n];typeof r!="string"&&typeof r!="number"||(e&&(e+=";"),e+=mP(n,r))}return e}function AC(){return typeof document<"u"?document:null}function _C(t,e){if(typeof t!="string")return[t];var n=[t];typeof e=="string"||Array.isArray(e)?e={brackets:e}:e||(e={});var r=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:["{}","[]","()"],o=e.escape||"___",i=!!e.flat;r.forEach(function(a){var u=new RegExp(["\\",a[0],"[^\\",a[0],"\\",a[1],"]*\\",a[1]].join("")),c=[];function d(h,p,f){var g=n.push(h.slice(a[0].length,-a[1].length))-1;return c.push(g),o+g+o}n.forEach(function(h,p){for(var f,g=0;h!=f;)if(f=h,h=h.replace(u,d),g++>1e4)throw Error("References have circular dependency. Please, check them.");n[p]=h}),c=c.reverse(),n=n.map(function(h){return c.forEach(function(p){h=h.replace(new RegExp("(\\"+o+p+"\\"+o+")","g"),a[0]+"$1"+a[1])}),h})});var s=new RegExp("\\"+o+"([0-9]+)\\"+o);function l(a,u,c){for(var d=[],h,p=0;h=s.exec(a);){if(p++>1e4)throw Error("Circular references in parenthesis");d.push(a.slice(0,h.index)),d.push(l(u[h[1]],u)),a=a.slice(h.index+h[0].length)}return d.push(a),d}return i?n:l(n[0],n)}function RC(t,e){if(e&&e.flat){var n=e&&e.escape||"___",r=t[0],o;if(!r)return"";for(var i=new RegExp("\\"+n+"([0-9]+)\\"+n),s=0;r!=o;){if(s++>1e4)throw Error("Circular references in "+t);o=r,r=r.replace(i,l)}return r}return t.reduce(function a(u,c){return Array.isArray(c)&&(c=c.reduce(a,"")),u+c},"");function l(a,u){if(t[u]==null)throw Error("Reference "+u+"is undefined");return t[u]}}function MC(t,e){return Array.isArray(t)?RC(t,e):_C(t,e)}MC.parse=_C,MC.stringify=RC;var cs=Object.freeze({__proto__:null,COPY_DESCRIPTION:{id:"extension.command.copy.description",message:"Copy the selected text",comment:"Description for copy command."},COPY_LABEL:{id:"extension.command.copy.label",message:"Copy",comment:"Label for copy command."},CUT_DESCRIPTION:{id:"extension.command.cut.description",message:"Cut the selected text",comment:"Description for cut command."},CUT_LABEL:{id:"extension.command.cut.label",message:"Cut",comment:"Label for cut command."},PASTE_DESCRIPTION:{id:"extension.command.paste.description",message:"Paste content into the editor",comment:"Description for paste command."},PASTE_LABEL:{id:"extension.command.paste.label",message:"Paste",comment:"Label for paste command."},SELECT_ALL_DESCRIPTION:{id:"extension.command.select-all.description",message:"Select all content within the editor",comment:"Description for select all command."},SELECT_ALL_LABEL:{id:"extension.command.select-all.label",message:"Select all",comment:"Label for select all command."}}),on=Object.freeze({__proto__:null,ALT_KEY:{id:"keyboard.shortcut.alt",message:"Alt",comment:"Label for alt key in shortcuts."},ARROW_DOWN_KEY:{id:"keyboard.shortcut.arrowDown",message:"Arrow Down",comment:"Label for arrowDown key in shortcuts."},ARROW_LEFT_KEY:{id:"keyboard.shortcut.arrowLeft",message:"Arrow Left",comment:"Label for arrow left key in shortcuts."},ARROW_RIGHT_KEY:{id:"keyboard.shortcut.arrowRight",message:"Arrow Right",comment:"Label for arrow right key in shortcuts."},ARROW_UP_KEY:{id:"keyboard.shortcut.arrowUp",message:"Arrow Up",comment:"Label for arrow up key in shortcuts."},BACKSPACE_KEY:{id:"keyboard.shortcut.backspace",message:"Backspace",comment:"Label for backspace key in shortcuts."},CAPS_LOCK_KEY:{id:"keyboard.shortcut.capsLock",message:"Caps Lock",comment:"Label for caps lock key in shortcuts."},COMMAND_KEY:{id:"keyboard.shortcut.command",message:"Command",comment:"Label for command key in shortcuts."},CONTROL_KEY:{id:"keyboard.shortcut.control",message:"Control",comment:"Label for control key in shortcuts."},DELETE_KEY:{id:"keyboard.shortcut.delete",message:"Delete",comment:"Label for delete key in shortcuts."},END_KEY:{id:"keyboard.shortcut.end",message:"End",comment:"Label for end key in shortcuts."},ENTER_KEY:{id:"keyboard.shortcut.enter",message:"Enter",comment:"Label for enter key in shortcuts."},ESCAPE_KEY:{id:"keyboard.shortcut.escape",message:"Enter",comment:"Label for escape key in shortcuts."},HOME_KEY:{id:"keyboard.shortcut.home",message:"Home",comment:"Label for home key in shortcuts."},PAGE_DOWN_KEY:{id:"keyboard.shortcut.pageDown",message:"Page Down",comment:"Label for page down key in shortcuts."},PAGE_UP_KEY:{id:"keyboard.shortcut.pageUp",message:"Page Up",comment:"Label for page up key in shortcuts."},SHIFT_KEY:{id:"keyboard.shortcut.shift",message:"Shift",comment:"Label for shift key in shortcuts."},SPACE_KEY:{id:"keyboard.shortcut.space",message:"Space",comment:"Label for space key in shortcuts."},TAB_KEY:{id:"keyboard.shortcut.tab",message:"Tab",comment:"Label for tab key in shortcuts."}}),OC=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.toggle-blockquote.description",message:"Add blockquote formatting to the selected text",comment:"Description for blockquote formatting command."},LABEL:{id:"extension.command.toggle-blockquote.label",message:"Blockquote",comment:"Label for blockquote formatting command."}}),IC=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.toggle-bold.description",message:"Add bold formatting to the selected text",comment:"Description for bold formatting command."},LABEL:{id:"extension.command.toggle-bold.label",message:"Bold",comment:"Label for bold formatting command."}}),yP=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.toggle-code-block.description",message:"Add a code block",comment:"Description for the code block command."},LABEL:{id:"extension.command.toggle-code-block.label",message:"Codeblock",comment:"Label for the code block command."}}),bP=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.toggle-code.description",message:"Add inline code formatting to the selected text",comment:"Description for the inline code formatting command."},LABEL:{id:"extension.command.toggle-code.label",message:"Code",comment:"Label for the inline code formatting."}}),xP=Object.freeze({__proto__:null,LABEL:{id:"extension.command.toggle-heading.label",message:`{level, select, 1 {Heading 1} +`:"";return`${r}${o}For more information visit ${HS}#${t.toLowerCase()}`}var US=class extends xS.BaseError{constructor({code:t,message:e,disableLogging:n=!1}={}){const r=_4(t)?t:re.CUSTOM;super(R4(r,e)),this.errorCode=r,this.url=`${HS}#${r.toLowerCase()}`,n||console.error(this.message)}static create(t={}){return new US(t)}};function be(t,e){if(!t)throw US.create(e)}function Rp(t){if(typeof t!="object"||t===null)return t;const e=Symbol.toStringTag in t&&t[Symbol.toStringTag]==="Module"?t.default??t:t;return e&&typeof t=="object"&&"__esModule"in e&&e.__esModule&&e.default!==void 0?e.default:e}function pa(t,e={}){return t}function An(t){this.content=t}An.prototype={constructor:An,find:function(t){for(var e=0;e>1}},An.from=function(t){if(t instanceof An)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new An(e)};function WS(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),i=e.child(r);if(o==i){n+=o.nodeSize;continue}if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)n++;return n}if(o.content.size||i.content.size){let s=WS(o.content,i.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function VS(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:n,b:r};let s=t.child(--o),l=e.child(--i),a=s.nodeSize;if(s==l){n-=a,r-=a;continue}if(!s.sameMarkup(l))return{a:n,b:r};if(s.isText&&s.text!=l.text){let u=0,c=Math.min(s.text.length,l.text.length);for(;ue&&r(a,o+l,i||null,s)!==!1&&a.content.size){let c=l+1;a.nodesBetween(Math.max(0,e-c),Math.min(a.content.size,n-c),r,o+c)}l=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",s=!0;return this.nodesBetween(e,n,(l,a)=>{let u=l.isText?l.text.slice(Math.max(e,a)-a,n-a):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&r&&(s?s=!1:i+=r),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);ie)for(let i=0,s=0;se&&((sn)&&(l.isText?l=l.cut(Math.max(0,e-s),Math.min(l.text.length,n-s)):l=l.cut(Math.max(0,e-s-1),Math.min(l.content.size,n-s-1))),r.push(l),o+=l.nodeSize),s=a}return new J(r,o)}cutByIndex(e,n){return e==n?J.empty:e==0&&n==this.content.length?this:new J(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new J(o,i)}addToStart(e){return new J([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new J(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;nthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let i=this.child(r),s=o+i.nodeSize;if(s>=e)return s==e||n>0?Mp(r+1,s):Mp(r,o);o=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return J.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new J(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return J.empty;let n,r=0;for(let o=0;othis.type.rank&&(n||(n=e.slice(0,o)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;nr.type.rank-o.type.rank),n}}Ge.none=[];class Ip extends Error{}class ae{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=GS(this.content,e+this.openStart,n);return r&&new ae(r,this.openStart,this.openEnd)}removeBetween(e,n){return new ae(jS(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return ae.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ae(J.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)o++;return new ae(e,r,o)}}ae.empty=new ae(J.empty,0,0);function jS(t,e,n){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r),{index:s,offset:l}=t.findIndex(n);if(o==e||i.isText){if(l!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(jS(i.content,e-o-1,n-o-1)))}function GS(t,e,n,r){let{index:o,offset:i}=t.findIndex(e),s=t.maybeChild(o);if(i==e||s.isText)return r&&!r.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let l=GS(s.content,e-i-1,n);return l&&t.replaceChild(o,s.copy(l))}function M4(t,e,n){if(n.openStart>t.depth)throw new Ip("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Ip("Inconsistent open depths");return KS(t,e,n,0)}function KS(t,e,n,r){let o=t.index(r),i=t.node(r);if(o==e.index(r)&&r=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function _u(t,e,n,r){let o=(e||t).node(n),i=0,s=e?e.index(n):o.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(fa(t.nodeAfter,r),i++));for(let l=i;lo&&l1(t,e,o+1),s=r.depth>o&&l1(n,r,o+1),l=[];return _u(null,t,o,l),i&&s&&e.index(o)==n.index(o)?(YS(i,s),fa(ga(i,XS(t,e,n,r,o+1)),l)):(i&&fa(ga(i,Lp(t,e,o+1)),l),_u(e,n,o,l),s&&fa(ga(s,Lp(n,r,o+1)),l)),_u(r,null,o,l),new J(l)}function Lp(t,e,n){let r=[];if(_u(null,t,n,r),t.depth>n){let o=l1(t,e,n+1);fa(ga(o,Lp(t,e,n+1)),r)}return _u(e,null,n,r),new J(r)}function O4(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)o=e.node(i).copy(J.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class Dl{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let i=0;i0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new ma(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,i=n;for(let s=e;;){let{index:l,offset:a}=s.content.findIndex(i),u=i-a;if(r.push(s,l,o+a),!u||(s=s.child(l),s.isText))break;i=u-1,o+=a+1}return new Dl(n,r,i)}static resolveCached(e,n){let r=qS.get(e);if(r)for(let i=0;ie&&this.nodesBetween(e,n,i=>(r.isInSet(i.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),ZS(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=J.empty,o=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),l=s&&s.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let a=o;an.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=J.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,o,r);return i.type.checkAttrs(i.attrs),i}};ls.prototype.text=void 0;class Np extends ls{constructor(e,n,r,o){if(super(e,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):ZS(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Np(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Np(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function ZS(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class va{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new $4(e,n);if(r.next==null)return va.empty;let o=JS(r);r.next&&r.err("Unexpected trailing text");let i=U4(H4(o));return W4(i,r),i}matchType(e){for(let n=0;nu.createAndFill()));for(let u=0;u=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o{let i=o+(r.validEnd?"*":" ")+" ";for(let s=0;s"+e.indexOf(r.next[s].next);return i}).join(` +`)}}va.empty=new va(!0);class $4{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function JS(t){let e=[];do e.push(D4(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function D4(t){let e=[];do e.push(P4(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function P4(t){let e=B4(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=z4(t,e);else break;return e}function QS(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function z4(t,e){let n=QS(t),r=n;return t.eat(",")&&(t.next!="}"?r=QS(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function F4(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let i in n){let s=n[i];s.isInGroup(e)&&o.push(s)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function B4(t){if(t.eat("(")){let e=JS(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=F4(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function H4(t){let e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(s,l,a){let u={term:a,to:l};return e[s].push(u),u}function o(s,l){s.forEach(a=>a.to=l)}function i(s,l){if(s.type=="choice")return s.exprs.reduce((a,u)=>a.concat(i(u,l)),[]);if(s.type=="seq")for(let a=0;;a++){let u=i(s.exprs[a],l);if(a==s.exprs.length-1)return u;o(u,l=n())}else if(s.type=="star"){let a=n();return r(l,a),o(i(s.expr,a),a),[r(a)]}else if(s.type=="plus"){let a=n();return o(i(s.expr,l),a),o(i(s.expr,a),a),[r(a)]}else{if(s.type=="opt")return[r(l)].concat(i(s.expr,l));if(s.type=="range"){let a=l;for(let u=0;u{t[s].forEach(({term:l,to:a})=>{if(!l)return;let u;for(let c=0;c{u||o.push([l,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let i=e[r.join(",")]=new va(r.indexOf(t.length-1)>-1);for(let s=0;s-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:rC(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ls(this,this.computeAttrs(e),J.from(n),Ge.setFrom(r))}createChecked(e=null,n,r){return n=J.from(n),this.checkContent(n),new ls(this,this.computeAttrs(e),n,Ge.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=J.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let o=this.contentMatch.matchFragment(n),i=o&&o.fillBefore(J.empty,!0);return i?new ls(this,e,n.append(i),Ge.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;nr[i]=new mD(i,n,s));let o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function V4(t,e,n){let r=n.split("|");return o=>{let i=o===null?"null":typeof o;if(r.indexOf(i)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${i}`)}}class j4{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?V4(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Ru{constructor(e,n,r,o){this.name=e,this.rank=n,this.schema=r,this.spec=o,this.attrs=iC(e,o.attrs),this.excluded=null;let i=nC(this.attrs);this.instance=i?new Ge(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Ge(this,rC(this.attrs,e))}static compile(e,n){let r=Object.create(null),o=0;return e.forEach((i,s)=>r[i]=new Ru(i,o++,n,s)),r}removeFromSet(e){for(var n=0;n-1}}let G4=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let o in e)n[o]=e[o];n.nodes=An.from(e.nodes),n.marks=An.from(e.marks||{}),this.nodes=c1.compile(this.spec.nodes,this),this.marks=Ru.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let i=this.nodes[o],s=i.spec.content||"",l=i.spec.marks;if(i.contentMatch=r[s]||(r[s]=va.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=l=="_"?null:l?sC(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:sC(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof c1){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,o)}text(e,n){let r=this.nodes.text;return new Np(r,r.defaultAttrs,e,Ge.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return ls.fromJSON(this,e)}markFromJSON(e){return Ge.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}};function sC(t,e){let n=[];for(let r=0;r-1)&&n.push(s=a)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function K4(t){return t.tag!=null}function Y4(t){return t.style!=null}class ya{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(o=>{if(K4(o))this.tags.push(o);else if(Y4(o)){let i=/[^=]*/.exec(o.style)[0];r.indexOf(i)<0&&r.push(i),this.styles.push(o)}}),this.normalizeLists=!this.tags.some(o=>{if(!/^(ul|ol)\b/.test(o.tag)||!o.node)return!1;let i=e.nodes[o.node];return i.contentMatch.matchType(i)})}parse(e,n={}){let r=new uC(this,n,!1);return r.addAll(e,Ge.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new uC(this,n,!0);return r.addAll(e,Ge.none,n.from,n.to),ae.maxOpen(r.finish())}matchTag(e,n,r){for(let o=r?this.tags.indexOf(r)+1:0;oe.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=n))){if(s.getAttrs){let a=s.getAttrs(n);if(a===!1)continue;s.attrs=a||void 0}return s}}}static schemaRules(e){let n=[];function r(o){let i=o.priority==null?50:o.priority,s=0;for(;s{r(s=dC(s)),s.mark||s.ignore||s.clearMark||(s.mark=o)})}for(let o in e.nodes){let i=e.nodes[o].spec.parseDOM;i&&i.forEach(s=>{r(s=dC(s)),s.node||s.ignore||s.mark||(s.node=o)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new ya(e,ya.schemaRules(e)))}}const aC={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},X4={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},lC={ol:!0,ul:!0},Mu=1,u1=2,Ou=4;function cC(t,e,n){return e!=null?(e?Mu:0)|(e==="full"?u1:0):t&&t.whitespace=="pre"?Mu|u1:n&~Ou}class $p{constructor(e,n,r,o,i,s){this.type=e,this.attrs=n,this.marks=r,this.solid=o,this.options=s,this.content=[],this.activeMarks=Ge.none,this.match=i||(s&Ou?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(J.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Mu)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-o[0].length))}}let n=J.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(J.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!aC.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class uC{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let o=n.topNode,i,s=cC(null,n.preserveWhitespace,0)|(r?Ou:0);o?i=new $p(o.type,o.attrs,Ge.none,!0,n.topMatch||o.type.contentMatch,s):r?i=new $p(null,null,Ge.none,!0,null,s):i=new $p(e.schema.topNodeType,null,Ge.none,!0,null,s),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,o=this.top,i=o.options&u1?"full":this.localPreserveWS||(o.options&Mu)>0;if(i==="full"||o.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)i!=="full"?r=r.replace(/\r?\n|\r/g," "):r=r.replace(/\r\n?/g,` +`);else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let s=o.content[o.content.length-1],l=e.previousSibling;(!s||l&&l.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let o=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),l;lC.hasOwnProperty(s)&&this.parser.normalizeLists&&q4(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(l=this.parser.matchTag(e,this,r));e:if(a?a.ignore:X4.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let u,c=this.needsBlock;if(aC.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),u=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=a&&a.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),u&&this.sync(i),this.needsBlock=c}else{let u=this.readStyles(e,n);u&&this.addElementByRule(e,a,u,a.consuming===!1?l:void 0)}this.localPreserveWS=o}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` +`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let o=0;o!a.clearMark(u)):n=n.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return n}addElementByRule(e,n,r,o){let i,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let a=this.enter(s,n.attrs||null,r,n.preserveWhitespace);a&&(i=!0,r=a)}else{let a=this.parser.schema.marks[n.mark];r=r.concat(a.create(n.attrs))}let l=this.top;if(s&&s.isLeaf)this.findInside(e);else if(o)this.addElement(e,r,o);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a,r,!1));else{let a=e;typeof n.contentElement=="string"?a=e.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(e):n.contentElement&&(a=n.contentElement),this.findAround(e,a,!0),this.addAll(a,r),this.findAround(e,a,!1)}i&&this.sync(l)&&this.open--}addAll(e,n,r,o){let i=r||0;for(let s=r?e.childNodes[r]:e.firstChild,l=o==null?null:e.childNodes[o];s!=l;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s,n);this.findAtPoint(e,i)}findPlace(e,n,r){let o,i;for(let s=this.open,l=0;s>=0;s--){let a=this.nodes[s],u=a.findWrapping(e);if(u&&(!o||o.length>u.length+l)&&(o=u,i=a,!u.length))break;if(a.solid){if(r)break;l+=2}}if(!o)return null;this.sync(i);for(let s=0;s(s.type?s.type.allowsMarkType(u.type):hC(u.type,e))?(a=u.addToSet(a),!1):!0),this.nodes.push(new $p(e,n,a,o,null,l)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=Mu)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),s=(l,a)=>{for(;l>=0;l--){let u=n[l];if(u==""){if(l==n.length-1||l==0)continue;for(;a>=i;a--)if(s(l-1,a))return!0;return!1}else{let c=a>0||a==0&&o?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return!1;a--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function q4(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&lC.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function Z4(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function dC(t){let e={};for(let n in t)e[n]=t[n];return e}function hC(t,e){let n=e.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(t))continue;let i=[],s=l=>{i.push(l);for(let a=0;a{if(i.length||s.marks.length){let l=0,a=0;for(;l=0;o--){let i=this.serializeMark(e.marks[o],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,n,r={}){let o=this.marks[e.type.name];return o&&Dp(d1(r),o(e,n),null,e.attrs)}static renderSpec(e,n,r=null,o){return Dp(e,n,r,o)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Xo(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=pC(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return pC(e.marks)}}function pC(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function d1(t){return t.document||window.document}const fC=new WeakMap;function J4(t){let e=fC.get(t);return e===void 0&&fC.set(t,e=Q4(t)),e}function Q4(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let o=0;o-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=o.indexOf(" ");s>0&&(n=o.slice(0,s),o=o.slice(s+1));let l,a=n?t.createElementNS(n,o):t.createElement(o),u=e[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let h=d.indexOf(" ");h>0?a.setAttributeNS(d.slice(0,h),d.slice(h+1),u[d]):a.setAttribute(d,u[d])}}for(let d=c;dc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:p,contentDOM:f}=Dp(t,h,n,r);if(a.appendChild(p),f){if(l)throw new RangeError("Multiple content holes");l=f}}}return{dom:a,contentDOM:l}}const gC=65535,mC=Math.pow(2,16);function eP(t,e){return t+e*mC}function vC(t){return t&gC}function tP(t){return(t-(t&gC))/mC}const yC=1,bC=2,Pp=4,xC=8;class h1{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&xC)>0}get deletedBefore(){return(this.delInfo&(yC|Pp))>0}get deletedAfter(){return(this.delInfo&(bC|Pp))>0}get deletedAcross(){return(this.delInfo&Pp)>0}}class Pr{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Pr.empty)return Pr.empty}recover(e){let n=0,r=vC(e);if(!this.inverted)for(let o=0;oe)break;let u=this.ranges[l+i],c=this.ranges[l+s],d=a+u;if(e<=d){let h=u?e==a?-1:e==d?1:n:n,p=a+o+(h<0?0:c);if(r)return p;let f=e==(n<0?a:d)?null:eP(l/3,e-a),g=e==a?bC:e==d?yC:Pp;return(n<0?e!=a:e!=d)&&(g|=xC),new h1(p,g,f)}o+=c-u}return r?e+o:new h1(e+o,0,null)}touches(e,n){let r=0,o=vC(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;le)break;let u=this.ranges[l+i],c=a+u;if(e<=c&&l==o*3)return!0;r+=this.ranges[l+s]-u}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,i=0;o=0;n--){let o=e.getMirror(n);this.appendMap(e._maps[n].invert(),o!=null&&o>n?r-o-1:void 0)}}invert(){let e=new Iu;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;ri&&a!s.isAtom||!l.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),o),n.openStart,n.openEnd);return jt.fromReplace(e,this.from,this.to,i)}invert(){return new Ro(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new xi(n.pos,r.pos,this.mark)}merge(e){return e instanceof xi&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new xi(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new xi(n.from,n.to,e.markFromJSON(n.mark))}}rn.jsonID("addMark",xi);class Ro extends rn{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new ae(f1(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return jt.fromReplace(e,this.from,this.to,r)}invert(){return new xi(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Ro(n.pos,r.pos,this.mark)}merge(e){return e instanceof Ro&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ro(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Ro(n.from,n.to,e.markFromJSON(n.mark))}}rn.jsonID("removeMark",Ro);class cs extends rn{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return jt.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return jt.fromReplace(e,this.pos,this.pos+1,new ae(J.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let o=0;or.pos?null:new Gt(n.pos,r.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Gt(n.from,n.to,n.gapFrom,n.gapTo,ae.fromJSON(e,n.slice),n.insert,!!n.structure)}}rn.jsonID("replaceAround",Gt);function g1(t,e,n){let r=t.resolve(e),o=n-e,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let s=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function nP(t,e,n,r){let o=[],i=[],s,l;t.doc.nodesBetween(e,n,(a,u,c)=>{if(!a.isInline)return;let d=a.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let h=Math.max(u,e),p=Math.min(u+a.nodeSize,n),f=r.addToSet(d);for(let g=0;gt.step(a)),i.forEach(a=>t.step(a))}function rP(t,e,n,r){let o=[],i=0;t.doc.nodesBetween(e,n,(s,l)=>{if(!s.isInline)return;i++;let a=null;if(r instanceof Ru){let u=s.marks,c;for(;c=r.isInSet(u);)(a||(a=[])).push(c),u=c.removeFromSet(u)}else r?r.isInSet(s.marks)&&(a=[r]):a=s.marks;if(a&&a.length){let u=Math.min(l+s.nodeSize,n);for(let c=0;ct.step(new Ro(s.from,s.to,s.style)))}function m1(t,e,n,r=n.contentMatch,o=!0){let i=t.doc.nodeAt(e),s=[],l=e+1;for(let a=0;a=0;a--)t.step(s[a])}function oP(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Pl(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let o=t.$from.node(r),i=t.$from.index(r),s=t.$to.indexAfter(r);if(rn;f--)g||r.index(f)>0?(g=!0,c=J.from(r.node(f).copy(c)),d++):a--;let h=J.empty,p=0;for(let f=i,g=!1;f>n;f--)g||o.after(f+1)=0;s--){if(r.size){let l=n[s].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=J.from(n[s].type.create(n[s].attrs,r))}let o=e.start,i=e.end;t.step(new Gt(o,i,o,i,new ae(r,0,0),n.length,!0))}function cP(t,e,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(s,l)=>{let a=typeof o=="function"?o(s):o;if(s.isTextblock&&!s.hasMarkup(r,a)&&uP(t.doc,t.mapping.slice(i).map(l),r)){let u=null;if(r.schema.linebreakReplacement){let p=r.whitespace=="pre",f=!!r.contentMatch.matchType(r.schema.linebreakReplacement);p&&!f?u=!1:!p&&f&&(u=!0)}u===!1&&EC(t,s,l,i),m1(t,t.mapping.slice(i).map(l,1),r,void 0,u===null);let c=t.mapping.slice(i),d=c.map(l,1),h=c.map(l+s.nodeSize,1);return t.step(new Gt(d,h,d+1,h-1,new ae(J.from(r.create(a,null,s.marks)),0,0),1,!0)),u===!0&&kC(t,s,l,i),!1}})}function kC(t,e,n,r){e.forEach((o,i)=>{if(o.isText){let s,l=/\r?\n|\r/g;for(;s=l.exec(o.text);){let a=t.mapping.slice(r).map(n+1+i+s.index);t.replaceWith(a,a+1,e.type.schema.linebreakReplacement.create())}}})}function EC(t,e,n,r){e.forEach((o,i)=>{if(o.type==o.type.schema.linebreakReplacement){let s=t.mapping.slice(r).map(n+1+i);t.replaceWith(s,s+1,e.type.schema.text(` +`))}})}function uP(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function dP(t,e,n,r,o){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(r,null,o||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new Gt(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new ae(J.from(s),0,0),1,!0))}function zl(t,e,n=1,r){let o=t.resolve(e),i=o.depth-n,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let u=o.depth-1,c=n-2;u>i;u--,c--){let d=o.node(u),h=o.index(u);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(h,d.childCount),f=r&&r[c+1];f&&(p=p.replaceChild(0,f.type.create(f.attrs)));let g=r&&r[c]||d;if(!d.canReplace(h+1,d.childCount)||!g.type.validContent(p))return!1}let l=o.indexAfter(i),a=r&&r[0];return o.node(i).canReplaceWith(l,l,a?a.type:o.node(i+1).type)}function hP(t,e,n=1,r){let o=t.doc.resolve(e),i=J.empty,s=J.empty;for(let l=o.depth,a=o.depth-n,u=n-1;l>a;l--,u--){i=J.from(o.node(l).copy(i));let c=r&&r[u];s=J.from(c?c.type.create(c.attrs,s):o.node(l).copy(s))}t.step(new pn(e,e,new ae(i.append(s),n,n),!0))}function Lu(t,e){let n=t.resolve(e),r=n.index();return fP(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function pP(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let o=0;o=0;o--){let i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let i=r.indexAfter(o);if(r.node(o).canReplaceWith(i,i,n))return r.after(o+1);if(i=0;s--){let l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,a=r.index(s)+(l>0?1:0),u=r.node(s),c=!1;if(i==1)c=u.canReplace(a,a,o);else{let d=u.contentMatchAt(a).findWrapping(o.firstChild.type);c=d&&u.canReplaceWith(a,a,d[0])}if(c)return l==0?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function y1(t,e,n=e,r=ae.empty){if(e==n&&!r.size)return null;let o=t.resolve(e),i=t.resolve(n);return CC(o,i,r)?new pn(e,n,r):new vP(o,i,r).fit()}function CC(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class vP{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=J.empty;for(let o=0;o<=e.depth;o++){let i=e.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=J.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let i=this.placed,s=r.depth,l=o.depth;for(;s&&l&&i.childCount==1;)i=i.firstChild.content,s--,l--;let a=new ae(i,s,l);return e>-1?new Gt(r.pos,e,this.$to.pos,this.$to.end(),a,n):a.size||r.pos!=this.$to.pos?new pn(r.pos,o.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,o=this.unplaced.openEnd;r1&&(o=0),i.type.spec.isolating&&o<=r){e=r;break}n=i.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let o,i=null;r?(i=b1(this.unplaced.content,r-1).firstChild,o=i.content):o=this.unplaced.content;let s=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:a,match:u}=this.frontier[l],c,d=null;if(n==1&&(s?u.matchType(s.type)||(d=u.fillBefore(J.from(s),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:l,parent:i,inject:d};if(n==2&&s&&(c=u.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:l,parent:i,wrap:c};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=b1(e,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new ae(e,n+1,Math.max(r,o.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=b1(e,n);if(o.childCount<=1&&n>0){let i=e.size-n<=n+o.size;this.unplaced=new ae(Nu(e,n-1,1),n-1,i?n-1:r)}else this.unplaced=new ae(Nu(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:o,wrap:i}){for(;this.depth>n;)this.closeFrontierNode();if(i)for(let g=0;g1||a==0||g.content.size)&&(d=m,c.push(TC(g.mark(h.allowedMarks(g.marks)),u==1?a:0,u==l.childCount?p:-1)))}let f=u==l.childCount;f||(p=-1),this.placed=$u(this.placed,n,J.from(c)),this.frontier[n].match=d,f&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,m=l;g1&&o==this.$to.end(--r);)++o;return o}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:o}=this.frontier[n],i=n=0;l--){let{match:a,type:u}=this.frontier[l],c=x1(e,l,u,a,!0);if(!c||c.childCount)continue e}return{depth:n,fit:s,move:i?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=$u(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let o=e.node(r),i=o.type.contentMatch.fillBefore(o.content,!0,e.index(r));this.openFrontierNode(o.type,o.attrs,i)}return e}openFrontierNode(e,n=null,r){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=$u(this.placed,this.depth,J.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(J.empty,!0);n.childCount&&(this.placed=$u(this.placed,this.frontier.length,n))}}function Nu(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Nu(t.firstChild.content,e-1,n)))}function $u(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy($u(t.lastChild.content,e-1,n)))}function b1(t,e){for(let n=0;n1&&(r=r.replaceChild(0,TC(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(J.empty,!0)))),t.copy(r)}function x1(t,e,n,r,o){let i=t.node(e),s=o?t.indexAfter(e):t.index(e);if(s==i.childCount&&!n.compatibleContent(i.type))return null;let l=r.fillBefore(i.content,!0,s);return l&&!yP(n,i.content,s)?l:null}function yP(t,e,n){for(let r=n;r0;h--,p--){let f=o.node(h).type.spec;if(f.defining||f.definingAsContext||f.isolating)break;s.indexOf(h)>-1?l=h:o.before(h)==p&&s.splice(1,0,-h)}let a=s.indexOf(l),u=[],c=r.openStart;for(let h=r.content,p=0;;p++){let f=h.firstChild;if(u.push(f),p==r.openStart)break;h=f.content}for(let h=c-1;h>=0;h--){let p=u[h],f=bP(p.type);if(f&&!p.sameMarkup(o.node(Math.abs(l)-1)))c=h;else if(f||!p.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let p=(h+c+1)%(r.openStart+1),f=u[p];if(f)for(let g=0;g=0&&(t.replace(e,n,r),!(t.steps.length>d));h--){let p=s[h];p<0||(e=o.before(p),n=i.after(p))}}function AC(t,e,n,r,o){if(er){let i=o.contentMatchAt(0),s=i.fillBefore(t).append(t);t=s.append(i.matchFragment(s).fillBefore(J.empty,!0))}return t}function wP(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=SC(t.doc,e,r.type);o!=null&&(e=n=o)}t.replaceRange(e,n,new ae(J.from(r),0,0))}function kP(t,e,n){let r=t.doc.resolve(e),o=t.doc.resolve(n),i=_C(r,o);for(let s=0;s0&&(a||r.node(l-1).canReplace(r.index(l-1),o.indexAfter(l-1))))return t.delete(r.before(l),o.after(l))}for(let s=1;s<=r.depth&&s<=o.depth;s++)if(e-r.start(s)==r.depth-s&&n>r.end(s)&&o.end(s)-n!=o.depth-s&&r.start(s-1)==o.start(s-1)&&r.node(s-1).canReplace(r.index(s-1),o.index(s-1)))return t.delete(r.before(s),n);t.delete(e,n)}function _C(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let o=r;o>=0;o--){let i=t.start(o);if(ie.pos+(e.depth-o)||t.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(i==e.start(o)||o==t.depth&&o==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&n.push(o)}return n}class Fl extends rn{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return jt.fail("No node at attribute step's position");let r=Object.create(null);for(let i in n.attrs)r[i]=n.attrs[i];r[this.attr]=this.value;let o=n.type.create(r,null,n.marks);return jt.fromReplace(e,this.pos,this.pos+1,new ae(J.from(o),0,n.isLeaf?0:1))}getMap(){return Pr.empty}invert(e){return new Fl(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Fl(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Fl(n.pos,n.attr,n.value)}}rn.jsonID("attr",Fl);class Du extends rn{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let o in e.attrs)n[o]=e.attrs[o];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return jt.ok(r)}getMap(){return Pr.empty}invert(e){return new Du(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Du(n.attr,n.value)}}rn.jsonID("docAttr",Du);let Bl=class extends Error{};Bl=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},Bl.prototype=Object.create(Error.prototype),Bl.prototype.constructor=Bl,Bl.prototype.name="TransformError";class EP{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Iu}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Bl(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=ae.empty){let o=y1(this.doc,e,n,r);return o&&this.step(o),this}replaceWith(e,n,r){return this.replace(e,n,new ae(J.from(r),0,0))}delete(e,n){return this.replace(e,n,ae.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return xP(this,e,n,r),this}replaceRangeWith(e,n,r){return wP(this,e,n,r),this}deleteRange(e,n){return kP(this,e,n),this}lift(e,n){return iP(this,e,n),this}join(e,n=1){return gP(this,e,n),this}wrap(e,n){return lP(this,e,n),this}setBlockType(e,n=e,r,o=null){return cP(this,e,n,r,o),this}setNodeMarkup(e,n,r=null,o){return dP(this,e,n,r,o),this}setNodeAttribute(e,n,r){return this.step(new Fl(e,n,r)),this}setDocAttribute(e,n){return this.step(new Du(e,n)),this}addNodeMark(e,n){return this.step(new cs(e,n)),this}removeNodeMark(e,n){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n instanceof Ge)n.isInSet(r.marks)&&this.step(new ba(e,n));else{let o=r.marks,i,s=[];for(;i=n.isInSet(o);)s.push(new ba(e,i)),o=i.removeFromSet(o);for(let l=s.length-1;l>=0;l--)this.step(s[l])}return this}split(e,n=1,r){return hP(this,e,n,r),this}addMark(e,n,r){return nP(this,e,n,r),this}removeMark(e,n,r){return rP(this,e,n,r),this}clearIncompatible(e,n,r){return m1(this,e,n,r),this}}const w1=Object.create(null);class He{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new k1(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n=0;i--){let s=n<0?Hl(e.node(0),e.node(i),e.before(i+1),e.index(i),n,r):Hl(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,n,r);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new er(e.node(0))}static atStart(e){return Hl(e,e,0,0,1)||new er(e)}static atEnd(e){return Hl(e,e,e.content.size,e.childCount,-1)||new er(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=w1[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in w1)throw new RangeError("Duplicate use of selection JSON ID "+e);return w1[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Oe.between(this.$anchor,this.$head).getBookmark()}}He.prototype.visible=!0;class k1{constructor(e,n){this.$from=e,this.$to=n}}let RC=!1;function MC(t){!RC&&!t.parent.inlineContent&&(RC=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Oe extends He{constructor(e,n=e){MC(e),MC(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return He.near(r);let o=e.resolve(n.map(this.anchor));return new Oe(o.parent.inlineContent?o:r,r)}replace(e,n=ae.empty){if(super.replace(e,n),n==ae.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Oe&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new zp(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Oe(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let o=e.resolve(n);return new this(o,r==n?o:e.resolve(r))}static between(e,n,r){let o=e.pos-n.pos;if((!r||o)&&(r=o>=0?1:-1),!n.parent.inlineContent){let i=He.findFrom(n,r,!0)||He.findFrom(n,-r,!0);if(i)n=i.$head;else return He.near(n,r)}return e.parent.inlineContent||(o==0?e=n:(e=(He.findFrom(e,-r,!0)||He.findFrom(e,r,!0)).$anchor,e.pos0?0:1);o>0?s=0;s+=o){let l=e.child(s);if(l.isAtom){if(!i&&_e.isSelectable(l))return _e.create(t,n-(o<0?l.nodeSize:0))}else{let a=Hl(t,l,n+o,o<0?l.childCount:0,o,i);if(a)return a}n+=l.nodeSize*o}return null}function OC(t,e,n){let r=t.steps.length-1;if(r{s==null&&(s=c)}),t.setSelection(He.near(t.doc.resolve(s),n))}const IC=1,Fp=2,LC=4;class CP extends EP{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Fp,this}ensureMarks(e){return Ge.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Fp)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Fp,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||Ge.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let o=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let i=this.storedMarks;if(!i){let s=this.doc.resolve(n);i=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,o.text(e,i)),this.selection.empty||this.setSelection(He.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=LC,this}get scrolledIntoView(){return(this.updated&LC)>0}}function NC(t,e){return!e||!t?t:t.bind(e)}class Pu{constructor(e,n,r){this.name=e,this.init=NC(n.init,r),this.apply=NC(n.apply,r)}}const TP=[new Pu("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Pu("selection",{init(t,e){return t.selection||He.atStart(e.doc)},apply(t){return t.selection}}),new Pu("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Pu("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class S1{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=TP.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Pu(r.key,r.spec.state,r))})}}class xa{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;rr.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[r],i=o.spec.state;i&&i.toJSON&&(n[r]=i.toJSON.call(o,this[o.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new S1(e.schema,e.plugins),i=new xa(o);return o.fields.forEach(s=>{if(s.name=="doc")i.doc=ls.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=He.fromJSON(i.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let l in r){let a=r[l],u=a.spec.state;if(a.key==s.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,l)){i[s.name]=u.fromJSON.call(a,e,n[l],i);return}}i[s.name]=s.init(e,i)}}),i}}function $C(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=$C(o,e,{})),n[r]=o}return n}class qo{constructor(e){this.spec=e,this.props={},e.props&&$C(e.props,this,this.props),this.key=e.key?e.key.key:DC("plugin")}getState(e){return e[this.key]}}const C1=Object.create(null);function DC(t){return t in C1?t+"$"+ ++C1[t]:(C1[t]=0,t+"$")}class wa{constructor(e="key"){this.key=DC(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}var AP=/[A-Z]/g,_P=/^ms-/,T1={};function RP(t){return"-"+t.toLowerCase()}function MP(t){if(T1.hasOwnProperty(t))return T1[t];var e=t.replace(AP,RP);return T1[t]=_P.test(e)?"-"+e:e}function OP(t){return MP(t)}function IP(t,e){return OP(t)+":"+e}function LP(t){var e="";for(var n in t){var r=t[n];typeof r!="string"&&typeof r!="number"||(e&&(e+=";"),e+=IP(n,r))}return e}function PC(){return typeof document<"u"?document:null}function zC(t,e){if(typeof t!="string")return[t];var n=[t];typeof e=="string"||Array.isArray(e)?e={brackets:e}:e||(e={});var r=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:["{}","[]","()"],o=e.escape||"___",i=!!e.flat;r.forEach(function(a){var u=new RegExp(["\\",a[0],"[^\\",a[0],"\\",a[1],"]*\\",a[1]].join("")),c=[];function d(h,p,f){var g=n.push(h.slice(a[0].length,-a[1].length))-1;return c.push(g),o+g+o}n.forEach(function(h,p){for(var f,g=0;h!=f;)if(f=h,h=h.replace(u,d),g++>1e4)throw Error("References have circular dependency. Please, check them.");n[p]=h}),c=c.reverse(),n=n.map(function(h){return c.forEach(function(p){h=h.replace(new RegExp("(\\"+o+p+"\\"+o+")","g"),a[0]+"$1"+a[1])}),h})});var s=new RegExp("\\"+o+"([0-9]+)\\"+o);function l(a,u,c){for(var d=[],h,p=0;h=s.exec(a);){if(p++>1e4)throw Error("Circular references in parenthesis");d.push(a.slice(0,h.index)),d.push(l(u[h[1]],u)),a=a.slice(h.index+h[0].length)}return d.push(a),d}return i?n:l(n[0],n)}function FC(t,e){if(e&&e.flat){var n=e&&e.escape||"___",r=t[0],o;if(!r)return"";for(var i=new RegExp("\\"+n+"([0-9]+)\\"+n),s=0;r!=o;){if(s++>1e4)throw Error("Circular references in "+t);o=r,r=r.replace(i,l)}return r}return t.reduce(function a(u,c){return Array.isArray(c)&&(c=c.reduce(a,"")),u+c},"");function l(a,u){if(t[u]==null)throw Error("Reference "+u+"is undefined");return t[u]}}function BC(t,e){return Array.isArray(t)?FC(t,e):zC(t,e)}BC.parse=zC,BC.stringify=FC;var us=Object.freeze({__proto__:null,COPY_DESCRIPTION:{id:"extension.command.copy.description",message:"Copy the selected text",comment:"Description for copy command."},COPY_LABEL:{id:"extension.command.copy.label",message:"Copy",comment:"Label for copy command."},CUT_DESCRIPTION:{id:"extension.command.cut.description",message:"Cut the selected text",comment:"Description for cut command."},CUT_LABEL:{id:"extension.command.cut.label",message:"Cut",comment:"Label for cut command."},PASTE_DESCRIPTION:{id:"extension.command.paste.description",message:"Paste content into the editor",comment:"Description for paste command."},PASTE_LABEL:{id:"extension.command.paste.label",message:"Paste",comment:"Label for paste command."},SELECT_ALL_DESCRIPTION:{id:"extension.command.select-all.description",message:"Select all content within the editor",comment:"Description for select all command."},SELECT_ALL_LABEL:{id:"extension.command.select-all.label",message:"Select all",comment:"Label for select all command."}}),on=Object.freeze({__proto__:null,ALT_KEY:{id:"keyboard.shortcut.alt",message:"Alt",comment:"Label for alt key in shortcuts."},ARROW_DOWN_KEY:{id:"keyboard.shortcut.arrowDown",message:"Arrow Down",comment:"Label for arrowDown key in shortcuts."},ARROW_LEFT_KEY:{id:"keyboard.shortcut.arrowLeft",message:"Arrow Left",comment:"Label for arrow left key in shortcuts."},ARROW_RIGHT_KEY:{id:"keyboard.shortcut.arrowRight",message:"Arrow Right",comment:"Label for arrow right key in shortcuts."},ARROW_UP_KEY:{id:"keyboard.shortcut.arrowUp",message:"Arrow Up",comment:"Label for arrow up key in shortcuts."},BACKSPACE_KEY:{id:"keyboard.shortcut.backspace",message:"Backspace",comment:"Label for backspace key in shortcuts."},CAPS_LOCK_KEY:{id:"keyboard.shortcut.capsLock",message:"Caps Lock",comment:"Label for caps lock key in shortcuts."},COMMAND_KEY:{id:"keyboard.shortcut.command",message:"Command",comment:"Label for command key in shortcuts."},CONTROL_KEY:{id:"keyboard.shortcut.control",message:"Control",comment:"Label for control key in shortcuts."},DELETE_KEY:{id:"keyboard.shortcut.delete",message:"Delete",comment:"Label for delete key in shortcuts."},END_KEY:{id:"keyboard.shortcut.end",message:"End",comment:"Label for end key in shortcuts."},ENTER_KEY:{id:"keyboard.shortcut.enter",message:"Enter",comment:"Label for enter key in shortcuts."},ESCAPE_KEY:{id:"keyboard.shortcut.escape",message:"Enter",comment:"Label for escape key in shortcuts."},HOME_KEY:{id:"keyboard.shortcut.home",message:"Home",comment:"Label for home key in shortcuts."},PAGE_DOWN_KEY:{id:"keyboard.shortcut.pageDown",message:"Page Down",comment:"Label for page down key in shortcuts."},PAGE_UP_KEY:{id:"keyboard.shortcut.pageUp",message:"Page Up",comment:"Label for page up key in shortcuts."},SHIFT_KEY:{id:"keyboard.shortcut.shift",message:"Shift",comment:"Label for shift key in shortcuts."},SPACE_KEY:{id:"keyboard.shortcut.space",message:"Space",comment:"Label for space key in shortcuts."},TAB_KEY:{id:"keyboard.shortcut.tab",message:"Tab",comment:"Label for tab key in shortcuts."}}),HC=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.toggle-blockquote.description",message:"Add blockquote formatting to the selected text",comment:"Description for blockquote formatting command."},LABEL:{id:"extension.command.toggle-blockquote.label",message:"Blockquote",comment:"Label for blockquote formatting command."}}),UC=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.toggle-bold.description",message:"Add bold formatting to the selected text",comment:"Description for bold formatting command."},LABEL:{id:"extension.command.toggle-bold.label",message:"Bold",comment:"Label for bold formatting command."}}),NP=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.toggle-code-block.description",message:"Add a code block",comment:"Description for the code block command."},LABEL:{id:"extension.command.toggle-code-block.label",message:"Codeblock",comment:"Label for the code block command."}}),$P=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.toggle-code.description",message:"Add inline code formatting to the selected text",comment:"Description for the inline code formatting command."},LABEL:{id:"extension.command.toggle-code.label",message:"Code",comment:"Label for the inline code formatting."}}),DP=Object.freeze({__proto__:null,LABEL:{id:"extension.command.toggle-heading.label",message:`{level, select, 1 {Heading 1} 2 {Heading 2} 3 {Heading 3} 4 {Heading 4} 5 {Heading 5} 6 {Heading 6} -other {Heading}}`,comment:"Label for heading command with support for levels."}}),Fp=Object.freeze({__proto__:null,REDO_DESCRIPTION:{id:"extension.command.redo.description",message:"Redo the most recent action",comment:"Description for redo."},REDO_LABEL:{id:"extension.command.redo.label",message:"Redo",comment:"Label for redo."},UNDO_DESCRIPTION:{id:"extension.command.undo.description",message:"Undo the most recent action",comment:"Description for undo."},UNDO_LABEL:{id:"extension.command.undo.label",message:"Undo",comment:"Label for undo."}}),LC=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.insert-horizontal-rule.description",message:"Separate content with a diving horizontal line",comment:"Description for inserting a horizontal rule (divider) command."},LABEL:{id:"extension.command.insert-horizontal-rule.label",message:"Divider",comment:"Label for inserting a horizontal rule (divider) command."}}),NC=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.toggle-italic.description",message:"Italicize the selected text",comment:"Description for italic formatting command."},LABEL:{id:"extension.command.toggle-italic.label",message:"Italic",comment:"Label for italic formatting command."}}),S1=Object.freeze({__proto__:null,BULLET_LIST_LABEL:{id:"extension.command.toggle-bullet-list.description",message:"Bulleted list",comment:"Description for inserting a bullet list into the editor."},ORDERED_LIST_LABEL:{id:"extension.command.toggle-ordered-list.label",message:"Ordered list",comment:"Label for inserting an ordered list into the editor."},TASK_LIST_LABEL:{id:"extension.command.toggle-task-list.description",message:"Tasked list",comment:"Description for inserting a task list into the editor."}}),Bp=Object.freeze({__proto__:null,CONVERT_DESCRIPTION:{id:"extension.command.convert-paragraph.description",message:"Convert current block into a paragraph block.",comment:"Description for converting a paragraph."},CONVERT_LABEL:{id:"extension.command.convert-paragraph.label",message:"Convert Paragraph",comment:"Label for converting the current node into a paragraph."},INSERT_DESCRIPTION:{id:"extension.command.insert-paragraph.description",message:"Insert a new paragraph",comment:"Description for inserting a paragraph."},INSERT_LABEL:{id:"extension.command.insert-paragraph.label",message:"Insert Paragraph",comment:"Label for inserting a paragraph."}}),$C=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.toggle-strike.description",message:"Strikethrough the selected text",comment:"Description for strike formatting command."},LABEL:{id:"extension.command.toggle-strike.label",message:"Strikethrough",comment:"Label for strike formatting command."}}),DC=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.toggle-underline.description",message:"Underline the selected text",comment:"Description for underline formatting command."},LABEL:{id:"extension.command.toggle-underline.label",message:"Underline",comment:"Label for underline formatting command."}});class xa{constructor(e,n){this.match=e,this.match=e,this.handler=typeof n=="string"?wP(n):n}}function wP(t){return function(e,n,r,o){let i=t;if(n[1]){let s=n[0].lastIndexOf(n[1]);i+=n[0].slice(s+n[1].length),r+=s;let l=r-o;l>0&&(i=n[0].slice(s-l,s)+i,r=o)}return e.tr.insertText(i,r,o)}}const kP=500;function EP({rules:t}){let e=new Xo({state:{init(){return null},apply(n,r){let o=n.getMeta(this);return o||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,o,i){return PC(n,r,o,i,t,e)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&PC(n,r.pos,r.pos,"",t,e)})}}},isInputRules:!0});return e}function PC(t,e,n,r,o,i){if(t.composing)return!1;let s=t.state,l=s.doc.resolve(e);if(l.parent.type.spec.code)return!1;let a=l.parent.textBetween(Math.max(0,l.parentOffset-kP),l.parentOffset,null,"")+r;for(let u=0;u{let n=t.plugins;for(let r=0;r=0;a--)s.step(l.steps[a].invert(l.docs[a]));if(i.text){let a=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,a))}else s.delete(i.from,i.to);e(s)}return!0}}return!1};function Hp(t,e,n=null,r){return new xa(t,(o,i,s,l)=>{let a=n instanceof Function?n(i):n,u=o.tr.delete(s,l),c=u.doc.resolve(s),d=c.blockRange(),h=d&&g1(d,e,a);if(!h)return null;u.wrap(d,h);let p=u.doc.resolve(s-1).nodeBefore;return p&&p.type==e&&Iu(u.doc,s-1)&&(!r||r(i,p))&&u.join(s-1),u})}function CP(t,e,n=null){return new xa(t,(r,o,i,s)=>{let l=r.doc.resolve(i),a=n instanceof Function?n(o):n;return l.node(-1).canReplaceWith(l.index(-1),l.indexAfter(-1),e)?r.tr.delete(i,s).setBlockType(i,i,e,a):null})}const er=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Pu=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let zC=null;const ki=function(t,e,n){let r=zC||(zC=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},wa=function(t,e,n,r){return n&&(FC(t,e,n,r,-1)||FC(t,e,n,r,1))},TP=/^(img|br|input|textarea|hr)$/i;function FC(t,e,n,r,o){for(;;){if(t==n&&e==r)return!0;if(e==(o<0?0:qo(t))){let i=t.parentNode;if(!i||i.nodeType!=1||C1(t)||TP.test(t.nodeName)||t.contentEditable=="false")return!1;e=er(t)+(o<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(o<0?-1:0)],t.contentEditable=="false")return!1;e=o<0?qo(t):0}else return!1}}function qo(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function AP(t,e,n){for(let r=e==0,o=e==qo(t);r||o;){if(t==n)return!0;let i=er(t);if(t=t.parentNode,!t)return!1;r=r&&i==0,o=o&&i==qo(t)}}function C1(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const Up=function(t){return t.focusNode&&wa(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function ka(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function _P(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function RP(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const Zo=typeof navigator<"u"?navigator:null,BC=typeof document<"u"?document:null,us=Zo&&Zo.userAgent||"",T1=/Edge\/(\d+)/.exec(us),HC=/MSIE \d/.exec(us),A1=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(us),vr=!!(HC||A1||T1),ds=HC?document.documentMode:A1?+A1[1]:T1?+T1[1]:0,Ro=!vr&&/gecko\/(\d+)/i.test(us);Ro&&+(/Firefox\/(\d+)/.exec(us)||[0,0])[1];const _1=!vr&&/Chrome\/(\d+)/.exec(us),Bn=!!_1,MP=_1?+_1[1]:0,tr=!vr&&!!Zo&&/Apple Computer/.test(Zo.vendor),Wl=tr&&(/Mobile\/\w+/.test(us)||!!Zo&&Zo.maxTouchPoints>2),so=Wl||(Zo?/Mac/.test(Zo.platform):!1),OP=Zo?/Win/.test(Zo.platform):!1,Mo=/Android \d/.test(us),zu=!!BC&&"webkitFontSmoothing"in BC.documentElement.style,IP=zu?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function LP(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Ei(t,e){return typeof t=="number"?t:t[e]}function NP(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function UC(t,e,n){let r=t.someProp("scrollThreshold")||0,o=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=n||t.dom;s;s=Pu(s)){if(s.nodeType!=1)continue;let l=s,a=l==i.body,u=a?LP(i):NP(l),c=0,d=0;if(e.topu.bottom-Ei(r,"bottom")&&(d=e.bottom-e.top>u.bottom-u.top?e.top+Ei(o,"top")-u.top:e.bottom-u.bottom+Ei(o,"bottom")),e.leftu.right-Ei(r,"right")&&(c=e.right-u.right+Ei(o,"right")),c||d)if(a)i.defaultView.scrollBy(c,d);else{let h=l.scrollLeft,p=l.scrollTop;d&&(l.scrollTop+=d),c&&(l.scrollLeft+=c);let f=l.scrollLeft-h,g=l.scrollTop-p;e={left:e.left-f,top:e.top-g,right:e.right-f,bottom:e.bottom-g}}if(a||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function $P(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,o;for(let i=(e.left+e.right)/2,s=n+1;s=n-20){r=l,o=a.top;break}}return{refDOM:r,refTop:o,stack:WC(t.dom)}}function WC(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=Pu(r));return e}function DP({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;VC(n,r==0?0:r-e)}function VC(t,e){for(let n=0;n=l){s=Math.max(f.bottom,s),l=Math.min(f.top,l);let g=f.left>e.left?f.left-e.left:f.right=(f.left+f.right)/2?1:0));continue}}else f.top>e.top&&!a&&f.left<=e.left&&f.right>=e.left&&(a=c,u={left:Math.max(f.left,Math.min(f.right,e.left)),top:f.top});!n&&(e.left>=f.right&&e.top>=f.top||e.left>=f.left&&e.top>=f.bottom)&&(i=d+1)}}return!n&&a&&(n=a,o=u,r=0),n&&n.nodeType==3?zP(n,o):!n||r&&n.nodeType==1?{node:t,offset:i}:jC(n,o)}function zP(t,e){let n=t.nodeValue.length,r=document.createRange();for(let o=0;o=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function R1(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function FP(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(r,o,i)}function HP(t,e,n,r){let o=-1;for(let i=e,s=!1;i!=t.dom;){let l=t.docView.nearestDesc(i,!0);if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent&&!s||!l.contentDOM)){let a=l.dom.getBoundingClientRect();if(l.node.isBlock&&l.parent&&!s&&(s=!0,a.left>r.left||a.top>r.top?o=l.posBefore:(a.right-1?o:t.docView.posFromDOM(e,n,-1)}function GC(t,e,n){let r=t.childNodes.length;if(r&&n.tope.top&&o++}let u;zu&&o&&r.nodeType==1&&(u=r.childNodes[o-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&o--,r==t.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?l=t.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(l=HP(t,r,o,e))}l==null&&(l=BP(t,s,e));let a=t.docView.nearestDesc(s,!0);return{pos:l,inside:a?a.posAtStart-a.border:-1}}function KC(t){return t.top=0&&o==r.nodeValue.length?(a--,c=1):n<0?a--:u++,Fu(hs(ki(r,a,u),c),c<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&o&&(n<0||o==qo(r))){let a=r.childNodes[o-1];if(a.nodeType==1)return M1(a.getBoundingClientRect(),!1)}if(i==null&&o=0)}if(i==null&&o&&(n<0||o==qo(r))){let a=r.childNodes[o-1],u=a.nodeType==3?ki(a,qo(a)-(s?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(u)return Fu(hs(u,1),!1)}if(i==null&&o=0)}function Fu(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function M1(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function XC(t,e,n){let r=t.state,o=t.root.activeElement;r!=e&&t.updateState(e),o!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),o!=t.dom&&o&&o.focus()}}function VP(t,e,n){let r=e.selection,o=n=="up"?r.$from:r.$to;return XC(t,e,()=>{let{node:i}=t.docView.domFromPos(o.pos,n=="up"?-1:1);for(;;){let l=t.docView.nearestDesc(i,!0);if(!l)break;if(l.node.isBlock){i=l.contentDOM||l.dom;break}i=l.dom.parentNode}let s=YC(t,o.pos,1);for(let l=i.firstChild;l;l=l.nextSibling){let a;if(l.nodeType==1)a=l.getClientRects();else if(l.nodeType==3)a=ki(l,0,l.nodeValue.length).getClientRects();else continue;for(let u=0;uc.top+1&&(n=="up"?s.top-c.top>(c.bottom-s.top)*2:c.bottom-s.bottom>(s.bottom-c.top)*2))return!1}}return!0})}const jP=/[\u0590-\u08ac]/;function GP(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,s=o==r.parent.content.size,l=t.domSelection();return!jP.test(r.parent.textContent)||!l.modify?n=="left"||n=="backward"?i:s:XC(t,e,()=>{let{focusNode:a,focusOffset:u,anchorNode:c,anchorOffset:d}=t.domSelectionRange(),h=l.caretBidiLevel;l.modify("move",n,"character");let p=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:f,focusOffset:g}=t.domSelectionRange(),m=f&&!p.contains(f.nodeType==1?f:f.parentNode)||a==f&&u==g;try{l.collapse(c,d),a&&(a!=c||u!=d)&&l.extend&&l.extend(a,u)}catch{}return h!=null&&(l.caretBidiLevel=h),m})}let qC=null,ZC=null,JC=!1;function KP(t,e,n){return qC==e&&ZC==n?JC:(qC=e,ZC=n,JC=n=="up"||n=="down"?VP(t,e,n):GP(t,e,n))}const ao=0,QC=1,Ea=2,Jo=3;class Bu{constructor(e,n,r,o){this.parent=e,this.children=n,this.dom=r,this.contentDOM=o,this.dirty=ao,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;ner(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&n==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,o=e;o;o=o.parentNode){let i=this.getDesc(o),s;if(i&&(!n||i.node))if(r&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return i}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let o=e;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;ne||s instanceof nT){o=e-i;break}i=l}if(o)return this.children[r].domFromPos(o-this.children[r].border,n);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof eT&&i.side>=0;r--);if(n<=0){let i,s=!0;for(;i=r?this.children[r-1]:null,!(!i||i.dom.parentNode==this.contentDOM);r--,s=!1);return i&&n&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?er(i.dom)+1:0}}else{let i,s=!0;for(;i=r=c&&n<=u-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,n,c);e=s;for(let d=l;d>0;d--){let h=this.children[d-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){o=er(h.dom)+1;break}e-=h.size}o==-1&&(o=0)}if(o>-1&&(u>n||l==this.children.length-1)){n=u;for(let c=l+1;cp&&sn){let p=l;l=a,a=p}let h=document.createRange();h.setEnd(a.node,a.offset),h.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,o=0;o=r:er){let l=r+i.border,a=s-i.border;if(e>=l&&n<=a){this.dirty=e==r||n==s?Ea:QC,e==l&&n==a&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Jo:i.markDirty(e-l,n-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Ea:Jo}r=s}this.dirty=Ea}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?Ea:QC;n.dirty{if(!i)return o;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(s.nodeType!=1){let l=document.createElement("span");l.appendChild(s),s=l}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,i=this}matchesWidget(e){return this.dirty==ao&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class YP extends Bu{constructor(e,n,r,o){super(e,[],n,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Sa extends Bu{constructor(e,n,r,o){super(e,[],r,o),this.mark=n}static create(e,n,r,o){let i=o.nodeViews[n.type.name],s=i&&i(n,o,r);return(!s||!s.dom)&&(s=Dr.renderSpec(document,n.type.spec.toDOM(n,r))),new Sa(e,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&Jo||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Jo&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=ao){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(i=L1(i,0,e,r));for(let l=0;l{if(!a)return s;if(a.parent)return a.parent.posBeforeChild(a)},r,o),c=u&&u.dom,d=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:d}=Dr.renderSpec(document,n.type.spec.toDOM(n)));!d&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let h=c;return c=iT(c,r,n),u?a=new XP(e,n,r,o,c,d||null,h,u,i,s+1):n.isText?new Wp(e,n,r,o,c,h,i):new ps(e,n,r,o,c,d||null,h,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>J.empty)}return e}matchesNode(e,n,r){return this.dirty==ao&&e.eq(this.node)&&I1(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,o=n,i=e.composing?this.localCompositionInfo(e,n):null,s=i&&i.pos>-1?i:null,l=i&&i.pos<0,a=new ZP(this,s&&s.node,e);e5(this.node,this.innerDeco,(u,c,d)=>{u.spec.marks?a.syncToMarks(u.spec.marks,r,e):u.type.side>=0&&!d&&a.syncToMarks(c==this.node.childCount?Ge.none:this.node.child(c).marks,r,e),a.placeWidget(u,e,o)},(u,c,d,h)=>{a.syncToMarks(u.marks,r,e);let p;a.findNodeMatch(u,c,d,h)||l&&e.state.selection.from>o&&e.state.selection.to-1&&a.updateNodeAt(u,c,d,p,e)||a.updateNextNode(u,c,d,e,h,o)||a.addNode(u,c,d,e,o),o+=u.nodeSize}),a.syncToMarks([],r,e),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||this.dirty==Ea)&&(s&&this.protectLocalComposition(e,s),rT(this.contentDOM,this.children,e),Wl&&t5(this.dom))}localCompositionInfo(e,n){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof Me)||rn+this.node.content.size)return null;let i=e.domSelectionRange(),s=n5(i.focusNode,i.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let l=s.nodeValue,a=r5(this.node.content,l,r-n,o-n);return a<0?null:{node:s,pos:a,text:l}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:o}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new YP(this,i,n,o);e.input.compositionNodes.push(s),this.children=L1(this.children,r,r+o.length,e,s)}update(e,n,r,o){return this.dirty==Jo||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,o),!0)}updateInner(e,n,r,o){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=ao}updateOuterDeco(e){if(I1(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=oT(this.dom,this.nodeDOM,O1(this.outerDeco,this.node,n),O1(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function tT(t,e,n,r,o){iT(r,e,t);let i=new ps(void 0,t,e,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class Wp extends ps{constructor(e,n,r,o,i,s,l){super(e,n,r,o,i,null,s,l,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,o){return this.dirty==Jo||this.dirty!=ao&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=ao||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=e,this.dirty=ao,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let o=this.node.cut(e,n),i=document.createTextNode(o.text);return new Wp(this.parent,o,this.outerDeco,this.innerDeco,i,i,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Jo)}get domAtom(){return!1}}class nT extends Bu{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==ao&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class XP extends ps{constructor(e,n,r,o,i,s,l,a,u,c){super(e,n,r,o,i,s,l,u,c),this.spec=a}update(e,n,r,o){if(this.dirty==Jo)return!1;if(this.spec.update){let i=this.spec.update(e,n,r);return i&&this.updateInner(e,n,r,o),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,o){this.spec.setSelection?this.spec.setSelection(e,n,r):super.setSelection(e,n,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function rT(t,e,n){let r=t.firstChild,o=!1;for(let i=0;i>1,s=Math.min(i,e.length);for(;o-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let a=Sa.create(this.top,e[i],n,r);this.top.children.splice(this.index,0,a),this.top=a,this.changed=!0}this.index=0,i++}}findNodeMatch(e,n,r,o){let i=-1,s;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))i=this.top.children.indexOf(s,this.index);else for(let l=this.index,a=Math.min(this.top.children.length,l+5);l0;){let l;for(;;)if(r){let u=n.children[r-1];if(u instanceof Sa)n=u,r=u.children.length;else{l=u,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let a=l.node;if(a){if(a!=t.child(o-1))break;--o,i.set(l,o),s.push(l)}}return{index:o,matched:i,matches:s.reverse()}}function QP(t,e){return t.type.side-e.type.side}function e5(t,e,n,r){let o=e.locals(t),i=0;if(o.length==0){for(let u=0;ui;)l.push(o[s++]);let f=i+h.nodeSize;if(h.isText){let m=f;s!m.inline):l.slice();r(h,g,e.forChild(i,h),p),i=f}}function t5(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function n5(t,e){for(;;){if(t.nodeType==3)return t;if(t.nodeType==1&&e>0){if(t.childNodes.length>e&&t.childNodes[e].nodeType==3)return t.childNodes[e];t=t.childNodes[e-1],e=qo(t)}else if(t.nodeType==1&&e=n){if(i>=r&&a.slice(r-e.length-l,r-l)==e)return r-e.length;let u=l=0&&u+e.length+l>=n)return l+u;if(n==r&&a.length>=r+e.length-l&&a.slice(r-l,r-l+e.length)==e)return r}}return-1}function L1(t,e,n,r,o){let i=[];for(let s=0,l=0;s=n||c<=e?i.push(a):(un&&i.push(a.slice(n-u,a.size,r)))}return i}function N1(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let o=t.docView.nearestDesc(n.focusNode),i=o&&o.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let l=r.resolve(s),a,u;if(Up(n)){for(a=l;o&&!o.node;)o=o.parent;let c=o.node;if(o&&c.isAtom&&Oe.isSelectable(c)&&o.parent&&!(c.isInline&&AP(n.focusNode,n.focusOffset,o.dom))){let d=o.posBefore;u=new Oe(s==d?l:r.resolve(d))}}else{let c=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null;a=r.resolve(c)}if(!u){let c=e=="pointer"||t.state.selection.head{(n.anchorNode!=r||n.anchorOffset!=o)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!aT(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function i5(t){let e=t.domSelection(),n=document.createRange(),r=t.cursorWrapper.dom,o=r.nodeName=="IMG";o?n.setEnd(r.parentNode,er(r)+1):n.setEnd(r,0),n.collapse(!1),e.removeAllRanges(),e.addRange(n),!o&&!t.state.selection.visible&&vr&&ds<=11&&(r.disabled=!0,r.disabled=!1)}function dT(t,e){if(e instanceof Oe){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(hT(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else hT(t)}function hT(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function D1(t,e,n,r){return t.someProp("createSelectionBetween",o=>o(t,e,n))||Me.between(e,n,r)}function pT(t){return t.editable&&!t.hasFocus()?!1:fT(t)}function fT(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function s5(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return wa(e.node,e.offset,n.anchorNode,n.anchorOffset)}function P1(t,e){let{$anchor:n,$head:r}=t.selection,o=e>0?n.max(r):n.min(r),i=o.parent.inlineContent?o.depth?t.doc.resolve(e>0?o.after():o.before()):null:o;return i&&He.findFrom(i,e)}function fs(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function gT(t,e,n){let r=t.state.selection;if(r instanceof Me)if(n.indexOf("s")>-1){let{$head:o}=r,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(o.pos+i.nodeSize*(e<0?-1:1));return fs(t,new Me(r.$anchor,s))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let o=P1(t.state,e);return o&&o instanceof Oe?fs(t,o):!1}else if(!(so&&n.indexOf("m")>-1)){let o=r.$head,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,s;if(!i||i.isText)return!1;let l=e<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(s=t.docView.descAt(l))&&!s.contentDOM?Oe.isSelectable(i)?fs(t,new Oe(e<0?t.state.doc.resolve(o.pos-i.nodeSize):o)):zu?fs(t,new Me(t.state.doc.resolve(e<0?l:l+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Oe&&r.node.isInline)return fs(t,new Me(e>0?r.$to:r.$from));{let o=P1(t.state,e);return o?fs(t,o):!1}}}function Vp(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Uu(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function jl(t,e){return e<0?a5(t):l5(t)}function a5(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,i,s=!1;for(Ro&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let l=n.childNodes[r-1];if(Uu(l,-1))o=n,i=--r;else if(l.nodeType==3)n=l,r=n.nodeValue.length;else break}}else{if(mT(n))break;{let l=n.previousSibling;for(;l&&Uu(l,-1);)o=n.parentNode,i=er(l),l=l.previousSibling;if(l)n=l,r=Vp(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?z1(t,n,r):o&&z1(t,o,i)}function l5(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o=Vp(n),i,s;for(;;)if(r{t.state==o&&Si(t)},50)}function vT(t,e){let n=t.state.doc.resolve(e);if(!(Bn||OP)&&n.parent.inlineContent){let o=t.coordsAtPos(e);if(e>n.start()){let i=t.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>o.top&&s1)return i.lefto.top&&s1)return i.left>o.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function yT(t,e,n){let r=t.state.selection;if(r instanceof Me&&!r.empty||n.indexOf("s")>-1||so&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=P1(t.state,e);if(s&&s instanceof Oe)return fs(t,s)}if(!o.parent.inlineContent){let s=e<0?o:i,l=r instanceof Qn?He.near(s,e):He.findFrom(s,e);return l?fs(t,l):!1}return!1}function bT(t,e){if(!(t.state.selection instanceof Me))return!0;let{$head:n,$anchor:r,empty:o}=t.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return e<0?s.delete(n.pos-i.nodeSize,n.pos):s.delete(n.pos,n.pos+i.nodeSize),t.dispatch(s),!0}return!1}function xT(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function d5(t){if(!tr||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;xT(t,r,"true"),setTimeout(()=>xT(t,r,"false"),20)}return!1}function h5(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function p5(t,e){let n=e.keyCode,r=h5(e);if(n==8||so&&n==72&&r=="c")return bT(t,-1)||jl(t,-1);if(n==46&&!e.shiftKey||so&&n==68&&r=="c")return bT(t,1)||jl(t,1);if(n==13||n==27)return!0;if(n==37||so&&n==66&&r=="c"){let o=n==37?vT(t,t.state.selection.from)=="ltr"?-1:1:-1;return gT(t,o,r)||jl(t,o)}else if(n==39||so&&n==70&&r=="c"){let o=n==39?vT(t,t.state.selection.from)=="ltr"?1:-1:1;return gT(t,o,r)||jl(t,o)}else{if(n==38||so&&n==80&&r=="c")return yT(t,-1,r)||jl(t,-1);if(n==40||so&&n==78&&r=="c")return d5(t)||yT(t,1,r)||jl(t,1);if(r==(so?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function wT(t,e){t.someProp("transformCopied",p=>{e=p(e,t)});let n=[],{content:r,openStart:o,openEnd:i}=e;for(;o>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,i--;let p=r.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),r=p.content}let s=t.someProp("clipboardSerializer")||Dr.fromSchema(t.state.schema),l=RT(),a=l.createElement("div");a.appendChild(s.serializeFragment(r,{document:l}));let u=a.firstChild,c,d=0;for(;u&&u.nodeType==1&&(c=AT[u.nodeName.toLowerCase()]);){for(let p=c.length-1;p>=0;p--){let f=l.createElement(c[p]);for(;a.firstChild;)f.appendChild(a.firstChild);a.appendChild(f),d++}u=a.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${o} ${i}${d?` -${d}`:""} ${JSON.stringify(n)}`);let h=t.someProp("clipboardTextSerializer",p=>p(e,t))||e.content.textBetween(0,e.content.size,` +other {Heading}}`,comment:"Label for heading command with support for levels."}}),Bp=Object.freeze({__proto__:null,REDO_DESCRIPTION:{id:"extension.command.redo.description",message:"Redo the most recent action",comment:"Description for redo."},REDO_LABEL:{id:"extension.command.redo.label",message:"Redo",comment:"Label for redo."},UNDO_DESCRIPTION:{id:"extension.command.undo.description",message:"Undo the most recent action",comment:"Description for undo."},UNDO_LABEL:{id:"extension.command.undo.label",message:"Undo",comment:"Label for undo."}}),WC=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.insert-horizontal-rule.description",message:"Separate content with a diving horizontal line",comment:"Description for inserting a horizontal rule (divider) command."},LABEL:{id:"extension.command.insert-horizontal-rule.label",message:"Divider",comment:"Label for inserting a horizontal rule (divider) command."}}),VC=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.toggle-italic.description",message:"Italicize the selected text",comment:"Description for italic formatting command."},LABEL:{id:"extension.command.toggle-italic.label",message:"Italic",comment:"Label for italic formatting command."}}),A1=Object.freeze({__proto__:null,BULLET_LIST_LABEL:{id:"extension.command.toggle-bullet-list.description",message:"Bulleted list",comment:"Description for inserting a bullet list into the editor."},ORDERED_LIST_LABEL:{id:"extension.command.toggle-ordered-list.label",message:"Ordered list",comment:"Label for inserting an ordered list into the editor."},TASK_LIST_LABEL:{id:"extension.command.toggle-task-list.description",message:"Tasked list",comment:"Description for inserting a task list into the editor."}}),Hp=Object.freeze({__proto__:null,CONVERT_DESCRIPTION:{id:"extension.command.convert-paragraph.description",message:"Convert current block into a paragraph block.",comment:"Description for converting a paragraph."},CONVERT_LABEL:{id:"extension.command.convert-paragraph.label",message:"Convert Paragraph",comment:"Label for converting the current node into a paragraph."},INSERT_DESCRIPTION:{id:"extension.command.insert-paragraph.description",message:"Insert a new paragraph",comment:"Description for inserting a paragraph."},INSERT_LABEL:{id:"extension.command.insert-paragraph.label",message:"Insert Paragraph",comment:"Label for inserting a paragraph."}}),jC=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.toggle-strike.description",message:"Strikethrough the selected text",comment:"Description for strike formatting command."},LABEL:{id:"extension.command.toggle-strike.label",message:"Strikethrough",comment:"Label for strike formatting command."}}),GC=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.toggle-underline.description",message:"Underline the selected text",comment:"Description for underline formatting command."},LABEL:{id:"extension.command.toggle-underline.label",message:"Underline",comment:"Label for underline formatting command."}});class zr{constructor(e,n,r={}){this.match=e,this.match=e,this.handler=typeof n=="string"?PP(n):n,this.undoable=r.undoable!==!1,this.inCode=r.inCode||!1,this.inCodeMark=r.inCodeMark!==!1}}function PP(t){return function(e,n,r,o){let i=t;if(n[1]){let s=n[0].lastIndexOf(n[1]);i+=n[0].slice(s+n[1].length),r+=s;let l=r-o;l>0&&(i=n[0].slice(s-l,s)+i,r=o)}return e.tr.insertText(i,r,o)}}const zP=500;function FP({rules:t}){let e=new qo({state:{init(){return null},apply(n,r){let o=n.getMeta(this);return o||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,o,i){return KC(n,r,o,i,t,e)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&KC(n,r.pos,r.pos,"",t,e)})}}},isInputRules:!0});return e}function KC(t,e,n,r,o,i){if(t.composing)return!1;let s=t.state,l=s.doc.resolve(e),a=l.parent.textBetween(Math.max(0,l.parentOffset-zP),l.parentOffset,null,"")+r;for(let u=0;up.type.spec.code))continue;if(l.parent.type.spec.code){if(!c.inCode)continue}else if(c.inCode==="only")continue;let d=c.match.exec(a),h=d&&d[0].length>=r.length&&c.handler(s,d,e-(d[0].length-r.length),n);if(h)return c.undoable&&h.setMeta(i,{transform:h,from:e,to:n,text:r}),t.dispatch(h),!0}return!1}const BP=(t,e)=>{let n=t.plugins;for(let r=0;r=0;a--)s.step(l.steps[a].invert(l.docs[a]));if(i.text){let a=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,a))}else s.delete(i.from,i.to);e(s)}return!0}}return!1};new zr(/--$/,"—",{inCodeMark:!1}),new zr(/\.\.\.$/,"…",{inCodeMark:!1}),new zr(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“",{inCodeMark:!1}),new zr(/"$/,"”",{inCodeMark:!1}),new zr(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘",{inCodeMark:!1}),new zr(/'$/,"’",{inCodeMark:!1});function Up(t,e,n=null,r){return new zr(t,(o,i,s,l)=>{let a=n instanceof Function?n(i):n,u=o.tr.delete(s,l),c=u.doc.resolve(s),d=c.blockRange(),h=d&&v1(d,e,a);if(!h)return null;u.wrap(d,h);let p=u.doc.resolve(s-1).nodeBefore;return p&&p.type==e&&Lu(u.doc,s-1)&&(!r||r(i,p))&&u.join(s-1),u})}function HP(t,e,n=null){return new zr(t,(r,o,i,s)=>{let l=r.doc.resolve(i),a=n instanceof Function?n(o):n;return l.node(-1).canReplaceWith(l.index(-1),l.indexAfter(-1),e)?r.tr.delete(i,s).setBlockType(i,i,e,a):null})}const _n=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Ul=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let _1=null;const wi=function(t,e,n){let r=_1||(_1=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},UP=function(){_1=null},ka=function(t,e,n,r){return n&&(YC(t,e,n,r,-1)||YC(t,e,n,r,1))},WP=/^(img|br|input|textarea|hr)$/i;function YC(t,e,n,r,o){for(var i;;){if(t==n&&e==r)return!0;if(e==(o<0?0:so(t))){let s=t.parentNode;if(!s||s.nodeType!=1||zu(t)||WP.test(t.nodeName)||t.contentEditable=="false")return!1;e=_n(t)+(o<0?0:1),t=s}else if(t.nodeType==1){let s=t.childNodes[e+(o<0?-1:0)];if(s.nodeType==1&&s.contentEditable=="false")if(!((i=s.pmViewDesc)===null||i===void 0)&&i.ignoreForSelection)e+=o;else return!1;else t=s,e=o<0?so(t):0}else return!1}}function so(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function VP(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=so(t)}else if(t.parentNode&&!zu(t))e=_n(t),t=t.parentNode;else return null}}function jP(t,e){for(;;){if(t.nodeType==3&&e2),ao=Wl||(Zo?/Mac/.test(Zo.platform):!1),XP=Zo?/Win/.test(Zo.platform):!1,ki=/Android \d/.test(ds),Fu=!!XC&&"webkitFontSmoothing"in XC.documentElement.style,qP=Fu?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function ZP(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Ei(t,e){return typeof t=="number"?t:t[e]}function JP(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function JC(t,e,n){let r=t.someProp("scrollThreshold")||0,o=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=n||t.dom;s;){if(s.nodeType!=1){s=Ul(s);continue}let l=s,a=l==i.body,u=a?ZP(i):JP(l),c=0,d=0;if(e.topu.bottom-Ei(r,"bottom")&&(d=e.bottom-e.top>u.bottom-u.top?e.top+Ei(o,"top")-u.top:e.bottom-u.bottom+Ei(o,"bottom")),e.leftu.right-Ei(r,"right")&&(c=e.right-u.right+Ei(o,"right")),c||d)if(a)i.defaultView.scrollBy(c,d);else{let p=l.scrollLeft,f=l.scrollTop;d&&(l.scrollTop+=d),c&&(l.scrollLeft+=c);let g=l.scrollLeft-p,m=l.scrollTop-f;e={left:e.left-g,top:e.top-m,right:e.right-g,bottom:e.bottom-m}}let h=a?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(h))break;s=h=="absolute"?s.offsetParent:Ul(s)}}function QP(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,o;for(let i=(e.left+e.right)/2,s=n+1;s=n-20){r=l,o=a.top;break}}return{refDOM:r,refTop:o,stack:QC(t.dom)}}function QC(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=Ul(r));return e}function e5({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;eT(n,r==0?0:r-e)}function eT(t,e){for(let n=0;n=l){s=Math.max(f.bottom,s),l=Math.min(f.top,l);let g=f.left>e.left?f.left-e.left:f.right=(f.left+f.right)/2?1:0));continue}}else f.top>e.top&&!a&&f.left<=e.left&&f.right>=e.left&&(a=c,u={left:Math.max(f.left,Math.min(f.right,e.left)),top:f.top});!n&&(e.left>=f.right&&e.top>=f.top||e.left>=f.left&&e.top>=f.bottom)&&(i=d+1)}}return!n&&a&&(n=a,o=u,r=0),n&&n.nodeType==3?n5(n,o):!n||r&&n.nodeType==1?{node:t,offset:i}:tT(n,o)}function n5(t,e){let n=t.nodeValue.length,r=document.createRange();for(let o=0;o=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function I1(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function r5(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(r,o,i)}function i5(t,e,n,r){let o=-1;for(let i=e,s=!1;i!=t.dom;){let l=t.docView.nearestDesc(i,!0),a;if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent||!l.contentDOM)&&((a=l.dom.getBoundingClientRect()).width||a.height)&&(l.node.isBlock&&l.parent&&(!s&&a.left>r.left||a.top>r.top?o=l.posBefore:(!s&&a.right-1?o:t.docView.posFromDOM(e,n,-1)}function nT(t,e,n){let r=t.childNodes.length;if(r&&n.tope.top&&o++}let u;Fu&&o&&r.nodeType==1&&(u=r.childNodes[o-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&o--,r==t.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?l=t.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(l=i5(t,r,o,e))}l==null&&(l=o5(t,s,e));let a=t.docView.nearestDesc(s,!0);return{pos:l,inside:a?a.posAtStart-a.border:-1}}function rT(t){return t.top=0&&o==r.nodeValue.length?(a--,c=1):n<0?a--:u++,Bu(ps(wi(r,a,u),c),c<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&o&&(n<0||o==so(r))){let a=r.childNodes[o-1];if(a.nodeType==1)return L1(a.getBoundingClientRect(),!1)}if(i==null&&o=0)}if(i==null&&o&&(n<0||o==so(r))){let a=r.childNodes[o-1],u=a.nodeType==3?wi(a,so(a)-(s?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(u)return Bu(ps(u,1),!1)}if(i==null&&o=0)}function Bu(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function L1(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function iT(t,e,n){let r=t.state,o=t.root.activeElement;r!=e&&t.updateState(e),o!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),o!=t.dom&&o&&o.focus()}}function l5(t,e,n){let r=e.selection,o=n=="up"?r.$from:r.$to;return iT(t,e,()=>{let{node:i}=t.docView.domFromPos(o.pos,n=="up"?-1:1);for(;;){let l=t.docView.nearestDesc(i,!0);if(!l)break;if(l.node.isBlock){i=l.contentDOM||l.dom;break}i=l.dom.parentNode}let s=oT(t,o.pos,1);for(let l=i.firstChild;l;l=l.nextSibling){let a;if(l.nodeType==1)a=l.getClientRects();else if(l.nodeType==3)a=wi(l,0,l.nodeValue.length).getClientRects();else continue;for(let u=0;uc.top+1&&(n=="up"?s.top-c.top>(c.bottom-s.top)*2:c.bottom-s.bottom>(s.bottom-c.top)*2))return!1}}return!0})}const c5=/[\u0590-\u08ac]/;function u5(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,s=o==r.parent.content.size,l=t.domSelection();return l?!c5.test(r.parent.textContent)||!l.modify?n=="left"||n=="backward"?i:s:iT(t,e,()=>{let{focusNode:a,focusOffset:u,anchorNode:c,anchorOffset:d}=t.domSelectionRange(),h=l.caretBidiLevel;l.modify("move",n,"character");let p=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:f,focusOffset:g}=t.domSelectionRange(),m=f&&!p.contains(f.nodeType==1?f:f.parentNode)||a==f&&u==g;try{l.collapse(c,d),a&&(a!=c||u!=d)&&l.extend&&l.extend(a,u)}catch{}return h!=null&&(l.caretBidiLevel=h),m}):r.pos==r.start()||r.pos==r.end()}let sT=null,aT=null,lT=!1;function d5(t,e,n){return sT==e&&aT==n?lT:(sT=e,aT=n,lT=n=="up"||n=="down"?l5(t,e,n):u5(t,e,n))}const lo=0,cT=1,Sa=2,Jo=3;class Hu{constructor(e,n,r,o){this.parent=e,this.children=n,this.dom=r,this.contentDOM=o,this.dirty=lo,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n_n(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&n==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,o=e;o;o=o.parentNode){let i=this.getDesc(o),s;if(i&&(!n||i.node))if(r&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return i}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let o=e;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;ne||s instanceof hT){o=e-i;break}i=l}if(o)return this.children[r].domFromPos(o-this.children[r].border,n);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof uT&&i.side>=0;r--);if(n<=0){let i,s=!0;for(;i=r?this.children[r-1]:null,!(!i||i.dom.parentNode==this.contentDOM);r--,s=!1);return i&&n&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?_n(i.dom)+1:0}}else{let i,s=!0;for(;i=r=c&&n<=u-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,n,c);e=s;for(let d=l;d>0;d--){let h=this.children[d-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){o=_n(h.dom)+1;break}e-=h.size}o==-1&&(o=0)}if(o>-1&&(u>n||l==this.children.length-1)){n=u;for(let c=l+1;cf&&sn){let f=l;l=a,a=f}let p=document.createRange();p.setEnd(a.node,a.offset),p.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(p)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,o=0;o=r:er){let l=r+i.border,a=s-i.border;if(e>=l&&n<=a){this.dirty=e==r||n==s?Sa:cT,e==l&&n==a&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Jo:i.markDirty(e-l,n-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Sa:Jo}r=s}this.dirty=Sa}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?Sa:cT;n.dirty{if(!i)return o;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(s.nodeType!=1){let l=document.createElement("span");l.appendChild(s),s=l}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,i=this}matchesWidget(e){return this.dirty==lo&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class h5 extends Hu{constructor(e,n,r,o){super(e,[],n,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Ca extends Hu{constructor(e,n,r,o,i){super(e,[],r,o),this.mark=n,this.spec=i}static create(e,n,r,o){let i=o.nodeViews[n.type.name],s=i&&i(n,o,r);return(!s||!s.dom)&&(s=Xo.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new Ca(e,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&Jo||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Jo&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=lo){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(i=$1(i,0,e,r));for(let l=0;l{if(!a)return s;if(a.parent)return a.parent.posBeforeChild(a)},r,o),c=u&&u.dom,d=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:d}=Xo.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let h=c;return c=gT(c,r,n),u?a=new p5(e,n,r,o,c,d||null,h,u,i,s+1):n.isText?new Vp(e,n,r,o,c,h,i):new fs(e,n,r,o,c,d||null,h,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>J.empty)}return e}matchesNode(e,n,r){return this.dirty==lo&&e.eq(this.node)&&jp(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,o=n,i=e.composing?this.localCompositionInfo(e,n):null,s=i&&i.pos>-1?i:null,l=i&&i.pos<0,a=new g5(this,s&&s.node,e);y5(this.node,this.innerDeco,(u,c,d)=>{u.spec.marks?a.syncToMarks(u.spec.marks,r,e):u.type.side>=0&&!d&&a.syncToMarks(c==this.node.childCount?Ge.none:this.node.child(c).marks,r,e),a.placeWidget(u,e,o)},(u,c,d,h)=>{a.syncToMarks(u.marks,r,e);let p;a.findNodeMatch(u,c,d,h)||l&&e.state.selection.from>o&&e.state.selection.to-1&&a.updateNodeAt(u,c,d,p,e)||a.updateNextNode(u,c,d,e,h,o)||a.addNode(u,c,d,e,o),o+=u.nodeSize}),a.syncToMarks([],r,e),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||this.dirty==Sa)&&(s&&this.protectLocalComposition(e,s),pT(this.contentDOM,this.children,e),Wl&&b5(this.dom))}localCompositionInfo(e,n){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof Oe)||rn+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let s=i.nodeValue,l=x5(this.node.content,s,r-n,o-n);return l<0?null:{node:i,pos:l,text:s}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:o}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new h5(this,i,n,o);e.input.compositionNodes.push(s),this.children=$1(this.children,r,r+o.length,e,s)}update(e,n,r,o){return this.dirty==Jo||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,o),!0)}updateInner(e,n,r,o){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=lo}updateOuterDeco(e){if(jp(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=fT(this.dom,this.nodeDOM,N1(this.outerDeco,this.node,n),N1(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function dT(t,e,n,r,o){gT(r,e,t);let i=new fs(void 0,t,e,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class Vp extends fs{constructor(e,n,r,o,i,s,l){super(e,n,r,o,i,null,s,l,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,o){return this.dirty==Jo||this.dirty!=lo&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=lo||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=e,this.dirty=lo,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let o=this.node.cut(e,n),i=document.createTextNode(o.text);return new Vp(this.parent,o,this.outerDeco,this.innerDeco,i,i,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Jo)}get domAtom(){return!1}isText(e){return this.node.text==e}}class hT extends Hu{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==lo&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class p5 extends fs{constructor(e,n,r,o,i,s,l,a,u,c){super(e,n,r,o,i,s,l,u,c),this.spec=a}update(e,n,r,o){if(this.dirty==Jo)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,n,r);return i&&this.updateInner(e,n,r,o),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,o){this.spec.setSelection?this.spec.setSelection(e,n,r.root):super.setSelection(e,n,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function pT(t,e,n){let r=t.firstChild,o=!1;for(let i=0;i>1,s=Math.min(i,e.length);for(;o-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let a=Ca.create(this.top,e[i],n,r);this.top.children.splice(this.index,0,a),this.top=a,this.changed=!0}this.index=0,i++}}findNodeMatch(e,n,r,o){let i=-1,s;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))i=this.top.children.indexOf(s,this.index);else for(let l=this.index,a=Math.min(this.top.children.length,l+5);l0;){let l;for(;;)if(r){let u=n.children[r-1];if(u instanceof Ca)n=u,r=u.children.length;else{l=u,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let a=l.node;if(a){if(a!=t.child(o-1))break;--o,i.set(l,o),s.push(l)}}return{index:o,matched:i,matches:s.reverse()}}function v5(t,e){return t.type.side-e.type.side}function y5(t,e,n,r){let o=e.locals(t),i=0;if(o.length==0){for(let u=0;ui;)l.push(o[s++]);let f=i+h.nodeSize;if(h.isText){let m=f;s!m.inline):l.slice();r(h,g,e.forChild(i,h),p),i=f}}function b5(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function x5(t,e,n,r){for(let o=0,i=0;o=n){if(i>=r&&a.slice(r-e.length-l,r-l)==e)return r-e.length;let u=l=0&&u+e.length+l>=n)return l+u;if(n==r&&a.length>=r+e.length-l&&a.slice(r-l,r-l+e.length)==e)return r}}return-1}function $1(t,e,n,r,o){let i=[];for(let s=0,l=0;s=n||c<=e?i.push(a):(un&&i.push(a.slice(n-u,a.size,r)))}return i}function D1(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let o=t.docView.nearestDesc(n.focusNode),i=o&&o.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let l=r.resolve(s),a,u;if(Wp(n)){for(a=s;o&&!o.node;)o=o.parent;let d=o.node;if(o&&d.isAtom&&_e.isSelectable(d)&&o.parent&&!(d.isInline&&GP(n.focusNode,n.focusOffset,o.dom))){let h=o.posBefore;u=new _e(s==h?l:r.resolve(h))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=s,h=s;for(let p=0;p{(n.anchorNode!=r||n.anchorOffset!=o)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!vT(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function k5(t){let e=t.domSelection(),n=document.createRange();if(!e)return;let r=t.cursorWrapper.dom,o=r.nodeName=="IMG";o?n.setStart(r.parentNode,_n(r)+1):n.setStart(r,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!o&&!t.state.selection.visible&&yr&&hs<=11&&(r.disabled=!0,r.disabled=!1)}function wT(t,e){if(e instanceof _e){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(kT(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else kT(t)}function kT(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function z1(t,e,n,r){return t.someProp("createSelectionBetween",o=>o(t,e,n))||Oe.between(e,n,r)}function ET(t){return t.editable&&!t.hasFocus()?!1:ST(t)}function ST(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function E5(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return ka(e.node,e.offset,n.anchorNode,n.anchorOffset)}function F1(t,e){let{$anchor:n,$head:r}=t.selection,o=e>0?n.max(r):n.min(r),i=o.parent.inlineContent?o.depth?t.doc.resolve(e>0?o.after():o.before()):null:o;return i&&He.findFrom(i,e)}function gs(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function CT(t,e,n){let r=t.state.selection;if(r instanceof Oe)if(n.indexOf("s")>-1){let{$head:o}=r,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(o.pos+i.nodeSize*(e<0?-1:1));return gs(t,new Oe(r.$anchor,s))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let o=F1(t.state,e);return o&&o instanceof _e?gs(t,o):!1}else if(!(ao&&n.indexOf("m")>-1)){let o=r.$head,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,s;if(!i||i.isText)return!1;let l=e<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(s=t.docView.descAt(l))&&!s.contentDOM?_e.isSelectable(i)?gs(t,new _e(e<0?t.state.doc.resolve(o.pos-i.nodeSize):o)):Fu?gs(t,new Oe(t.state.doc.resolve(e<0?l:l+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof _e&&r.node.isInline)return gs(t,new Oe(e>0?r.$to:r.$from));{let o=F1(t.state,e);return o?gs(t,o):!1}}}function Gp(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Wu(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function jl(t,e){return e<0?S5(t):C5(t)}function S5(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,i,s=!1;for(Mo&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let l=n.childNodes[r-1];if(Wu(l,-1))o=n,i=--r;else if(l.nodeType==3)n=l,r=n.nodeValue.length;else break}}else{if(TT(n))break;{let l=n.previousSibling;for(;l&&Wu(l,-1);)o=n.parentNode,i=_n(l),l=l.previousSibling;if(l)n=l,r=Gp(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?B1(t,n,r):o&&B1(t,o,i)}function C5(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o=Gp(n),i,s;for(;;)if(r{t.state==o&&Si(t)},50)}function AT(t,e){let n=t.state.doc.resolve(e);if(!(Hn||XP)&&n.parent.inlineContent){let o=t.coordsAtPos(e);if(e>n.start()){let i=t.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>o.top&&s1)return i.lefto.top&&s1)return i.left>o.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function _T(t,e,n){let r=t.state.selection;if(r instanceof Oe&&!r.empty||n.indexOf("s")>-1||ao&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=F1(t.state,e);if(s&&s instanceof _e)return gs(t,s)}if(!o.parent.inlineContent){let s=e<0?o:i,l=r instanceof er?He.near(s,e):He.findFrom(s,e);return l?gs(t,l):!1}return!1}function RT(t,e){if(!(t.state.selection instanceof Oe))return!0;let{$head:n,$anchor:r,empty:o}=t.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return e<0?s.delete(n.pos-i.nodeSize,n.pos):s.delete(n.pos,n.pos+i.nodeSize),t.dispatch(s),!0}return!1}function MT(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function _5(t){if(!tr||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;MT(t,r,"true"),setTimeout(()=>MT(t,r,"false"),20)}return!1}function R5(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function M5(t,e){let n=e.keyCode,r=R5(e);if(n==8||ao&&n==72&&r=="c")return RT(t,-1)||jl(t,-1);if(n==46&&!e.shiftKey||ao&&n==68&&r=="c")return RT(t,1)||jl(t,1);if(n==13||n==27)return!0;if(n==37||ao&&n==66&&r=="c"){let o=n==37?AT(t,t.state.selection.from)=="ltr"?-1:1:-1;return CT(t,o,r)||jl(t,o)}else if(n==39||ao&&n==70&&r=="c"){let o=n==39?AT(t,t.state.selection.from)=="ltr"?1:-1:1;return CT(t,o,r)||jl(t,o)}else{if(n==38||ao&&n==80&&r=="c")return _T(t,-1,r)||jl(t,-1);if(n==40||ao&&n==78&&r=="c")return _5(t)||_T(t,1,r)||jl(t,1);if(r==(ao?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function H1(t,e){t.someProp("transformCopied",p=>{e=p(e,t)});let n=[],{content:r,openStart:o,openEnd:i}=e;for(;o>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,i--;let p=r.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),r=p.content}let s=t.someProp("clipboardSerializer")||Xo.fromSchema(t.state.schema),l=zT(),a=l.createElement("div");a.appendChild(s.serializeFragment(r,{document:l}));let u=a.firstChild,c,d=0;for(;u&&u.nodeType==1&&(c=DT[u.nodeName.toLowerCase()]);){for(let p=c.length-1;p>=0;p--){let f=l.createElement(c[p]);for(;a.firstChild;)f.appendChild(a.firstChild);a.appendChild(f),d++}u=a.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${o} ${i}${d?` -${d}`:""} ${JSON.stringify(n)}`);let h=t.someProp("clipboardTextSerializer",p=>p(e,t))||e.content.textBetween(0,e.content.size,` -`);return{dom:a,text:h}}function kT(t,e,n,r,o){let i=o.parent.type.spec.code,s,l;if(!n&&!e)return null;let a=e&&(r||i||!n);if(a){if(t.someProp("transformPastedText",h=>{e=h(e,i||r,t)}),i)return e?new ae(J.from(t.state.schema.text(e.replace(/\r\n?/g,` -`))),0,0):ae.empty;let d=t.someProp("clipboardTextParser",h=>h(e,o,r,t));if(d)l=d;else{let h=o.marks(),{schema:p}=t.state,f=Dr.fromSchema(p);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let m=s.appendChild(document.createElement("p"));g&&m.appendChild(f.serializeNode(p.text(g,h)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),s=m5(n),zu&&v5(s);let u=s&&s.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let h=s.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;s=h}if(l||(l=(t.someProp("clipboardParser")||t.someProp("domParser")||va.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||c),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!f5.test(h.parentNode.nodeName)?{ignore:!0}:null}})),c)l=y5(TT(l,+c[1],+c[2]),c[4]);else if(l=ae.maxOpen(g5(l.content,o),!0),l.openStart||l.openEnd){let d=0,h=0;for(let p=l.content.firstChild;d{l=d(l,t)}),l}const f5=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function g5(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(l=>{if(!s)return;let a=o.findWrapping(l.type),u;if(!a)return s=null;if(u=s.length&&i.length&&ST(a,i,l,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=CT(s[s.length-1],i.length));let c=ET(l,a);s.push(c),o=o.matchType(c.type),i=a}}),s)return J.from(s)}return t}function ET(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,J.from(t));return t}function ST(t,e,n,r,o){if(o1&&(i=0),o=n&&(l=e<0?s.contentMatchAt(0).fillBefore(l,i<=o).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(J.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(l))}function TT(t,e,n){return e]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=RT().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&AT[r[1].toLowerCase()])&&(t=o.map(i=>"<"+i+">").join("")+t+o.map(i=>"").reverse().join("")),n.innerHTML=t,o)for(let i=0;i=0;l-=2){let a=n.nodes[r[l]];if(!a||a.hasRequiredAttrs())break;o=J.from(a.create(r[l+1],o)),i++,s++}return new ae(o,i,s)}const nr={},rr={},b5={touchstart:!0,touchmove:!0};class x5{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function w5(t){for(let e in nr){let n=nr[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{E5(t,r)&&!H1(t,r)&&(t.editable||!(r.type in rr))&&n(t,r)},b5[e]?{passive:!0}:void 0)}tr&&t.dom.addEventListener("input",()=>null),B1(t)}function gs(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function k5(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function B1(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>H1(t,r))})}function H1(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function E5(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function S5(t,e){!H1(t,e)&&nr[e.type]&&(t.editable||!(e.type in rr))&&nr[e.type](t,e)}rr.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!OT(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Mo&&Bn&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),Wl&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",o=>o(t,ka(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||p5(t,n)?n.preventDefault():gs(t,"key")},rr.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},rr.keypress=(t,e)=>{let n=e;if(OT(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||so&&n.metaKey)return;if(t.someProp("handleKeyPress",o=>o(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Me)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode);!/[\r\n]/.test(o)&&!t.someProp("handleTextInput",i=>i(t,r.$from.pos,r.$to.pos,o))&&t.dispatch(t.state.tr.insertText(o).scrollIntoView()),n.preventDefault()}};function jp(t){return{left:t.clientX,top:t.clientY}}function C5(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function U1(t,e,n,r,o){if(r==-1)return!1;let i=t.state.doc.resolve(r);for(let s=i.depth+1;s>0;s--)if(t.someProp(e,l=>s>i.depth?l(t,n,i.nodeAfter,i.before(s),o,!0):l(t,n,i.node(s),i.before(s),o,!1)))return!0;return!1}function Gl(t,e,n){t.focused||t.focus();let r=t.state.tr.setSelection(e);n=="pointer"&&r.setMeta("pointer",!0),t.dispatch(r)}function T5(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&Oe.isSelectable(r)?(Gl(t,new Oe(n),"pointer"),!0):!1}function A5(t,e){if(e==-1)return!1;let n=t.state.selection,r,o;n instanceof Oe&&(r=n.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let l=s>i.depth?i.nodeAfter:i.node(s);if(Oe.isSelectable(l)){r&&n.$from.depth>0&&s>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?o=i.before(n.$from.depth):o=i.before(s);break}}return o!=null?(Gl(t,Oe.create(t.state.doc,o),"pointer"),!0):!1}function _5(t,e,n,r,o){return U1(t,"handleClickOn",e,n,r)||t.someProp("handleClick",i=>i(t,e,r))||(o?A5(t,n):T5(t,n))}function R5(t,e,n,r){return U1(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",o=>o(t,e,r))}function M5(t,e,n,r){return U1(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",o=>o(t,e,r))||O5(t,n,r)}function O5(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(Gl(t,Me.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(e);for(let i=o.depth+1;i>0;i--){let s=i>o.depth?o.nodeAfter:o.node(i),l=o.before(i);if(s.inlineContent)Gl(t,Me.create(r,l+1,l+1+s.content.size),"pointer");else if(Oe.isSelectable(s))Gl(t,Oe.create(r,l),"pointer");else continue;return!0}}function W1(t){return Gp(t)}const MT=so?"metaKey":"ctrlKey";nr.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=W1(t),o=Date.now(),i="singleClick";o-t.input.lastClick.time<500&&C5(n,t.input.lastClick)&&!n[MT]&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let s=t.posAtCoords(jp(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new I5(t,s,n,!!r)):(i=="doubleClick"?R5:M5)(t,s.pos,s.inside,n)?n.preventDefault():gs(t,"pointer"))};class I5{constructor(e,n,r,o){this.view=e,this.pos=n,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[MT],this.allowDefault=r.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let c=e.state.doc.resolve(n.pos);i=c.parent,s=c.depth?c.before():0}const l=o?null:r.target,a=l?e.docView.nearestDesc(l,!0):null;this.target=a?a.dom:null;let{selection:u}=e.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof Oe&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Ro&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),gs(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Si(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(jp(e))),this.updateAllowDefault(e),this.allowDefault||!n?gs(this.view,"pointer"):_5(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||tr&&this.mightDrag&&!this.mightDrag.node.isAtom||Bn&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Gl(this.view,He.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):gs(this.view,"pointer")}move(e){this.updateAllowDefault(e),gs(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}nr.touchstart=t=>{t.input.lastTouch=Date.now(),W1(t),gs(t,"pointer")},nr.touchmove=t=>{t.input.lastTouch=Date.now(),gs(t,"pointer")},nr.contextmenu=t=>W1(t);function OT(t,e){return t.composing?!0:tr&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const L5=Mo?5e3:-1;rr.compositionstart=rr.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),Gp(t,!0),t.markCursor=null;else if(Gp(t),Ro&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let s=i<0?o.lastChild:o.childNodes[i-1];if(!s)break;if(s.nodeType==3){t.domSelection().collapse(s,s.nodeValue.length);break}else o=s,i=-1}}t.input.composing=!0}IT(t,L5)},rr.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,IT(t,20))};function IT(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Gp(t),e))}function LT(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=N5());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function N5(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Gp(t,e=!1){if(!(Mo&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),LT(t),e||t.docView&&t.docView.dirty){let n=N1(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):t.updateState(t.state),!0}return!1}}function $5(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Kl=vr&&ds<15||Wl&&IP<604;nr.copy=rr.cut=(t,e)=>{let n=e,r=t.state.selection,o=n.type=="cut";if(r.empty)return;let i=Kl?null:n.clipboardData,s=r.content(),{dom:l,text:a}=wT(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",a)):$5(t,l),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function D5(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function P5(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Wu(t,r.value,null,o,e):Wu(t,r.textContent,r.innerHTML,o,e)},50)}function Wu(t,e,n,r,o){let i=kT(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",a=>a(t,o,i||ae.empty)))return!0;if(!i)return!1;let s=D5(i),l=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(i);return t.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}rr.paste=(t,e)=>{let n=e;if(t.composing&&!Mo)return;let r=Kl?null:n.clipboardData,o=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&Wu(t,r.getData("text/plain"),r.getData("text/html"),o,n)?n.preventDefault():P5(t,n)};class z5{constructor(e,n){this.slice=e,this.move=n}}const NT=so?"altKey":"ctrlKey";nr.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o=t.state.selection,i=o.empty?null:t.posAtCoords(jp(n));if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof Oe?o.to-1:o.to))){if(r&&r.mightDrag)t.dispatch(t.state.tr.setSelection(Oe.create(t.state.doc,r.mightDrag.pos)));else if(n.target&&n.target.nodeType==1){let u=t.docView.nearestDesc(n.target,!0);u&&u.node.type.spec.draggable&&u!=t.docView&&t.dispatch(t.state.tr.setSelection(Oe.create(t.state.doc,u.posBefore)))}}let s=t.state.selection.content(),{dom:l,text:a}=wT(t,s);n.dataTransfer.clearData(),n.dataTransfer.setData(Kl?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Kl||n.dataTransfer.setData("text/plain",a),t.dragging=new z5(s,!n[NT])},nr.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},rr.dragover=rr.dragenter=(t,e)=>e.preventDefault(),rr.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let o=t.posAtCoords(jp(n));if(!o)return;let i=t.state.doc.resolve(o.pos),s=r&&r.slice;s?t.someProp("transformPasted",f=>{s=f(s,t)}):s=kT(t,n.dataTransfer.getData(Kl?"Text":"text/plain"),Kl?null:n.dataTransfer.getData("text/html"),!1,i);let l=!!(r&&!n[NT]);if(t.someProp("handleDrop",f=>f(t,n,s||ae.empty,l))){n.preventDefault();return}if(!s)return;n.preventDefault();let a=s?Q4(t.state.doc,i.pos,s):i.pos;a==null&&(a=i.pos);let u=t.state.tr;l&&u.deleteSelection();let c=u.mapping.map(a),d=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,h=u.doc;if(d?u.replaceRangeWith(c,c,s.content.firstChild):u.replaceRange(c,c,s),u.doc.eq(h))return;let p=u.doc.resolve(c);if(d&&Oe.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new Oe(p));else{let f=u.mapping.map(a);u.mapping.maps[u.mapping.maps.length-1].forEach((g,m,v,y)=>f=y),u.setSelection(D1(t,p,u.doc.resolve(f)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))},nr.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Si(t)},20))},nr.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},nr.beforeinput=(t,e)=>{if(Bn&&Mo&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,ka(8,"Backspace")))))return;let{$cursor:o}=t.state.selection;o&&o.pos>0&&t.dispatch(t.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let t in rr)nr[t]=rr[t];function Vu(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class Kp{constructor(e,n){this.toDOM=e,this.spec=n||Ta,this.side=this.spec.side||0}map(e,n,r,o){let{pos:i,deleted:s}=e.mapResult(n.from+o,this.side<0?-1:1);return s?null:new mt(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Kp&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Vu(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class ms{constructor(e,n){this.attrs=e,this.spec=n||Ta}map(e,n,r,o){let i=e.map(n.from+o,this.spec.inclusiveStart?-1:1)-r,s=e.map(n.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=s?null:new mt(i,s,this)}valid(e,n){return n.from=e&&(!i||i(l.spec))&&r.push(l.copy(l.from+o,l.to+o))}for(let s=0;se){let l=this.children[s]+1;this.children[s+2].findInner(e-l,n-l,r,o+l,i)}}map(e,n,r){return this==Hn||e.maps.length==0?this:this.mapInner(e,n,0,0,r||Ta)}mapInner(e,n,r,o,i){let s;for(let l=0;l{let u=a+r,c;if(c=DT(n,l,u)){for(o||(o=this.children.slice());il&&d.to=e){this.children[l]==e&&(r=this.children[l+2]);break}let i=e+1,s=i+n.content.size;for(let l=0;li&&a.type instanceof ms){let u=Math.max(i,a.from)-i,c=Math.min(s,a.to)-i;uo.map(e,n,Ta));return vs.from(r)}forChild(e,n){if(n.isLeaf)return Ue.empty;let r=[];for(let o=0;on instanceof Ue)?e:e.reduce((n,r)=>n.concat(r instanceof Ue?r:r.members),[]))}}}function F5(t,e,n,r,o,i,s){let l=t.slice();for(let u=0,c=i;u{let m=g-f-(p-h);for(let v=0;vy+c-d)continue;let b=l[v]+c-d;p>=b?l[v+1]=h<=b?-2:-1:f>=o&&m&&(l[v]+=m,l[v+1]+=m)}d+=m}),c=n.maps[u].map(c,-1)}let a=!1;for(let u=0;u=r.content.size){a=!0;continue}let h=n.map(t[u+1]+i,-1),p=h-o,{index:f,offset:g}=r.content.findIndex(d),m=r.maybeChild(f);if(m&&g==d&&g+m.nodeSize==p){let v=l[u+2].mapInner(n,m,c+1,t[u]+i+1,s);v!=Hn?(l[u]=d,l[u+1]=p,l[u+2]=v):(l[u+1]=-2,a=!0)}else a=!0}if(a){let u=B5(l,t,e,n,o,i,s),c=Yp(u,r,0,s);e=c.local;for(let d=0;dn&&s.to{let u=DT(t,l,a+n);if(u){i=!0;let c=Yp(u,l,n+a+1,r);c!=Hn&&o.push(a,a+l.nodeSize,c)}});let s=$T(i?PT(t):t,-n).sort(Aa);for(let l=0;l0;)e++;t.splice(e,0,n)}function G1(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Hn&&e.push(r)}),t.cursorWrapper&&e.push(Ue.create(t.state.doc,[t.cursorWrapper.deco])),vs.from(e)}const H5={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},U5=vr&&ds<=11;class W5{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class V5{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new W5,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;oo.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),U5&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,H5)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(pT(this.view)){if(this.suppressingSelectionUpdates)return Si(this.view);if(vr&&ds<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&wa(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let i=e.focusNode;i;i=Pu(i))n.add(i);for(let i=e.anchorNode;i;i=Pu(i))if(n.has(i)){r=i;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&pT(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,l=!1,a=[];if(e.editable)for(let c=0;c1){let c=a.filter(d=>d.nodeName=="BR");if(c.length==2){let d=c[0],h=c[1];d.parentNode&&d.parentNode.parentNode==h.parentNode?h.remove():d.remove()}}let u=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)-1||o)&&(i>-1&&(e.docView.markDirty(i,s),j5(e)),this.handleDOMChange(i,s,l,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||Si(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let c=0;co;m--){let v=r.childNodes[m-1],y=v.pmViewDesc;if(v.nodeName=="BR"&&!y){i=m;break}if(!y||y.size)break}let d=t.state.doc,h=t.someProp("domParser")||va.fromSchema(t.state.schema),p=d.resolve(s),f=null,g=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:i,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:Y5,context:p});if(u&&u[0].pos!=null){let m=u[0].pos,v=u[1]&&u[1].pos;v==null&&(v=m),f={anchor:m+s,head:v+s}}return{doc:g,sel:f,from:s,to:l}}function Y5(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(tr&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||tr&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const X5=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function q5(t,e,n,r,o){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let C=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,O=N1(t,C);if(O&&!t.state.selection.eq(O)){if(Bn&&Mo&&t.input.lastKeyCode===13&&Date.now()-100_(t,ka(13,"Enter"))))return;let R=t.state.tr.setSelection(O);C=="pointer"?R.setMeta("pointer",!0):C=="key"&&R.scrollIntoView(),i&&R.setMeta("composition",i),t.dispatch(R)}return}let s=t.state.doc.resolve(e),l=s.sharedDepth(n);e=s.before(l+1),n=t.state.doc.resolve(n).after(l+1);let a=t.state.selection,u=K5(t,e,n),c=t.state.doc,d=c.slice(u.from,u.to),h,p;t.input.lastKeyCode===8&&Date.now()-100Date.now()-225||Mo)&&o.some(C=>C.nodeType==1&&!X5.test(C.nodeName))&&(!f||f.endA>=f.endB)&&t.someProp("handleKeyDown",C=>C(t,ka(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!f)if(r&&a instanceof Me&&!a.empty&&a.$head.sameParent(a.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))f={start:a.from,endA:a.to,endB:a.to};else{if(u.sel){let C=HT(t,t.state.doc,u.sel);if(C&&!C.eq(t.state.selection)){let O=t.state.tr.setSelection(C);i&&O.setMeta("composition",i),t.dispatch(O)}}return}if(Bn&&t.cursorWrapper&&u.sel&&u.sel.anchor==t.cursorWrapper.deco.from&&u.sel.head==u.sel.anchor){let C=f.endB-f.start;u.sel={anchor:u.sel.anchor+C,head:u.sel.anchor+C}}t.input.domChangeCount++,t.state.selection.fromt.state.selection.from&&f.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?f.start=t.state.selection.from:f.endA=t.state.selection.to-2&&t.state.selection.to<=u.to&&(f.endB+=t.state.selection.to-f.endA,f.endA=t.state.selection.to)),vr&&ds<=11&&f.endB==f.start+1&&f.endA==f.start&&f.start>u.from&&u.doc.textBetween(f.start-u.from-1,f.start-u.from+1)=="  "&&(f.start--,f.endA--,f.endB--);let g=u.doc.resolveNoCache(f.start-u.from),m=u.doc.resolveNoCache(f.endB-u.from),v=c.resolve(f.start),y=g.sameParent(m)&&g.parent.inlineContent&&v.end()>=f.endA,b;if((Wl&&t.input.lastIOSEnter>Date.now()-225&&(!y||o.some(C=>C.nodeName=="DIV"||C.nodeName=="P"))||!y&&g.posC(t,ka(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>f.start&&J5(c,f.start,f.endA,g,m)&&t.someProp("handleKeyDown",C=>C(t,ka(8,"Backspace")))){Mo&&Bn&&t.domObserver.suppressSelectionUpdates();return}Bn&&Mo&&f.endB==f.start&&(t.input.lastAndroidDelete=Date.now()),Mo&&!y&&g.start()!=m.start()&&m.parentOffset==0&&g.depth==m.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==f.endA&&(f.endB-=2,m=u.doc.resolveNoCache(f.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(C){return C(t,ka(13,"Enter"))})},20));let x=f.start,k=f.endA,w,S,A;if(y){if(g.pos==m.pos)vr&&ds<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Si(t),20)),w=t.state.tr.delete(x,k),S=c.resolve(f.start).marksAcross(c.resolve(f.endA));else if(f.endA==f.endB&&(A=Z5(g.parent.content.cut(g.parentOffset,m.parentOffset),v.parent.content.cut(v.parentOffset,f.endA-v.start()))))w=t.state.tr,A.type=="add"?w.addMark(x,k,A.mark):w.removeMark(x,k,A.mark);else if(g.parent.child(g.index()).isText&&g.index()==m.index()-(m.textOffset?0:1)){let C=g.parent.textBetween(g.parentOffset,m.parentOffset);if(t.someProp("handleTextInput",O=>O(t,x,k,C)))return;w=t.state.tr.insertText(C,x,k)}}if(w||(w=t.state.tr.replace(x,k,u.doc.slice(f.start-u.from,f.endB-u.from))),u.sel){let C=HT(t,w.doc,u.sel);C&&!(Bn&&Mo&&t.composing&&C.empty&&(f.start!=f.endB||t.input.lastAndroidDeletee.content.size?null:D1(t,e.resolve(n.anchor),e.resolve(n.head))}function Z5(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,o=n,i=r,s,l,a;for(let c=0;cc.mark(l.addToSet(c.marks));else if(o.length==0&&i.length==1)l=i[0],s="remove",a=c=>c.mark(l.removeFromSet(c.marks));else return null;let u=[];for(let c=0;cn||K1(s,!0,!1)0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,o++,e=!1;if(n){let i=t.node(r).maybeChild(t.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function Q5(t,e,n,r,o){let i=t.findDiffStart(e,n);if(i==null)return null;let{a:s,b:l}=t.findDiffEnd(e,n+t.size,n+e.size);if(o=="end"){let a=Math.max(0,i-Math.min(s,l));r-=s+a-i}if(s=s?i-r:0;i-=a,l=i+(l-s),s=i}else if(l=l?i-r:0;i-=a,s=i+(s-l),l=i}return{start:i,endA:s,endB:l}}class e3{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new x5,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(GT),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=VT(this),WT(this),this.nodeViews=jT(this),this.docView=tT(this.state.doc,UT(this),G1(this),this.dom,this),this.domObserver=new V5(this,(r,o,i,s)=>q5(this,r,o,i,s)),this.domObserver.start(),w5(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&B1(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(GT),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){let r=this.state,o=!1,i=!1;e.storedMarks&&this.composing&&(LT(this),i=!0),this.state=e;let s=r.plugins!=e.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=jT(this);n3(h,this.nodeViews)&&(this.nodeViews=h,o=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&B1(this),this.editable=VT(this),WT(this);let l=G1(this),a=UT(this),u=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",c=o||!this.docView.matchesNode(e.doc,a,l);(c||!e.selection.eq(r.selection))&&(i=!0);let d=u=="preserve"&&i&&this.dom.style.overflowAnchor==null&&$P(this);if(i){this.domObserver.stop();let h=c&&(vr||Bn)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&t3(r.selection,e.selection);if(c){let p=Bn?this.trackWrites=this.domSelectionRange().focusNode:null;(o||!this.docView.update(e.doc,a,l,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=tT(e.doc,a,l,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&s5(this))?Si(this,h):(dT(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():d&&DP(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Oe){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&UC(this,n.getBoundingClientRect(),e)}else UC(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;nn.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return UP(this,e)}coordsAtPos(e,n=1){return YC(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let o=this.docView.posFromDOM(e,n,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,n){return KP(this,n||this.state,e)}pasteHTML(e,n){return Wu(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Wu(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(k5(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],G1(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(e){return S5(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return tr&&this.root.nodeType===11&&_P(this.dom.ownerDocument)==this.dom?G5(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function UT(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[mt.node(0,t.state.doc.content.size,e)]}function WT(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:mt.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function VT(t){return!t.someProp("editable",e=>e(t.state)===!1)}function t3(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function jT(t){let e=Object.create(null);function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=r[o])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function n3(t,e){let n=0,r=0;for(let o in t){if(t[o]!=e[o])return!0;n++}for(let o in e)r++;return n!=r}function GT(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var r3=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};const o3=io(r3);var KT=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Pe=(t,e,n)=>(KT(t,e,"read from private field"),n?n.call(t):e.get(t)),Ci=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},bt=(t,e,n,r)=>(KT(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);function i3(t){return!!(t.prev&&t.next&&t.prev.text.full!==t.next.text.full)}function s3(t){return!!(t.prev&&t.next&&t.prev.range.cursor!==t.next.range.cursor)}function a3(t){return!!(!t.prev&&t.next)}function l3(t){return!!(t.prev&&!t.next)}function c3(t){return!!(t.prev&&t.next&&t.prev.range.from!==t.next.range.from)}function u3(t){return t==="invalid-exit-split"}var d3=["jump-backward-exit","jump-forward-exit"],h3=["jump-backward-change","jump-forward-change"];function p3(t){var e,n;return Jn(d3,(e=t.exit)==null?void 0:e.exitReason)||Jn(h3,(n=t.change)==null?void 0:n.changeReason)}function YT(t){return!!(t&&t.query.full.length>=t.suggester.matchOffset)}function XT(t){return Tn(t)&&t instanceof Me}function yr(t){const{match:e,changeReason:n,exitReason:r}=t;return{...e,changeReason:n,exitReason:r}}function f3(t,e){const{invalidPrefixCharacters:n,validPrefixCharacters:r}=e;return n?!new RegExp(X1(n)).test(t):new RegExp(X1(r)).test(t)}function g3(t){const{text:e,regexp:n,$pos:r,suggester:o}=t,i=r.start();let s;return Il(e,n).forEach(l=>{const a=l.input.slice(Math.max(0,l.index-1),l.index);if(f3(a,o)){const u=l.index+i,c=l[0],d=l[1];if(!ke(c)||!ke(d))return;const h=u+c.length,p=Math.min(h,r.pos),f=p-u;u=r.pos&&(s={range:{from:u,to:h,cursor:p},match:l,query:{partial:c.slice(d.length,f),full:c.slice(d.length)},text:{partial:c.slice(0,f),full:c},textAfter:r.doc.textBetween(h,r.end(),ts,ts),textBefore:r.doc.textBetween(i,u,ts,ts),suggester:o})}}),s}function qT(t){const{$pos:e,suggester:n}=t,{char:r,name:o,startOfLine:i,supportedCharacters:s,matchOffset:l,multiline:a,caseInsensitive:u,unicode:c}=n,d=S3({char:r,matchOffset:l,startOfLine:i,supportedCharacters:s,multiline:a,caseInsensitive:u,unicode:c}),h=e.doc.textBetween(e.before(),e.end(),ts,ts);return g3({suggester:n,text:h,regexp:d,$pos:e,char:r,name:o})}function ZT(t){const{state:e,match:n}=t;try{return qT({$pos:e.doc.resolve(n.range.cursor),suggester:n.suggester})}catch{return}}function JT(t){const{prev:e,next:n,state:r}=t;return!n&&e.range.from>=r.doc.nodeSize?{exit:yr({match:e,exitReason:"delete"})}:!n||!e.query.partial?{exit:yr({match:e,exitReason:"invalid-exit-split"})}:e.range.to===n.range.cursor?{exit:yr({match:n,exitReason:"exit-end"})}:e.query.partial?{exit:yr({match:n,exitReason:"exit-split"})}:{}}function m3(t){const{prev:e,next:n,state:r}=t,o=ye(),i=ZT({state:r,match:e}),{exit:s}=i&&i.query.full!==e.query.full?JT({prev:e,next:i,state:r}):o;return e.range.from=e.range.to)?{exit:yr({match:e,exitReason:"selection-outside"})}:r.pos>e.range.to?{exit:yr({match:e,exitReason:"move-end"})}:r.pos<=e.range.from?{exit:yr({match:e,exitReason:"move-start"})}:{}}function y3(t){const{prev:e,next:n,state:r,$pos:o}=t,i=ye();if(!e&&!n)return i;const s={prev:e,next:n};return c3(s)?m3({prev:s.prev,next:s.next,state:r}):a3(s)?{change:yr({match:s.next,changeReason:"start"})}:l3(s)?v3({$pos:o,match:s.prev,state:r}):i3(s)?{change:yr({match:s.next,changeReason:"change-character"})}:s3(s)?{change:yr({match:s.next,changeReason:r.selection.empty?"move":"selection-inside"})}:i}function QT(t,e){for(let n=t.depth;n>0;n--){const r=t.node(n);if(e.includes(r.type.name))return!0}return!1}function Y1(t,e){const{$from:n,$to:r}=t;return eA(t,e)?!0:o1(n.pos,r.pos).some(o=>b3(n.doc.resolve(o),e))}function eA(t,e){const{$from:n,$to:r}=t,o=new Set((n.marksAcross(r)??[]).map(i=>i.type.name));return e.some(i=>o.has(i))}function b3(t,e){const n=new Set(t.marks().map(r=>r.type.name));return e.some(r=>n.has(r))}function x3(t,e){const{$cursor:n}=e,{validMarks:r,validNodes:o,invalidMarks:i,invalidNodes:s}=t;return!r&&!o&&is(i)&&is(s)?!0:!(r&&!eA(e,r)||o&&!QT(n,o)||!r&&Y1(e,i)||!o&&QT(n,s))}function tA(t){const{suggesters:e,$pos:n,selectionEmpty:r}=t;for(const o of e)if(!(o.emptySelectionsOnly&&!r))try{const i=qT({suggester:o,$pos:n});if(!i)continue;const s={$from:n.doc.resolve(i.range.from),$to:n.doc.resolve(i.range.to),$cursor:n};if(x3(o,s)&&o.isValidPosition(s,i))return i}catch{}}function X1(t){return r4(t)?t.source:t}function w3(t){return t?"^":""}function k3(t,e){return`(?:${X1(t)}){${e},}`}function E3(t){return ke(t)?new RegExp(o3(t)):t}function S3(t){const{char:e,matchOffset:n,startOfLine:r,supportedCharacters:o,captureChar:i=!0,caseInsensitive:s=!1,multiline:l=!1,unicode:a=!1}=t,u=`g${l?"m":""}${s?"i":""}${a?"u":""}`;let c=E3(e).source;return i&&(c=`(${c})`),new RegExp(`${w3(r)}${c}${k3(o,n)}`,u)}var C3={appendTransaction:!1,priority:50,ignoredTag:"span",matchOffset:0,disableDecorations:!1,startOfLine:!1,suggestClassName:"suggest",suggestTag:"span",supportedCharacters:/\w+/,validPrefixCharacters:/^[\s\0]?$/,invalidPrefixCharacters:null,ignoredClassName:null,invalidMarks:[],invalidNodes:[],validMarks:null,validNodes:null,isValidPosition:()=>!0,checkNextValidSelection:null,emptySelectionsOnly:!1,caseInsensitive:!1,multiline:!1,unicode:!1,captureChar:!0},nA="__ignore_prosemirror_suggest_update__",Xp,ju,fn,ys,Xl,Qo,sn,bs,ql,rA=class{constructor(t){Ci(this,Xp,!1),Ci(this,ju,!1),Ci(this,fn,void 0),Ci(this,ys,void 0),Ci(this,Xl,void 0),Ci(this,Qo,ye()),Ci(this,sn,Ue.empty),Ci(this,bs,!1),Ci(this,ql,!1),this.setMarkRemoved=()=>{bt(this,bs,!0)},this.findNextTextSelection=n=>{const r=n.$from.doc,o=Math.min(r.nodeSize-2,n.to+1),i=r.resolve(o),s=He.findFrom(i,1,!0);if(XT(s))return s},this.ignoreNextExit=()=>{bt(this,ju,!0)},this.addIgnored=({from:n,name:r,specific:o=!1})=>{const i=Pe(this,fn).find(c=>c.name===r);if(!i)throw new Error(`No suggester exists for the name provided: ${r}`);const s=ke(i.char)?i.char.length:1,l=n+s,a=i.ignoredClassName?{class:i.ignoredClassName}:{},u=mt.inline(n,l,{nodeName:i.ignoredTag,...a},{name:r,specific:o,char:i.char});bt(this,sn,Pe(this,sn).add(this.view.state.doc,[u]))},this.removeIgnored=({from:n,name:r})=>{const o=Pe(this,fn).find(l=>l.name===r);if(!o)throw new Error(`No suggester exists for the name provided: ${r}`);const i=ke(o.char)?o.char.length:1,s=Pe(this,sn).find(n,n+i)[0];!s||s.spec.name!==r||bt(this,sn,Pe(this,sn).remove([s]))},this.clearIgnored=n=>{if(!n){bt(this,sn,Ue.empty);return}const o=Pe(this,sn).find().filter(({spec:i})=>i.name===n);bt(this,sn,Pe(this,sn).remove(o))},this.findMatchAtPosition=(n,r)=>{const o=r?Pe(this,fn).filter(i=>i.name===r):Pe(this,fn);return tA({suggesters:o,$pos:n,docChanged:!1,selectionEmpty:!0})},this.setLastChangeFromAppend=()=>{bt(this,ql,!0)};const e=oA();bt(this,fn,t.map(e)),bt(this,fn,ss(Pe(this,fn),(n,r)=>r.priority-n.priority))}static create(t){return new rA(t)}get decorationSet(){return Pe(this,sn)}get removed(){return Pe(this,bs)}get match(){return Pe(this,ys)?Pe(this,ys):Pe(this,Xl)&&Pe(this,Qo).exit?Pe(this,Xl):void 0}init(t){return this.view=t,this}createProps(t){const{name:e,char:n}=t.suggester;return{view:this.view,addIgnored:this.addIgnored,clearIgnored:this.clearIgnored,ignoreNextExit:this.ignoreNextExit,setMarkRemoved:this.setMarkRemoved,name:e,char:n,...t}}shouldRunExit(){return Pe(this,ju)?(bt(this,ju,!1),!1):!0}updateWithNextSelection(t){var e,n,r;const o=this.findNextTextSelection(t.selection);if(o)for(const i of Pe(this,fn)){const s=(e=Pe(this,Qo).change)==null?void 0:e.suggester.name,l=(n=Pe(this,Qo).exit)==null?void 0:n.suggester.name;(r=i.checkNextValidSelection)==null||r.call(i,o.$from,t,{change:s,exit:l})}}changeHandler(t,e){const{change:n,exit:r}=Pe(this,Qo),o=this.match;if(!n&&!r||!YT(o))return;const i=e===(r==null?void 0:r.suggester.appendTransaction)&&this.shouldRunExit(),s=e===(n==null?void 0:n.suggester.appendTransaction);if(!(!i&&!s)){if(n&&r&&p3({change:n,exit:r})){const l=this.createProps(r),a=this.createProps(n),u=r.range.from{const l=ke(s.char)?s.char.length:1;return i-o!==l});bt(this,sn,e.remove(r))}shouldIgnoreMatch({range:t,suggester:{name:e}}){return Pe(this,sn).find().some(({spec:o,from:i})=>i!==t.from?!1:o.specific?o.name===e:!0)}resetState(){bt(this,Qo,ye()),bt(this,ys,void 0),bt(this,bs,!1),bt(this,ql,!1)}updateReasons(t){const{$pos:e,state:n}=t,r=Pe(this,Xp),o=Pe(this,fn),i=n.selection.empty,s=XT(n.selection)?tA({suggesters:o,$pos:e,docChanged:r,selectionEmpty:i}):void 0;bt(this,ys,s&&this.shouldIgnoreMatch(s)?void 0:s),bt(this,Qo,y3({next:Pe(this,ys),prev:Pe(this,Xl),state:n,$pos:e}))}addSuggester(t){const e=Pe(this,fn).find(r=>r.name===t.name),n=oA();if(e)bt(this,fn,Pe(this,fn).map(r=>r===e?n(t):r));else{const r=[...Pe(this,fn),n(t)];bt(this,fn,ss(r,(o,i)=>i.priority-o.priority))}return()=>this.removeSuggester(t.name)}removeSuggester(t){const e=ke(t)?t:t.name;bt(this,fn,Pe(this,fn).filter(n=>n.name!==e)),this.clearIgnored(e)}toJSON(){return this.match}apply(t){const{exit:e,change:n}=Pe(this,Qo);if(Pe(this,ql)&&(bt(this,ql,!1),!(e!=null&&e.suggester.appendTransaction)&&!(n!=null&&n.suggester.appendTransaction)))return this;const{tr:r,state:o}=t,i=r.docChanged||r.selectionSet;return r.getMeta(nA)||!i&&!Pe(this,bs)?this:(bt(this,Xp,r.docChanged),this.mapIgnoredDecorations(r),e&&this.resetState(),bt(this,Xl,Pe(this,ys)),this.updateReasons({$pos:r.selection.$from,state:o}),this)}createDecorations(t){const e=this.match;if(!YT(e))return Pe(this,sn);const{disableDecorations:n}=e.suggester;if(Xe(n)?n(t,e):n)return Pe(this,sn);const{range:o,suggester:i}=e,{name:s,suggestTag:l,suggestClassName:a}=i,{from:u,to:c}=o;return this.shouldIgnoreMatch(e)?Pe(this,sn):Pe(this,sn).add(t.doc,[mt.inline(u,c,{nodeName:l,class:s?`${a} suggest-${s}`:a},{name:s})])}},T3=rA;Xp=new WeakMap,ju=new WeakMap,fn=new WeakMap,ys=new WeakMap,Xl=new WeakMap,Qo=new WeakMap,sn=new WeakMap,bs=new WeakMap,ql=new WeakMap;function oA(){const t=new Set;return e=>{if(t.has(e.name))throw new Error(`A suggester already exists with the name '${e.name}'. The name provided must be unique.`);const n={...C3,...e};return t.add(e.name),n}}var iA=new ba("suggest");function q1(t){return iA.getState(t)}function sA(t,e){return q1(t).addSuggester(e)}function aA(t){t.setMeta(nA,!0)}function A3(t,e){return q1(t).removeSuggester(e)}function _3(...t){const e=T3.create(t);return new Xo({key:iA,view:n=>(e.init(n),{update:r=>e.changeHandler(r.state.tr,!1)}),state:{init:()=>e,apply:(n,r,o,i)=>e.apply({tr:n,state:i})},appendTransaction:(n,r,o)=>{const i=o.tr;return e.updateWithNextSelection(i),e.changeHandler(i,!0),i.docChanged||i.steps.length>0||i.selectionSet||i.storedMarksSet?(e.setLastChangeFromAppend(),i):null},props:{decorations:n=>e.createDecorations(n)}})}function Z1(t,e){const n=Object.getPrototypeOf(e);let r=t.selection,o=t.doc,i=t.storedMarks;const s=ye();for(const[l,a]of Object.entries(e))s[l]={value:a};return Object.create(n,{...s,storedMarks:{get(){return i}},selection:{get(){return r}},doc:{get(){return o}},tr:{get(){return r=t.selection,o=t.doc,i=t.storedMarks,t}}})}function Gu(t){return({state:e,dispatch:n,view:r,tr:o})=>t(Z1(o,e),n,r)}function lA(t){return e=>{var n;return be(e.dispatch===void 0||e.dispatch===((n=e.view)==null?void 0:n.dispatch),{code:re.NON_CHAINABLE_COMMAND}),t(e)}}function R3(...t){return({state:e,dispatch:n,view:r,tr:o,...i})=>{for(const s of t)if(s({state:e,dispatch:n,view:r,tr:o,...i}))return!0;return!1}}var br={get isBrowser(){return!!(typeof window<"u"&&typeof window.document<"u"&&window.navigator&&window.navigator.userAgent)},get isJSDOM(){return br.isBrowser&&window.navigator.userAgent.includes("jsdom")},get isNode(){return typeof process<"u"&&process.versions!=null&&process.versions.node!=null},get isIos(){return br.isBrowser&&/iPod|iPhone|iPad/.test(navigator.platform)},get isMac(){return br.isBrowser&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)},get isApple(){return br.isNode?process.platform==="darwin":br.isBrowser?/Mac|iPod|iPhone|iPad/.test(window.navigator.platform):!1},get isDevelopment(){return!1},get isTest(){return!1},get isProduction(){return!0}};function ei(t,e){var n;const r=rz(t);return((n=r==null?void 0:r.getComputedStyle(t))==null?void 0:n.getPropertyValue(e))??""}function Un(t,e){return Object.assign(t.style,e)}function J1(t){return Tn(t)&&$r(t.nodeType)&&ke(t.nodeName)}function Ft(t){return J1(t)&&t.nodeType===1}function qp(t){const{types:e,node:n}=t;if(!n)return!1;const r=o=>o===n.type||o===n.type.name;return Ot(e)?e.some(r):r(e)}function M3(t,e){const{tr:n}=e;return t.forEach(r=>{r.steps.forEach(o=>{n.step(o)})}),n}function O3({pos:t,tr:e}){const n=e.doc.nodeAt(t);return n&&e.delete(t,t+n.nodeSize),e}function I3({pos:t,tr:e,content:n}){const r=e.doc.nodeAt(t);return r&&e.replaceWith(t,t+r.nodeSize,n),e}function Ku(t){const{predicate:e,selection:n}=t,r=dA(n)?n.selection.$from:t0(n)?n.$from:n;for(let o=r.depth;o>0;o--){const i=r.node(o),s=o>0?r.before(o):0,l=r.start(o),a=s+i.nodeSize;if(e(i,s))return{pos:s,depth:o,node:i,start:l,end:a}}}function L3(t){const{depth:e}=t,n=e>0?t.before(e):0,r=t.node(e),o=t.start(e),i=n+r.nodeSize;return{pos:n,start:o,node:r,end:i,depth:e}}function N3(t){const e=Ku({predicate:()=>!0,selection:t});return be(e,{message:"No parent node found for the selection provided."}),e}function ti(t){const{types:e,selection:n}=t;return Ku({predicate:r=>qp({types:e,node:r}),selection:n})}function $3(t){const{types:e,selection:n}=t;if(!(!qu(n)||!qp({types:e,node:n.node})))return{pos:n.$from.pos,depth:n.$from.depth,start:n.$from.start(),end:n.$from.pos+n.node.nodeSize,node:n.node}}function Q1(t){return t0(t)?t.empty:t.selection.empty}function D3(t){return t.docChanged||t.selectionSet}function cA(t){return!!Yu(t)}function Yu(t){const{state:e,type:n,attrs:r}=t,{selection:o,doc:i}=e,s=ke(n)?i.type.schema.nodes[n]:n;be(s,{code:re.SCHEMA,message:`No node exists for ${n}`});const l=$3({selection:o,types:n})??Ku({predicate:a=>a.type===s,selection:o});return!r||_u(r)||!l||l.node.hasMarkup(s,{...l.node.attrs,...r})?l:void 0}function Zp(...t){return e=>{if(!MS(t))return!1;const[n,...r]=t;let o=!1;const i=(...a)=>()=>{if(!MS(a))return!1;o=!0;const[,...u]=a;return Zp(...a)({...e,next:i(...u)})},s=i(...r),l=n({...e,next:s});return o||l?l:s()}}function P3(t,e){const n=new Map,r=ye();for(const o of t)for(const[i,s]of nn(o)){const a=[...n.get(i)??[],s],u=Zp(...a);n.set(i,a),r[i]=e(u)}return r}function z3(t){return P3(t,e=>(n,r,o)=>e({state:n,dispatch:r,view:o,tr:n.tr,next:()=>!1}))}function e0(t,e){const n=t.attrs??{};return Object.entries(e).every(([r,o])=>n[r]===o)}function F3(t){return fA(t,[wi,Gt,pn,_o])}function Zl(t){return Tn(t)}function Jl(t,e){return Ot(e)?Jn(e,t[xi]):e===t[xi]}function B3(t){return Tn(t)&&t instanceof c1}function H3(t,e){return ke(t)?_t(e.nodes,t):t}function uA(t){return Tn(t)&&t instanceof Mu}function U3(t,e){return ke(t)?_t(e.marks,t):t}function Xu(t){return Tn(t)&&t instanceof as}function W3(t){return Tn(t)&&t instanceof J}function V3(t){return Tn(t)&&t instanceof Ge}function dA(t){return Tn(t)&&t instanceof ya}function xs(t){return Tn(t)&&t instanceof Me}function j3(t){return Tn(t)&&t instanceof Qn}function t0(t){return Tn(t)&&t instanceof He}function G3(t){return Tn(t)&&t instanceof $l}function hA(t){const{trState:e,from:n,to:r,type:o,attrs:i={}}=t,{doc:s}=e,l=U3(o,s.type.schema);if(Object.keys(i).length===0)return s.rangeHasMark(n,r,l);let a=!1;return r>n&&s.nodesBetween(n,r,u=>a?!1:(a=(u.marks??[]).some(d=>d.type!==l?!1:e0(d,i)),!a)),a}function qu(t){return Tn(t)&&t instanceof Oe}function Jp(t){const{trState:e,type:n,attrs:r={},from:o,to:i}=t,{selection:s,doc:l,storedMarks:a}=e,u=ke(n)?l.type.schema.marks[n]:n;if(be(u,{code:re.SCHEMA,message:`Mark type: ${n} does not exist on the current schema.`}),o&&i)try{return Math.max(o,i)d.type!==n?!1:e0(d,r??{})):hA({...t,from:s.from,to:s.to})}function n0(t,e={}){const n=K3(t.type.schema);if(!n)return!1;const{ignoreAttributes:r,ignoreDocAttributes:o}=e;return r?pA(n,t):o?n.content.eq(t.content):n.eq(t)}function pA(t,e){if(t===e)return!0;const n=t.type===e.type&&Ge.sameSet(t.marks,e.marks);function r(){if(t.content===e.content)return!0;if(t.content.size!==e.content.size)return!1;const o=[],i=[];t.content.forEach(s=>o.push(s)),e.content.forEach(s=>i.push(s));for(const[s,l]of o.entries()){const a=i[s];if(!a||!pA(l,a))return!1}return!0}return n&&r()}function K3(t){var e;return((e=t.nodes.doc)==null?void 0:e.createAndFill())??void 0}function Qp(t){for(const e of Object.values(t.nodes))if(e.name!=="doc"&&(e.isBlock||e.isTextblock))return e;be(!1,{code:re.SCHEMA,message:"No default block node found for the provided schema."})}function Y3(t){return t.type===Qp(t.type.schema)}function ef(t){return!!t&&t.type.isBlock&&!t.textContent&&!t.childCount}function Ti(t,e,n){const r=t.parent.childAfter(t.parentOffset);if(!r.node)return;const o=ke(e)?e:e.name,i=r.node.marks.find(({type:d})=>d.name===o);let s=t.index(),l=t.start()+r.offset,a=s+1,u=l+r.node.nodeSize;if(!i)return n&&u0&&i.isInSet(t.parent.child(s-1).marks);)s-=1,l-=t.parent.child(s).nodeSize;for(;a{e=h(e,i||r,t)}),i)return e?new ae(J.from(t.state.schema.text(e.replace(/\r\n?/g,` +`))),0,0):ae.empty;let d=t.someProp("clipboardTextParser",h=>h(e,o,r,t));if(d)l=d;else{let h=o.marks(),{schema:p}=t.state,f=Xo.fromSchema(p);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let m=s.appendChild(document.createElement("p"));g&&m.appendChild(f.serializeNode(p.text(g,h)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),s=N5(n),Fu&&$5(s);let u=s&&s.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let h=s.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;s=h}if(l||(l=(t.someProp("clipboardParser")||t.someProp("domParser")||ya.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||c),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!O5.test(h.parentNode.nodeName)?{ignore:!0}:null}})),c)l=D5($T(l,+c[1],+c[2]),c[4]);else if(l=ae.maxOpen(I5(l.content,o),!0),l.openStart||l.openEnd){let d=0,h=0;for(let p=l.content.firstChild;d{l=d(l,t)}),l}const O5=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function I5(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(l=>{if(!s)return;let a=o.findWrapping(l.type),u;if(!a)return s=null;if(u=s.length&&i.length&<(a,i,l,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=NT(s[s.length-1],i.length));let c=IT(l,a);s.push(c),o=o.matchType(c.type),i=a}}),s)return J.from(s)}return t}function IT(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,J.from(t));return t}function LT(t,e,n,r,o){if(o1&&(i=0),o=n&&(l=e<0?s.contentMatchAt(0).fillBefore(l,i<=o).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(J.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(l))}function $T(t,e,n){return en})),W1.createHTML(t)):t}function N5(t){let e=/^(\s*]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=zT().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&DT[r[1].toLowerCase()])&&(t=o.map(i=>"<"+i+">").join("")+t+o.map(i=>"").reverse().join("")),n.innerHTML=L5(t),o)for(let i=0;i=0;l-=2){let a=n.nodes[r[l]];if(!a||a.hasRequiredAttrs())break;o=J.from(a.create(r[l+1],o)),i++,s++}return new ae(o,i,s)}const nr={},rr={},P5={touchstart:!0,touchmove:!0};class z5{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function F5(t){for(let e in nr){let n=nr[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{H5(t,r)&&!j1(t,r)&&(t.editable||!(r.type in rr))&&n(t,r)},P5[e]?{passive:!0}:void 0)}tr&&t.dom.addEventListener("input",()=>null),V1(t)}function ms(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function B5(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function V1(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>j1(t,r))})}function j1(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function H5(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function U5(t,e){!j1(t,e)&&nr[e.type]&&(t.editable||!(e.type in rr))&&nr[e.type](t,e)}rr.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!BT(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(ki&&Hn&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),Wl&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",o=>o(t,Ea(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||M5(t,n)?n.preventDefault():ms(t,"key")},rr.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},rr.keypress=(t,e)=>{let n=e;if(BT(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||ao&&n.metaKey)return;if(t.someProp("handleKeyPress",o=>o(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Oe)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode),i=()=>t.state.tr.insertText(o).scrollIntoView();!/[\r\n]/.test(o)&&!t.someProp("handleTextInput",s=>s(t,r.$from.pos,r.$to.pos,o,i))&&t.dispatch(i()),n.preventDefault()}};function Kp(t){return{left:t.clientX,top:t.clientY}}function W5(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function G1(t,e,n,r,o){if(r==-1)return!1;let i=t.state.doc.resolve(r);for(let s=i.depth+1;s>0;s--)if(t.someProp(e,l=>s>i.depth?l(t,n,i.nodeAfter,i.before(s),o,!0):l(t,n,i.node(s),i.before(s),o,!1)))return!0;return!1}function Gl(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);n=="pointer"&&r.setMeta("pointer",!0),t.dispatch(r)}function V5(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&_e.isSelectable(r)?(Gl(t,new _e(n),"pointer"),!0):!1}function j5(t,e){if(e==-1)return!1;let n=t.state.selection,r,o;n instanceof _e&&(r=n.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let l=s>i.depth?i.nodeAfter:i.node(s);if(_e.isSelectable(l)){r&&n.$from.depth>0&&s>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?o=i.before(n.$from.depth):o=i.before(s);break}}return o!=null?(Gl(t,_e.create(t.state.doc,o),"pointer"),!0):!1}function G5(t,e,n,r,o){return G1(t,"handleClickOn",e,n,r)||t.someProp("handleClick",i=>i(t,e,r))||(o?j5(t,n):V5(t,n))}function K5(t,e,n,r){return G1(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",o=>o(t,e,r))}function Y5(t,e,n,r){return G1(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",o=>o(t,e,r))||X5(t,n,r)}function X5(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(Gl(t,Oe.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(e);for(let i=o.depth+1;i>0;i--){let s=i>o.depth?o.nodeAfter:o.node(i),l=o.before(i);if(s.inlineContent)Gl(t,Oe.create(r,l+1,l+1+s.content.size),"pointer");else if(_e.isSelectable(s))Gl(t,_e.create(r,l),"pointer");else continue;return!0}}function K1(t){return Yp(t)}const FT=ao?"metaKey":"ctrlKey";nr.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=K1(t),o=Date.now(),i="singleClick";o-t.input.lastClick.time<500&&W5(n,t.input.lastClick)&&!n[FT]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i,button:n.button};let s=t.posAtCoords(Kp(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new q5(t,s,n,!!r)):(i=="doubleClick"?K5:Y5)(t,s.pos,s.inside,n)?n.preventDefault():ms(t,"pointer"))};class q5{constructor(e,n,r,o){this.view=e,this.pos=n,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[FT],this.allowDefault=r.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let c=e.state.doc.resolve(n.pos);i=c.parent,s=c.depth?c.before():0}const l=o?null:r.target,a=l?e.docView.nearestDesc(l,!0):null;this.target=a&&a.dom.nodeType==1?a.dom:null;let{selection:u}=e.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof _e&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Mo&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),ms(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Si(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Kp(e))),this.updateAllowDefault(e),this.allowDefault||!n?ms(this.view,"pointer"):G5(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||tr&&this.mightDrag&&!this.mightDrag.node.isAtom||Hn&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Gl(this.view,He.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):ms(this.view,"pointer")}move(e){this.updateAllowDefault(e),ms(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}nr.touchstart=t=>{t.input.lastTouch=Date.now(),K1(t),ms(t,"pointer")},nr.touchmove=t=>{t.input.lastTouch=Date.now(),ms(t,"pointer")},nr.contextmenu=t=>K1(t);function BT(t,e){return t.composing?!0:tr&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const Z5=ki?5e3:-1;rr.compositionstart=rr.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof Oe&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),Yp(t,!0),t.markCursor=null;else if(Yp(t,!e.selection.empty),Mo&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let s=i<0?o.lastChild:o.childNodes[i-1];if(!s)break;if(s.nodeType==3){let l=t.domSelection();l&&l.collapse(s,s.nodeValue.length);break}else o=s,i=-1}}t.input.composing=!0}HT(t,Z5)},rr.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,HT(t,20))};function HT(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Yp(t),e))}function UT(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Q5());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function J5(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=VP(e.focusNode,e.focusOffset),r=jP(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let o=r.pmViewDesc,i=t.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!o||!o.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return r}}return n||r}function Q5(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Yp(t,e=!1){if(!(ki&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),UT(t),e||t.docView&&t.docView.dirty){let n=D1(t),r=t.state.selection;return n&&!n.eq(r)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function e3(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Vu=yr&&hs<15||Wl&&qP<604;nr.copy=rr.cut=(t,e)=>{let n=e,r=t.state.selection,o=n.type=="cut";if(r.empty)return;let i=Vu?null:n.clipboardData,s=r.content(),{dom:l,text:a}=H1(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",a)):e3(t,l),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function t3(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function n3(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?ju(t,r.value,null,o,e):ju(t,r.textContent,r.innerHTML,o,e)},50)}function ju(t,e,n,r,o){let i=OT(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",a=>a(t,o,i||ae.empty)))return!0;if(!i)return!1;let s=t3(i),l=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(i);return t.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function WT(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}rr.paste=(t,e)=>{let n=e;if(t.composing&&!ki)return;let r=Vu?null:n.clipboardData,o=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&ju(t,WT(r),r.getData("text/html"),o,n)?n.preventDefault():n3(t,n)};class VT{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const r3=ao?"altKey":"ctrlKey";function jT(t,e){let n=t.someProp("dragCopies",r=>!r(e));return n??!e[r3]}nr.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o=t.state.selection,i=o.empty?null:t.posAtCoords(Kp(n)),s;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof _e?o.to-1:o.to))){if(r&&r.mightDrag)s=_e.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(s=_e.create(t.state.doc,d.posBefore))}}let l=(s||t.state.selection).content(),{dom:a,text:u,slice:c}=H1(t,l);(!n.dataTransfer.files.length||!Hn||ZC>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Vu?"Text":"text/html",a.innerHTML),n.dataTransfer.effectAllowed="copyMove",Vu||n.dataTransfer.setData("text/plain",u),t.dragging=new VT(c,jT(t,n),s)},nr.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},rr.dragover=rr.dragenter=(t,e)=>e.preventDefault(),rr.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let o=t.posAtCoords(Kp(n));if(!o)return;let i=t.state.doc.resolve(o.pos),s=r&&r.slice;s?t.someProp("transformPasted",f=>{s=f(s,t)}):s=OT(t,WT(n.dataTransfer),Vu?null:n.dataTransfer.getData("text/html"),!1,i);let l=!!(r&&jT(t,n));if(t.someProp("handleDrop",f=>f(t,n,s||ae.empty,l))){n.preventDefault();return}if(!s)return;n.preventDefault();let a=s?mP(t.state.doc,i.pos,s):i.pos;a==null&&(a=i.pos);let u=t.state.tr;if(l){let{node:f}=r;f?f.replace(u):u.deleteSelection()}let c=u.mapping.map(a),d=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,h=u.doc;if(d?u.replaceRangeWith(c,c,s.content.firstChild):u.replaceRange(c,c,s),u.doc.eq(h))return;let p=u.doc.resolve(c);if(d&&_e.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new _e(p));else{let f=u.mapping.map(a);u.mapping.maps[u.mapping.maps.length-1].forEach((g,m,v,y)=>f=y),u.setSelection(z1(t,p,u.doc.resolve(f)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))},nr.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Si(t)},20))},nr.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},nr.beforeinput=(t,e)=>{if(Hn&&ki&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,Ea(8,"Backspace")))))return;let{$cursor:o}=t.state.selection;o&&o.pos>0&&t.dispatch(t.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let t in rr)nr[t]=rr[t];function Gu(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class Xp{constructor(e,n){this.toDOM=e,this.spec=n||Aa,this.side=this.spec.side||0}map(e,n,r,o){let{pos:i,deleted:s}=e.mapResult(n.from+o,this.side<0?-1:1);return s?null:new mt(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Xp&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Gu(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class vs{constructor(e,n){this.attrs=e,this.spec=n||Aa}map(e,n,r,o){let i=e.map(n.from+o,this.spec.inclusiveStart?-1:1)-r,s=e.map(n.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=s?null:new mt(i,s,this)}valid(e,n){return n.from=e&&(!i||i(l.spec))&&r.push(l.copy(l.from+o,l.to+o))}for(let s=0;se){let l=this.children[s]+1;this.children[s+2].findInner(e-l,n-l,r,o+l,i)}}map(e,n,r){return this==Un||e.maps.length==0?this:this.mapInner(e,n,0,0,r||Aa)}mapInner(e,n,r,o,i){let s;for(let l=0;l{let u=a+r,c;if(c=KT(n,l,u)){for(o||(o=this.children.slice());il&&d.to=e){this.children[l]==e&&(r=this.children[l+2]);break}let i=e+1,s=i+n.content.size;for(let l=0;li&&a.type instanceof vs){let u=Math.max(i,a.from)-i,c=Math.min(s,a.to)-i;uo.map(e,n,Aa));return ys.from(r)}forChild(e,n){if(n.isLeaf)return Ue.empty;let r=[];for(let o=0;on instanceof Ue)?e:e.reduce((n,r)=>n.concat(r instanceof Ue?r:r.members),[]))}}forEachSet(e){for(let n=0;n{let m=g-f-(p-h);for(let v=0;vy+c-d)continue;let b=l[v]+c-d;p>=b?l[v+1]=h<=b?-2:-1:h>=c&&m&&(l[v]+=m,l[v+1]+=m)}d+=m}),c=n.maps[u].map(c,-1)}let a=!1;for(let u=0;u=r.content.size){a=!0;continue}let h=n.map(t[u+1]+i,-1),p=h-o,{index:f,offset:g}=r.content.findIndex(d),m=r.maybeChild(f);if(m&&g==d&&g+m.nodeSize==p){let v=l[u+2].mapInner(n,m,c+1,t[u]+i+1,s);v!=Un?(l[u]=d,l[u+1]=p,l[u+2]=v):(l[u+1]=-2,a=!0)}else a=!0}if(a){let u=i3(l,t,e,n,o,i,s),c=qp(u,r,0,s);e=c.local;for(let d=0;dn&&s.to{let u=KT(t,l,a+n);if(u){i=!0;let c=qp(u,l,n+a+1,r);c!=Un&&o.push(a,a+l.nodeSize,c)}});let s=GT(i?YT(t):t,-n).sort(_a);for(let l=0;l0;)e++;t.splice(e,0,n)}function q1(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Un&&e.push(r)}),t.cursorWrapper&&e.push(Ue.create(t.state.doc,[t.cursorWrapper.deco])),ys.from(e)}const s3={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},a3=yr&&hs<=11;class l3{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class c3{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new l3,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;oo.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),a3&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,s3)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(ET(this.view)){if(this.suppressingSelectionUpdates)return Si(this.view);if(yr&&hs<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&ka(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let i=e.focusNode;i;i=Ul(i))n.add(i);for(let i=e.anchorNode;i;i=Ul(i))if(n.has(i)){r=i;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&ET(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,l=!1,a=[];if(e.editable)for(let c=0;cd.nodeName=="BR");if(c.length==2){let[d,h]=c;d.parentNode&&d.parentNode.parentNode==h.parentNode?h.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let h of c){let p=h.parentNode;p&&p.nodeName=="LI"&&(!d||h3(e,d)!=p)&&h.remove()}}}let u=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)-1||o)&&(i>-1&&(e.docView.markDirty(i,s),u3(e)),this.handleDOMChange(i,s,l,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||Si(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let c=0;co;m--){let v=r.childNodes[m-1],y=v.pmViewDesc;if(v.nodeName=="BR"&&!y){i=m;break}if(!y||y.size)break}let d=t.state.doc,h=t.someProp("domParser")||ya.fromSchema(t.state.schema),p=d.resolve(s),f=null,g=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:i,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:f3,context:p});if(u&&u[0].pos!=null){let m=u[0].pos,v=u[1]&&u[1].pos;v==null&&(v=m),f={anchor:m+s,head:v+s}}return{doc:g,sel:f,from:s,to:l}}function f3(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(tr&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||tr&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const g3=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function m3(t,e,n,r,o){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let T=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,C=D1(t,T);if(C&&!t.state.selection.eq(C)){if(Hn&&ki&&t.input.lastKeyCode===13&&Date.now()-100R(t,Ea(13,"Enter"))))return;let O=t.state.tr.setSelection(C);T=="pointer"?O.setMeta("pointer",!0):T=="key"&&O.scrollIntoView(),i&&O.setMeta("composition",i),t.dispatch(O)}return}let s=t.state.doc.resolve(e),l=s.sharedDepth(n);e=s.before(l+1),n=t.state.doc.resolve(n).after(l+1);let a=t.state.selection,u=p3(t,e,n),c=t.state.doc,d=c.slice(u.from,u.to),h,p;t.input.lastKeyCode===8&&Date.now()-100Date.now()-225||ki)&&o.some(T=>T.nodeType==1&&!g3.test(T.nodeName))&&(!f||f.endA>=f.endB)&&t.someProp("handleKeyDown",T=>T(t,Ea(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!f)if(r&&a instanceof Oe&&!a.empty&&a.$head.sameParent(a.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))f={start:a.from,endA:a.to,endB:a.to};else{if(u.sel){let T=QT(t,t.state.doc,u.sel);if(T&&!T.eq(t.state.selection)){let C=t.state.tr.setSelection(T);i&&C.setMeta("composition",i),t.dispatch(C)}}return}t.state.selection.fromt.state.selection.from&&f.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?f.start=t.state.selection.from:f.endA=t.state.selection.to-2&&t.state.selection.to<=u.to&&(f.endB+=t.state.selection.to-f.endA,f.endA=t.state.selection.to)),yr&&hs<=11&&f.endB==f.start+1&&f.endA==f.start&&f.start>u.from&&u.doc.textBetween(f.start-u.from-1,f.start-u.from+1)=="  "&&(f.start--,f.endA--,f.endB--);let g=u.doc.resolveNoCache(f.start-u.from),m=u.doc.resolveNoCache(f.endB-u.from),v=c.resolve(f.start),y=g.sameParent(m)&&g.parent.inlineContent&&v.end()>=f.endA,b;if((Wl&&t.input.lastIOSEnter>Date.now()-225&&(!y||o.some(T=>T.nodeName=="DIV"||T.nodeName=="P"))||!y&&g.posg.pos)&&t.someProp("handleKeyDown",T=>T(t,Ea(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>f.start&&y3(c,f.start,f.endA,g,m)&&t.someProp("handleKeyDown",T=>T(t,Ea(8,"Backspace")))){ki&&Hn&&t.domObserver.suppressSelectionUpdates();return}Hn&&f.endB==f.start&&(t.input.lastChromeDelete=Date.now()),ki&&!y&&g.start()!=m.start()&&m.parentOffset==0&&g.depth==m.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==f.endA&&(f.endB-=2,m=u.doc.resolveNoCache(f.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(T){return T(t,Ea(13,"Enter"))})},20));let x=f.start,k=f.endA,w=T=>{let C=T||t.state.tr.replace(x,k,u.doc.slice(f.start-u.from,f.endB-u.from));if(u.sel){let O=QT(t,C.doc,u.sel);O&&!(Hn&&t.composing&&O.empty&&(f.start!=f.endB||t.input.lastChromeDeleteSi(t),20));let T=w(t.state.tr.delete(x,k)),C=c.resolve(f.start).marksAcross(c.resolve(f.endA));C&&T.ensureMarks(C),t.dispatch(T)}else if(f.endA==f.endB&&(S=v3(g.parent.content.cut(g.parentOffset,m.parentOffset),v.parent.content.cut(v.parentOffset,f.endA-v.start())))){let T=w(t.state.tr);S.type=="add"?T.addMark(x,k,S.mark):T.removeMark(x,k,S.mark),t.dispatch(T)}else if(g.parent.child(g.index()).isText&&g.index()==m.index()-(m.textOffset?0:1)){let T=g.parent.textBetween(g.parentOffset,m.parentOffset),C=()=>w(t.state.tr.insertText(T,x,k));t.someProp("handleTextInput",O=>O(t,x,k,T,C))||t.dispatch(C())}}else t.dispatch(w())}function QT(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:z1(t,e.resolve(n.anchor),e.resolve(n.head))}function v3(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,o=n,i=r,s,l,a;for(let c=0;cc.mark(l.addToSet(c.marks));else if(o.length==0&&i.length==1)l=i[0],s="remove",a=c=>c.mark(l.removeFromSet(c.marks));else return null;let u=[];for(let c=0;cn||Z1(s,!0,!1)0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,o++,e=!1;if(n){let i=t.node(r).maybeChild(t.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function b3(t,e,n,r,o){let i=t.findDiffStart(e,n);if(i==null)return null;let{a:s,b:l}=t.findDiffEnd(e,n+t.size,n+e.size);if(o=="end"){let a=Math.max(0,i-Math.min(s,l));r-=s+a-i}if(s=s?i-r:0;i-=a,i&&i=l?i-r:0;i-=a,i&&i=56320&&e<=57343&&n>=55296&&n<=56319}class tA{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new z5,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(sA),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=oA(this),rA(this),this.nodeViews=iA(this),this.docView=dT(this.state.doc,nA(this),q1(this),this.dom,this),this.domObserver=new c3(this,(r,o,i,s)=>m3(this,r,o,i,s)),this.domObserver.start(),F5(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&V1(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(sA),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let o=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(UT(this),s=!0),this.state=e;let l=o.plugins!=e.plugins||this._props.plugins!=n.plugins;if(l||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=iA(this);w3(p,this.nodeViews)&&(this.nodeViews=p,i=!0)}(l||n.handleDOMEvents!=this._props.handleDOMEvents)&&V1(this),this.editable=oA(this),rA(this);let a=q1(this),u=nA(this),c=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",d=i||!this.docView.matchesNode(e.doc,u,a);(d||!e.selection.eq(o.selection))&&(s=!0);let h=c=="preserve"&&s&&this.dom.style.overflowAnchor==null&&QP(this);if(s){this.domObserver.stop();let p=d&&(yr||Hn)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&x3(o.selection,e.selection);if(d){let f=Hn?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=J5(this)),(i||!this.docView.update(e.doc,u,a,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=dT(e.doc,u,a,this.dom,this)),f&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&E5(this))?Si(this,p):(wT(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():h&&e5(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof _e){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&JC(this,n.getBoundingClientRect(),e)}else JC(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(i))==r.node&&(o=i)}this.dragging=new VT(e.slice,e.move,o<0?void 0:_e.create(this.state.doc,o))}someProp(e,n){let r=this._props&&this._props[e],o;if(r!=null&&(o=n?n(r):r))return o;for(let s=0;sn.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return s5(this,e)}coordsAtPos(e,n=1){return oT(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let o=this.docView.posFromDOM(e,n,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,n){return d5(this,n||this.state,e)}pasteHTML(e,n){return ju(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return ju(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return H1(this,e)}destroy(){this.docView&&(B5(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],q1(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,UP())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return U5(this,e)}domSelectionRange(){let e=this.domSelection();return e?tr&&this.root.nodeType===11&&KP(this.dom.ownerDocument)==this.dom&&d3(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}tA.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function nA(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[mt.node(0,t.state.doc.content.size,e)]}function rA(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:mt.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function oA(t){return!t.someProp("editable",e=>e(t.state)===!1)}function x3(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function iA(t){let e=Object.create(null);function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=r[o])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function w3(t,e){let n=0,r=0;for(let o in t){if(t[o]!=e[o])return!0;n++}for(let o in e)r++;return n!=r}function sA(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var k3=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};const E3=io(k3);var aA=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Pe=(t,e,n)=>(aA(t,e,"read from private field"),n?n.call(t):e.get(t)),Ci=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},bt=(t,e,n,r)=>(aA(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);function S3(t){return!!(t.prev&&t.next&&t.prev.text.full!==t.next.text.full)}function C3(t){return!!(t.prev&&t.next&&t.prev.range.cursor!==t.next.range.cursor)}function T3(t){return!!(!t.prev&&t.next)}function A3(t){return!!(t.prev&&!t.next)}function _3(t){return!!(t.prev&&t.next&&t.prev.range.from!==t.next.range.from)}function R3(t){return t==="invalid-exit-split"}var M3=["jump-backward-exit","jump-forward-exit"],O3=["jump-backward-change","jump-forward-change"];function I3(t){var e,n;return Qn(M3,(e=t.exit)==null?void 0:e.exitReason)||Qn(O3,(n=t.change)==null?void 0:n.changeReason)}function lA(t){return!!(t&&t.query.full.length>=t.suggester.matchOffset)}function cA(t){return Tn(t)&&t instanceof Oe}function br(t){const{match:e,changeReason:n,exitReason:r}=t;return{...e,changeReason:n,exitReason:r}}function L3(t,e){const{invalidPrefixCharacters:n,validPrefixCharacters:r}=e;return n?!new RegExp(Q1(n)).test(t):new RegExp(Q1(r)).test(t)}function N3(t){const{text:e,regexp:n,$pos:r,suggester:o}=t,i=r.start();let s;return Ll(e,n).forEach(l=>{const a=l.input.slice(Math.max(0,l.index-1),l.index);if(L3(a,o)){const u=l.index+i,c=l[0],d=l[1];if(!ke(c)||!ke(d))return;const h=u+c.length,p=Math.min(h,r.pos),f=p-u;u=r.pos&&(s={range:{from:u,to:h,cursor:p},match:l,query:{partial:c.slice(d.length,f),full:c.slice(d.length)},text:{partial:c.slice(0,f),full:c},textAfter:r.doc.textBetween(h,r.end(),ns,ns),textBefore:r.doc.textBetween(i,u,ns,ns),suggester:o})}}),s}function uA(t){const{$pos:e,suggester:n}=t,{char:r,name:o,startOfLine:i,supportedCharacters:s,matchOffset:l,multiline:a,caseInsensitive:u,unicode:c}=n,d=W3({char:r,matchOffset:l,startOfLine:i,supportedCharacters:s,multiline:a,caseInsensitive:u,unicode:c}),h=e.doc.textBetween(e.before(),e.end(),ns,ns);return N3({suggester:n,text:h,regexp:d,$pos:e,char:r,name:o})}function dA(t){const{state:e,match:n}=t;try{return uA({$pos:e.doc.resolve(n.range.cursor),suggester:n.suggester})}catch{return}}function hA(t){const{prev:e,next:n,state:r}=t;return!n&&e.range.from>=r.doc.nodeSize?{exit:br({match:e,exitReason:"delete"})}:!n||!e.query.partial?{exit:br({match:e,exitReason:"invalid-exit-split"})}:e.range.to===n.range.cursor?{exit:br({match:n,exitReason:"exit-end"})}:e.query.partial?{exit:br({match:n,exitReason:"exit-split"})}:{}}function $3(t){const{prev:e,next:n,state:r}=t,o=ye(),i=dA({state:r,match:e}),{exit:s}=i&&i.query.full!==e.query.full?hA({prev:e,next:i,state:r}):o;return e.range.from=e.range.to)?{exit:br({match:e,exitReason:"selection-outside"})}:r.pos>e.range.to?{exit:br({match:e,exitReason:"move-end"})}:r.pos<=e.range.from?{exit:br({match:e,exitReason:"move-start"})}:{}}function P3(t){const{prev:e,next:n,state:r,$pos:o}=t,i=ye();if(!e&&!n)return i;const s={prev:e,next:n};return _3(s)?$3({prev:s.prev,next:s.next,state:r}):T3(s)?{change:br({match:s.next,changeReason:"start"})}:A3(s)?D3({$pos:o,match:s.prev,state:r}):S3(s)?{change:br({match:s.next,changeReason:"change-character"})}:C3(s)?{change:br({match:s.next,changeReason:r.selection.empty?"move":"selection-inside"})}:i}function pA(t,e){for(let n=t.depth;n>0;n--){const r=t.node(n);if(e.includes(r.type.name))return!0}return!1}function J1(t,e){const{$from:n,$to:r}=t;return fA(t,e)?!0:s1(n.pos,r.pos).some(o=>z3(n.doc.resolve(o),e))}function fA(t,e){const{$from:n,$to:r}=t,o=new Set((n.marksAcross(r)??[]).map(i=>i.type.name));return e.some(i=>o.has(i))}function z3(t,e){const n=new Set(t.marks().map(r=>r.type.name));return e.some(r=>n.has(r))}function F3(t,e){const{$cursor:n}=e,{validMarks:r,validNodes:o,invalidMarks:i,invalidNodes:s}=t;return!r&&!o&&ss(i)&&ss(s)?!0:!(r&&!fA(e,r)||o&&!pA(n,o)||!r&&J1(e,i)||!o&&pA(n,s))}function gA(t){const{suggesters:e,$pos:n,selectionEmpty:r}=t;for(const o of e)if(!(o.emptySelectionsOnly&&!r))try{const i=uA({suggester:o,$pos:n});if(!i)continue;const s={$from:n.doc.resolve(i.range.from),$to:n.doc.resolve(i.range.to),$cursor:n};if(F3(o,s)&&o.isValidPosition(s,i))return i}catch{}}function Q1(t){return v4(t)?t.source:t}function B3(t){return t?"^":""}function H3(t,e){return`(?:${Q1(t)}){${e},}`}function U3(t){return ke(t)?new RegExp(E3(t)):t}function W3(t){const{char:e,matchOffset:n,startOfLine:r,supportedCharacters:o,captureChar:i=!0,caseInsensitive:s=!1,multiline:l=!1,unicode:a=!1}=t,u=`g${l?"m":""}${s?"i":""}${a?"u":""}`;let c=U3(e).source;return i&&(c=`(${c})`),new RegExp(`${B3(r)}${c}${H3(o,n)}`,u)}var V3={appendTransaction:!1,priority:50,ignoredTag:"span",matchOffset:0,disableDecorations:!1,startOfLine:!1,suggestClassName:"suggest",suggestTag:"span",supportedCharacters:/\w+/,validPrefixCharacters:/^[\s\0]?$/,invalidPrefixCharacters:null,ignoredClassName:null,invalidMarks:[],invalidNodes:[],validMarks:null,validNodes:null,isValidPosition:()=>!0,checkNextValidSelection:null,emptySelectionsOnly:!1,caseInsensitive:!1,multiline:!1,unicode:!1,captureChar:!0},mA="__ignore_prosemirror_suggest_update__",Zp,Ku,fn,bs,Yl,Qo,sn,xs,Xl,vA=class{constructor(t){Ci(this,Zp,!1),Ci(this,Ku,!1),Ci(this,fn,void 0),Ci(this,bs,void 0),Ci(this,Yl,void 0),Ci(this,Qo,ye()),Ci(this,sn,Ue.empty),Ci(this,xs,!1),Ci(this,Xl,!1),this.setMarkRemoved=()=>{bt(this,xs,!0)},this.findNextTextSelection=n=>{const r=n.$from.doc,o=Math.min(r.nodeSize-2,n.to+1),i=r.resolve(o),s=He.findFrom(i,1,!0);if(cA(s))return s},this.ignoreNextExit=()=>{bt(this,Ku,!0)},this.addIgnored=({from:n,name:r,specific:o=!1})=>{const i=Pe(this,fn).find(c=>c.name===r);if(!i)throw new Error(`No suggester exists for the name provided: ${r}`);const s=ke(i.char)?i.char.length:1,l=n+s,a=i.ignoredClassName?{class:i.ignoredClassName}:{},u=mt.inline(n,l,{nodeName:i.ignoredTag,...a},{name:r,specific:o,char:i.char});bt(this,sn,Pe(this,sn).add(this.view.state.doc,[u]))},this.removeIgnored=({from:n,name:r})=>{const o=Pe(this,fn).find(l=>l.name===r);if(!o)throw new Error(`No suggester exists for the name provided: ${r}`);const i=ke(o.char)?o.char.length:1,s=Pe(this,sn).find(n,n+i)[0];!s||s.spec.name!==r||bt(this,sn,Pe(this,sn).remove([s]))},this.clearIgnored=n=>{if(!n){bt(this,sn,Ue.empty);return}const o=Pe(this,sn).find().filter(({spec:i})=>i.name===n);bt(this,sn,Pe(this,sn).remove(o))},this.findMatchAtPosition=(n,r)=>{const o=r?Pe(this,fn).filter(i=>i.name===r):Pe(this,fn);return gA({suggesters:o,$pos:n,docChanged:!1,selectionEmpty:!0})},this.setLastChangeFromAppend=()=>{bt(this,Xl,!0)};const e=yA();bt(this,fn,t.map(e)),bt(this,fn,as(Pe(this,fn),(n,r)=>r.priority-n.priority))}static create(t){return new vA(t)}get decorationSet(){return Pe(this,sn)}get removed(){return Pe(this,xs)}get match(){return Pe(this,bs)?Pe(this,bs):Pe(this,Yl)&&Pe(this,Qo).exit?Pe(this,Yl):void 0}init(t){return this.view=t,this}createProps(t){const{name:e,char:n}=t.suggester;return{view:this.view,addIgnored:this.addIgnored,clearIgnored:this.clearIgnored,ignoreNextExit:this.ignoreNextExit,setMarkRemoved:this.setMarkRemoved,name:e,char:n,...t}}shouldRunExit(){return Pe(this,Ku)?(bt(this,Ku,!1),!1):!0}updateWithNextSelection(t){var e,n,r;const o=this.findNextTextSelection(t.selection);if(o)for(const i of Pe(this,fn)){const s=(e=Pe(this,Qo).change)==null?void 0:e.suggester.name,l=(n=Pe(this,Qo).exit)==null?void 0:n.suggester.name;(r=i.checkNextValidSelection)==null||r.call(i,o.$from,t,{change:s,exit:l})}}changeHandler(t,e){const{change:n,exit:r}=Pe(this,Qo),o=this.match;if(!n&&!r||!lA(o))return;const i=e===(r==null?void 0:r.suggester.appendTransaction)&&this.shouldRunExit(),s=e===(n==null?void 0:n.suggester.appendTransaction);if(!(!i&&!s)){if(n&&r&&I3({change:n,exit:r})){const l=this.createProps(r),a=this.createProps(n),u=r.range.from{const l=ke(s.char)?s.char.length:1;return i-o!==l});bt(this,sn,e.remove(r))}shouldIgnoreMatch({range:t,suggester:{name:e}}){return Pe(this,sn).find().some(({spec:o,from:i})=>i!==t.from?!1:o.specific?o.name===e:!0)}resetState(){bt(this,Qo,ye()),bt(this,bs,void 0),bt(this,xs,!1),bt(this,Xl,!1)}updateReasons(t){const{$pos:e,state:n}=t,r=Pe(this,Zp),o=Pe(this,fn),i=n.selection.empty,s=cA(n.selection)?gA({suggesters:o,$pos:e,docChanged:r,selectionEmpty:i}):void 0;bt(this,bs,s&&this.shouldIgnoreMatch(s)?void 0:s),bt(this,Qo,P3({next:Pe(this,bs),prev:Pe(this,Yl),state:n,$pos:e}))}addSuggester(t){const e=Pe(this,fn).find(r=>r.name===t.name),n=yA();if(e)bt(this,fn,Pe(this,fn).map(r=>r===e?n(t):r));else{const r=[...Pe(this,fn),n(t)];bt(this,fn,as(r,(o,i)=>i.priority-o.priority))}return()=>this.removeSuggester(t.name)}removeSuggester(t){const e=ke(t)?t:t.name;bt(this,fn,Pe(this,fn).filter(n=>n.name!==e)),this.clearIgnored(e)}toJSON(){return this.match}apply(t){const{exit:e,change:n}=Pe(this,Qo);if(Pe(this,Xl)&&(bt(this,Xl,!1),!(e!=null&&e.suggester.appendTransaction)&&!(n!=null&&n.suggester.appendTransaction)))return this;const{tr:r,state:o}=t,i=r.docChanged||r.selectionSet;return r.getMeta(mA)||!i&&!Pe(this,xs)?this:(bt(this,Zp,r.docChanged),this.mapIgnoredDecorations(r),e&&this.resetState(),bt(this,Yl,Pe(this,bs)),this.updateReasons({$pos:r.selection.$from,state:o}),this)}createDecorations(t){const e=this.match;if(!lA(e))return Pe(this,sn);const{disableDecorations:n}=e.suggester;if(Xe(n)?n(t,e):n)return Pe(this,sn);const{range:o,suggester:i}=e,{name:s,suggestTag:l,suggestClassName:a}=i,{from:u,to:c}=o;return this.shouldIgnoreMatch(e)?Pe(this,sn):Pe(this,sn).add(t.doc,[mt.inline(u,c,{nodeName:l,class:s?`${a} suggest-${s}`:a},{name:s})])}},j3=vA;Zp=new WeakMap,Ku=new WeakMap,fn=new WeakMap,bs=new WeakMap,Yl=new WeakMap,Qo=new WeakMap,sn=new WeakMap,xs=new WeakMap,Xl=new WeakMap;function yA(){const t=new Set;return e=>{if(t.has(e.name))throw new Error(`A suggester already exists with the name '${e.name}'. The name provided must be unique.`);const n={...V3,...e};return t.add(e.name),n}}var bA=new wa("suggest");function e0(t){return bA.getState(t)}function xA(t,e){return e0(t).addSuggester(e)}function wA(t){t.setMeta(mA,!0)}function G3(t,e){return e0(t).removeSuggester(e)}function K3(...t){const e=j3.create(t);return new qo({key:bA,view:n=>(e.init(n),{update:r=>e.changeHandler(r.state.tr,!1)}),state:{init:()=>e,apply:(n,r,o,i)=>e.apply({tr:n,state:i})},appendTransaction:(n,r,o)=>{const i=o.tr;return e.updateWithNextSelection(i),e.changeHandler(i,!0),i.docChanged||i.steps.length>0||i.selectionSet||i.storedMarksSet?(e.setLastChangeFromAppend(),i):null},props:{decorations:n=>e.createDecorations(n)}})}function t0(t,e){const n=Object.getPrototypeOf(e);let r=t.selection,o=t.doc,i=t.storedMarks;const s=ye();for(const[l,a]of Object.entries(e))s[l]={value:a};return Object.create(n,{...s,storedMarks:{get(){return i}},selection:{get(){return r}},doc:{get(){return o}},tr:{get(){return r=t.selection,o=t.doc,i=t.storedMarks,t}}})}function Yu(t){return({state:e,dispatch:n,view:r,tr:o})=>t(t0(o,e),n,r)}function kA(t){return e=>{var n;return be(e.dispatch===void 0||e.dispatch===((n=e.view)==null?void 0:n.dispatch),{code:re.NON_CHAINABLE_COMMAND}),t(e)}}function Y3(...t){return({state:e,dispatch:n,view:r,tr:o,...i})=>{for(const s of t)if(s({state:e,dispatch:n,view:r,tr:o,...i}))return!0;return!1}}var xr={get isBrowser(){return!!(typeof window<"u"&&typeof window.document<"u"&&window.navigator&&window.navigator.userAgent)},get isJSDOM(){return xr.isBrowser&&window.navigator.userAgent.includes("jsdom")},get isNode(){return typeof process<"u"&&process.versions!=null&&process.versions.node!=null},get isIos(){return xr.isBrowser&&/iPod|iPhone|iPad/.test(navigator.platform)},get isMac(){return xr.isBrowser&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)},get isApple(){return xr.isNode?process.platform==="darwin":xr.isBrowser?/Mac|iPod|iPhone|iPad/.test(window.navigator.platform):!1},get isDevelopment(){return!1},get isTest(){return!1},get isProduction(){return!0}};function ei(t,e){var n;const r=kz(t);return((n=r==null?void 0:r.getComputedStyle(t))==null?void 0:n.getPropertyValue(e))??""}function Wn(t,e){return Object.assign(t.style,e)}function n0(t){return Tn(t)&&Dr(t.nodeType)&&ke(t.nodeName)}function Ft(t){return n0(t)&&t.nodeType===1}function Jp(t){const{types:e,node:n}=t;if(!n)return!1;const r=o=>o===n.type||o===n.type.name;return Ot(e)?e.some(r):r(e)}function X3(t,e){const{tr:n}=e;return t.forEach(r=>{r.steps.forEach(o=>{n.step(o)})}),n}function q3({pos:t,tr:e}){const n=e.doc.nodeAt(t);return n&&e.delete(t,t+n.nodeSize),e}function Z3({pos:t,tr:e,content:n}){const r=e.doc.nodeAt(t);return r&&e.replaceWith(t,t+r.nodeSize,n),e}function Xu(t){const{predicate:e,selection:n}=t,r=CA(n)?n.selection.$from:i0(n)?n.$from:n;for(let o=r.depth;o>0;o--){const i=r.node(o),s=o>0?r.before(o):0,l=r.start(o),a=s+i.nodeSize;if(e(i,s))return{pos:s,depth:o,node:i,start:l,end:a}}}function J3(t){const{depth:e}=t,n=e>0?t.before(e):0,r=t.node(e),o=t.start(e),i=n+r.nodeSize;return{pos:n,start:o,node:r,end:i,depth:e}}function Q3(t){const e=Xu({predicate:()=>!0,selection:t});return be(e,{message:"No parent node found for the selection provided."}),e}function ti(t){const{types:e,selection:n}=t;return Xu({predicate:r=>Jp({types:e,node:r}),selection:n})}function ez(t){const{types:e,selection:n}=t;if(!(!Ju(n)||!Jp({types:e,node:n.node})))return{pos:n.$from.pos,depth:n.$from.depth,start:n.$from.start(),end:n.$from.pos+n.node.nodeSize,node:n.node}}function r0(t){return i0(t)?t.empty:t.selection.empty}function tz(t){return t.docChanged||t.selectionSet}function EA(t){return!!qu(t)}function qu(t){const{state:e,type:n,attrs:r}=t,{selection:o,doc:i}=e,s=ke(n)?i.type.schema.nodes[n]:n;be(s,{code:re.SCHEMA,message:`No node exists for ${n}`});const l=ez({selection:o,types:n})??Xu({predicate:a=>a.type===s,selection:o});return!r||Au(r)||!l||l.node.hasMarkup(s,{...l.node.attrs,...r})?l:void 0}function Qp(...t){return e=>{if(!NS(t))return!1;const[n,...r]=t;let o=!1;const i=(...a)=>()=>{if(!NS(a))return!1;o=!0;const[,...u]=a;return Qp(...a)({...e,next:i(...u)})},s=i(...r),l=n({...e,next:s});return o||l?l:s()}}function nz(t,e){const n=new Map,r=ye();for(const o of t)for(const[i,s]of nn(o)){const a=[...n.get(i)??[],s],u=Qp(...a);n.set(i,a),r[i]=e(u)}return r}function rz(t){return nz(t,e=>(n,r,o)=>e({state:n,dispatch:r,view:o,tr:n.tr,next:()=>!1}))}function o0(t,e){const n=t.attrs??{};return Object.entries(e).every(([r,o])=>n[r]===o)}function oz(t){return _A(t,[xi,Gt,pn,Ro])}function ql(t){return Tn(t)}function Zl(t,e){return Ot(e)?Qn(e,t[bi]):e===t[bi]}function iz(t){return Tn(t)&&t instanceof c1}function sz(t,e){return ke(t)?_t(e.nodes,t):t}function SA(t){return Tn(t)&&t instanceof Ru}function az(t,e){return ke(t)?_t(e.marks,t):t}function Zu(t){return Tn(t)&&t instanceof ls}function lz(t){return Tn(t)&&t instanceof J}function cz(t){return Tn(t)&&t instanceof Ge}function CA(t){return Tn(t)&&t instanceof xa}function ws(t){return Tn(t)&&t instanceof Oe}function uz(t){return Tn(t)&&t instanceof er}function i0(t){return Tn(t)&&t instanceof He}function dz(t){return Tn(t)&&t instanceof Dl}function TA(t){const{trState:e,from:n,to:r,type:o,attrs:i={}}=t,{doc:s}=e,l=az(o,s.type.schema);if(Object.keys(i).length===0)return s.rangeHasMark(n,r,l);let a=!1;return r>n&&s.nodesBetween(n,r,u=>a?!1:(a=(u.marks??[]).some(d=>d.type!==l?!1:o0(d,i)),!a)),a}function Ju(t){return Tn(t)&&t instanceof _e}function ef(t){const{trState:e,type:n,attrs:r={},from:o,to:i}=t,{selection:s,doc:l,storedMarks:a}=e,u=ke(n)?l.type.schema.marks[n]:n;if(be(u,{code:re.SCHEMA,message:`Mark type: ${n} does not exist on the current schema.`}),o&&i)try{return Math.max(o,i)d.type!==n?!1:o0(d,r??{})):TA({...t,from:s.from,to:s.to})}function s0(t,e={}){const n=hz(t.type.schema);if(!n)return!1;const{ignoreAttributes:r,ignoreDocAttributes:o}=e;return r?AA(n,t):o?n.content.eq(t.content):n.eq(t)}function AA(t,e){if(t===e)return!0;const n=t.type===e.type&&Ge.sameSet(t.marks,e.marks);function r(){if(t.content===e.content)return!0;if(t.content.size!==e.content.size)return!1;const o=[],i=[];t.content.forEach(s=>o.push(s)),e.content.forEach(s=>i.push(s));for(const[s,l]of o.entries()){const a=i[s];if(!a||!AA(l,a))return!1}return!0}return n&&r()}function hz(t){var e;return((e=t.nodes.doc)==null?void 0:e.createAndFill())??void 0}function tf(t){for(const e of Object.values(t.nodes))if(e.name!=="doc"&&(e.isBlock||e.isTextblock))return e;be(!1,{code:re.SCHEMA,message:"No default block node found for the provided schema."})}function pz(t){return t.type===tf(t.type.schema)}function nf(t){return!!t&&t.type.isBlock&&!t.textContent&&!t.childCount}function Ti(t,e,n){const r=t.parent.childAfter(t.parentOffset);if(!r.node)return;const o=ke(e)?e:e.name,i=r.node.marks.find(({type:d})=>d.name===o);let s=t.index(),l=t.start()+r.offset,a=s+1,u=l+r.node.nodeSize;if(!i)return n&&u0&&i.isInSet(t.parent.child(s-1).marks);)s-=1,l-=t.parent.child(s).nodeSize;for(;at instanceof n)}function X3(t){return r1(t,({from:n,to:r,prevFrom:o,prevTo:i})=>`${n}_${r}_${o}_${i}`).filter((n,r,o)=>!o.some((i,s)=>r===s?!1:n.prevFrom>=i.prevFrom&&n.prevTo<=i.prevTo&&n.from>=i.from&&n.to<=i.to))}function gA(t,e=[]){const n=[],{steps:r,mapping:o}=t,i=o.invert();r.forEach((l,a)=>{if(!fA(l,e))return;const u=[],c=l.getMap(),d=o.slice(a);if(c.ranges.length===0&&F3(l)){const{from:h,to:p}=l;u.push({from:h,to:p})}else c.forEach((h,p)=>{u.push({from:h,to:p})});u.forEach(h=>{const p=d.map(h.from,-1),f=d.map(h.to);n.push({from:p,to:f,prevFrom:i.map(p,-1),prevTo:i.map(f)})})});const s=ss(n,(l,a)=>l.from-a.from);return X3(s)}function q3(t,e){const n=[],r=gA(t,e);for(const o of r)try{const i=t.doc.resolve(o.from),s=t.doc.resolve(o.to),l=i.blockRange(s);l&&n.push(l)}catch{}return n}function Z3(t){var e;return((e=t.content.firstChild)==null?void 0:e.textContent)??""}function J3(t,e){if(!xs(t.selection))return;let{from:n,to:r}=t.selection;const o=(s,l)=>Z3(Me.between(t.doc.resolve(s),t.doc.resolve(l)).content());for(let s=o(n-1,n);s&&!e.test(s);n--,s=o(n-1,n));for(let s=o(r,r+1);s&&!e.test(s);r++,s=o(r,r+1));if(n===r)return;const i=t.doc.textBetween(n,r,qv,` +`);return{from:l,to:u,text:c,mark:i}}function _A(t,e){return e.length===0||e.some(n=>t instanceof n)}function fz(t){return i1(t,({from:n,to:r,prevFrom:o,prevTo:i})=>`${n}_${r}_${o}_${i}`).filter((n,r,o)=>!o.some((i,s)=>r===s?!1:n.prevFrom>=i.prevFrom&&n.prevTo<=i.prevTo&&n.from>=i.from&&n.to<=i.to))}function RA(t,e=[]){const n=[],{steps:r,mapping:o}=t,i=o.invert();r.forEach((l,a)=>{if(!_A(l,e))return;const u=[],c=l.getMap(),d=o.slice(a);if(c.ranges.length===0&&oz(l)){const{from:h,to:p}=l;u.push({from:h,to:p})}else c.forEach((h,p)=>{u.push({from:h,to:p})});u.forEach(h=>{const p=d.map(h.from,-1),f=d.map(h.to);n.push({from:p,to:f,prevFrom:i.map(p,-1),prevTo:i.map(f)})})});const s=as(n,(l,a)=>l.from-a.from);return fz(s)}function gz(t,e){const n=[],r=RA(t,e);for(const o of r)try{const i=t.doc.resolve(o.from),s=t.doc.resolve(o.to),l=i.blockRange(s);l&&n.push(l)}catch{}return n}function mz(t){var e;return((e=t.content.firstChild)==null?void 0:e.textContent)??""}function vz(t,e){if(!ws(t.selection))return;let{from:n,to:r}=t.selection;const o=(s,l)=>mz(Oe.between(t.doc.resolve(s),t.doc.resolve(l)).content());for(let s=o(n-1,n);s&&!e.test(s);n--,s=o(n-1,n));for(let s=o(r,r+1);s&&!e.test(s);r++,s=o(r,r+1));if(n===r)return;const i=t.doc.textBetween(n,r,Jv,` -`);return{from:n,to:r,text:i}}function mA(t){return J3(t,/\W/)}function Ql(t,e=0){const n=Ot(t)?t[e]:t;return e1(ke(n),`No match string found for match ${t}`),n??""}function Q3(t){return xs(t)?t.$cursor:void 0}function ez(t,e){return Xu(t)?e?t.type===e.nodes.doc:t.type.name==="doc":!1}function tz(t){return Tn(t)&&$r(t.anchor)&&$r(t.head)}function or(t,e){const n=e.nodeSize-2,r=0;let o;const i=a=>l4({min:r,max:n,value:a});if(t0(t))return t;if(t==="all")return new Qn(e);if(t==="start"?o=r:t==="end"?o=n:G3(t)?o=t.pos:o=t,$r(o))return o=i(o),Me.near(e.resolve(o));if(tz(o)){const a=i(o.anchor),u=i(o.head);return Me.between(e.resolve(a),e.resolve(u))}const s=i(o.from),l=i(o.to);return Me.between(e.resolve(s),e.resolve(l))}var nz=3;function vA(t){const{content:e,schema:n,document:r,stringHandler:o,onError:i,attempts:s=0}=t,l=i&&s<=nz||s===0;if(be(l,{code:re.INVALID_CONTENT,message:"The invalid content has been called recursively more than ${MAX_ATTEMPTS} times. The content is invalid and the error handler has not been able to recover properly."}),ke(e))return be(o,{code:re.INVALID_CONTENT,message:`The string '${e}' was added to the editor, but no \`stringHandler\` was added. Please provide a valid string handler which transforms your content to a \`ProsemirrorNode\` to prevent this error.`}),o({document:r,content:e,schema:n});if(dA(e))return e.doc;if(Xu(e))return e;try{return n.nodeFromJSON(e)}catch(a){const u=uz({schema:n,error:a,json:e}),c=i==null?void 0:i(u);return be(c,{code:re.INVALID_CONTENT,message:`An error occurred when processing the content. Please provide an \`onError\` handler to process the invalid content: ${JSON.stringify(u.invalidContent,null,2)}`}),vA({...t,content:c,attempts:s+1})}}function tf(){const t=AC();if(t)return t;throw new Error(`Unable to retrieve the document from the global scope. +`);return{from:n,to:r,text:i}}function MA(t){return vz(t,/\W/)}function Jl(t,e=0){const n=Ot(t)?t[e]:t;return n1(ke(n),`No match string found for match ${t}`),n??""}function yz(t){return ws(t)?t.$cursor:void 0}function bz(t,e){return Zu(t)?e?t.type===e.nodes.doc:t.type.name==="doc":!1}function xz(t){return Tn(t)&&Dr(t.anchor)&&Dr(t.head)}function or(t,e){const n=e.nodeSize-2,r=0;let o;const i=a=>k4({min:r,max:n,value:a});if(i0(t))return t;if(t==="all")return new er(e);if(t==="start"?o=r:t==="end"?o=n:dz(t)?o=t.pos:o=t,Dr(o))return o=i(o),Oe.near(e.resolve(o));if(xz(o)){const a=i(o.anchor),u=i(o.head);return Oe.between(e.resolve(a),e.resolve(u))}const s=i(o.from),l=i(o.to);return Oe.between(e.resolve(s),e.resolve(l))}var wz=3;function OA(t){const{content:e,schema:n,document:r,stringHandler:o,onError:i,attempts:s=0}=t,l=i&&s<=wz||s===0;if(be(l,{code:re.INVALID_CONTENT,message:"The invalid content has been called recursively more than ${MAX_ATTEMPTS} times. The content is invalid and the error handler has not been able to recover properly."}),ke(e))return be(o,{code:re.INVALID_CONTENT,message:`The string '${e}' was added to the editor, but no \`stringHandler\` was added. Please provide a valid string handler which transforms your content to a \`ProsemirrorNode\` to prevent this error.`}),o({document:r,content:e,schema:n});if(CA(e))return e.doc;if(Zu(e))return e;try{return n.nodeFromJSON(e)}catch(a){const u=Rz({schema:n,error:a,json:e}),c=i==null?void 0:i(u);return be(c,{code:re.INVALID_CONTENT,message:`An error occurred when processing the content. Please provide an \`onError\` handler to process the invalid content: ${JSON.stringify(u.invalidContent,null,2)}`}),OA({...t,content:c,attempts:s+1})}}function rf(){const t=PC();if(t)return t;throw new Error(`Unable to retrieve the document from the global scope. It seems that you are running Remirror in a non-browser environment. Remirror need browser APIs to work. If you are using Jest (or other testing frameworks), make sure that you are using the JSDOM environment (https://jestjs.io/docs/29.0/configuration#testenvironment-string). If you are using Next.js (or other server-side rendering frameworks), please use dynamic import with \`ssr: false\` to load the editor component without rendering it on the server (https://nextjs.org/docs/advanced-features/dynamic-import#with-no-ssr). -If you are using Node.js, you can install JSDOM and Remirror will try to use it automatically, or you can create a fake document and pass it to Remirror`)}function yA(t){var e;return(t==null?void 0:t.defaultView)??(typeof window<"u"?window:void 0)??((e=AC())==null?void 0:e.defaultView)}function rz(t){return yA(t==null?void 0:t.ownerDocument)}function oz(t){const e=yA(t)??tf().defaultView;if(e)return e;throw new Error("Unable to retrieve the window from the global scope")}function iz(t,e=tf()){const n=ez(t,t.type.schema)?t.content:J.from(t);return Dr.fromSchema(t.type.schema).serializeFragment(n,{document:e})}function sz(t,e){return new(oz(e)).DOMParser().parseFromString(`${t}`,"text/html").body}function az(t,e=tf()){const n=e.createElement("div");return n.append(iz(t,e)),n.innerHTML}function r0(t){const{content:e,schema:n,document:r,fragment:o=!1,...i}=t,s=sz(e,r),l=va.fromSchema(n);return o?l.parseSlice(s,{...bA,...i}).content:l.parse(s,{...bA,...i})}var bA={preserveWhitespace:!1};function nf(t,e){const n=Cu(e.defaults());return Zv({...t},n)}function lz(t,e){let n="";e&&(n=`${e.trim()}`);const r=vP(t);if(!r)return n;const o=(n.endsWith(";")," ");return`${n}${o}${r}`}var cz={remove(t,e){let n=t;for(const r of e)r.invalidParentNode||(n=d4(r.path,n));return n}};function uz({json:t,schema:e,...n}){const r=new Set(Cu(e.marks)),o=new Set(Cu(e.nodes)),i=xA({json:t,path:[],validNodes:o,validMarks:r});return{json:t,invalidContent:i,transformers:cz,...n}}function xA(t){const{json:e,validMarks:n,validNodes:r,path:o=[]}=t,i={validMarks:n,validNodes:r},s=[],{type:l,marks:a,content:u}=e;let{invalidParentMark:c=!1,invalidParentNode:d=!1}=t;if(a){const h=[];for(const[p,f]of a.entries()){const g=ke(f)?f:f.type;n.has(g)||(h.unshift({name:g,path:[...o,"marks",`${p}`],type:"mark",invalidParentMark:c,invalidParentNode:d}),c=!0)}s.push(...h)}if(r.has(l)||(s.push({name:l,type:"node",path:o,invalidParentMark:c,invalidParentNode:d}),d=!0),u){const h=[];for(const[p,f]of u.entries())h.unshift(...xA({...i,json:f,path:[...o,"content",`${p}`],invalidParentMark:c,invalidParentNode:d}));s.unshift(...h)}return s}function dz(t){return!!(xs(t)&&t.$cursor&&t.$cursor.parentOffset>=t.$cursor.parent.content.size)}function o0(t){return!!(xs(t)&&t.$cursor&&t.$cursor.parentOffset<=0)}function wA(t){const e=He.atStart(t.$anchor.doc);return!!(o0(t)&&e.anchor===t.anchor)}function hz(t){return({dispatch:e,tr:n})=>{const{type:r,attrs:o=ye(),appendText:i,range:s}=t,l=s?Me.between(n.doc.resolve(s.from),n.doc.resolve(s.to)):n.selection,{$from:a,from:u,to:c}=l;let d=a.depth===0?n.doc.type.allowsMarkType(r):!1;return n.doc.nodesBetween(u,c,h=>{if(d)return!1;if(h.inlineContent&&h.type.allowsMarkType(r)){d=!0;return}}),d?(e==null||e(n.addMark(u,c,r.create(o))&&i?n.insertText(i):n),!0):!1}}function pz({tr:t,dispatch:e}){const{$from:n,$to:r}=t.selection,o=n.blockRange(r),i=o&&zl(o);return!$r(i)||!o?!1:(e==null||e(t.lift(o,i).scrollIntoView()),!0)}function kA(t,e={},n){return function(r){const{tr:o,dispatch:i,state:s}=r,l=ke(t)?_t(s.schema.nodes,t):t,{from:a,to:u}=or(n??o.selection,o.doc),c=o.doc.resolve(a),d=o.doc.resolve(u),h=c.blockRange(d),p=h&&g1(h,l,e);return!p||!h?!1:(i==null||i(o.wrap(h,p).scrollIntoView()),!0)}}function EA(t,e={},n){return r=>{const{tr:o,state:i}=r,s=ke(t)?_t(i.schema.nodes,t):t;return Yu({state:o,type:s,attrs:e})?pz(r):kA(t,e,n)(r)}}function Zu(t,e,n,r=!0){return function(o){const{tr:i,dispatch:s,state:l}=o,a=ke(t)?_t(l.schema.nodes,t):t,{from:u,to:c}=or(n??i.selection,i.doc);let d=!1,h;return i.doc.nodesBetween(u,c,(p,f)=>{if(d)return!1;if(!p.isTextblock||p.hasMarkup(a,e))return;if(p.type===a){d=!0,h=p.attrs;return}const g=i.doc.resolve(f),m=g.index();d=g.parent.canReplaceWith(m,m+1,a),d&&(h=g.parent.attrs)}),d?(s==null||s(i.setBlockType(u,c,a,{...r?h:{},...e}).scrollIntoView()),!0):!1}}function i0(t){return e=>{const{tr:n,state:r}=e,{type:o,attrs:i,preserveAttrs:s=!0}=t,l=Yu({state:n,type:o,attrs:i}),a=t.toggleType??Qp(r.schema);if(l)return Zu(a,{...s?l.node.attrs:{},...i})(e);const u=Yu({state:n,type:a,attrs:i});return Zu(o,{...s?u==null?void 0:u.node.attrs:{},...i})(e)}}function fz(t=0){const e=navigator.userAgent.match(/Chrom(e|ium)\/(\d+)\./);return e?Number.parseInt(_t(e,2),10)>=t:!1}function gz(t,e){let{head:n,empty:r,anchor:o}=t;for(const i of e.steps)n=i.getMap().map(n);r?e.setSelection(Me.near(e.doc.resolve(n))):e.setSelection(Me.between(e.doc.resolve(o),e.doc.resolve(n)))}function mz(t){const{attrs:e={},appendText:n="",content:r="",keepSelection:o=!1,range:i}=t;return({state:s,tr:l,dispatch:a})=>{var u;const c=s.schema,d=or(t.selection??i??l.selection,l.doc),h=d.$from.index(),{from:p,to:f,$from:g}=d,m=ke(t.type)?c.nodes[t.type]??c.marks[t.type]:t.type;if(be(ke(t.type)?m:!0,{code:re.SCHEMA,message:`Schema contains no marks or nodes with name ${m}`}),B3(m)){if(!g.parent.canReplaceWith(h,h,m))return!1;l.replaceWith(p,f,m.create(e,r?c.text(r):void 0))}else be(r,{message:"`replaceText` cannot be called without content when using a mark type"}),l.replaceWith(p,f,c.text(r,uA(m)?[m.create(e)]:void 0));return n&&l.insertText(n),o&&gz(s.selection,l),a&&(fz(60)&&((u=document.getSelection())==null||u.empty()),a(l)),!0}}function SA(t,e){const n=t.parent.childAfter(t.parentOffset);if(!n.node)return;const{marks:r,nodeSize:o}=n.node;if(r[0])return r[0].type;const s=t.start()+n.offset+o;return SA(t.doc.resolve(s+1))}function CA(t){return({dispatch:e,tr:n,state:r})=>{const{type:o,expand:i=!0,range:s}=t,l=or(t.selection??s??n.selection,n.doc);let{from:a,to:u,$from:c,$to:d}=l;const h=ke(o)?r.schema.marks[o]:o;h!==null&&be(h,{code:re.SCHEMA,message:`Mark type: ${o} does not exist on the current schema.`});const p=h??SA(c);if(!p)return!1;const f=Ti(c,p,d);return i&&f&&(a=Math.max(0,Math.min(a,f.from)),u=Math.min(Math.max(u,f.to),n.doc.nodeSize-2)),e==null||e(n.removeMark(a,$r(u)?u:a,uA(h)?h:void 0)),!0}}function vz(t){const e=["command","cmd","meta"];return br.isMac&&e.push("mod"),e.includes(t)}function yz(t){const e=["control","ctrl"];return br.isMac||e.push("mod"),e.includes(t)}function bz(t){const e=[];for(let n of t.split("-")){if(n=n.toLowerCase(),vz(n)){e.push({type:"modifier",symbol:"⌘",key:"command",i18n:on.COMMAND_KEY});continue}if(yz(n)){e.push({type:"modifier",symbol:"⌃",key:"control",i18n:on.CONTROL_KEY});continue}switch(n){case"shift":e.push({type:"modifier",symbol:"⇧",key:n,i18n:on.SHIFT_KEY});continue;case"alt":e.push({type:"modifier",symbol:"⌥",key:n,i18n:on.ALT_KEY});continue;case` -`:case"\r":case"enter":e.push({type:"named",symbol:"↵",key:n,i18n:on.ENTER_KEY});continue;case"backspace":e.push({type:"named",symbol:"⌫",key:n,i18n:on.BACKSPACE_KEY});continue;case"delete":e.push({type:"named",symbol:"⌦",key:n,i18n:on.DELETE_KEY});continue;case"escape":e.push({type:"named",symbol:"␛",key:n,i18n:on.ESCAPE_KEY});continue;case"tab":e.push({type:"named",symbol:"⇥",key:n,i18n:on.TAB_KEY});continue;case"capslock":e.push({type:"named",symbol:"⇪",key:n,i18n:on.CAPS_LOCK_KEY});continue;case"space":e.push({type:"named",symbol:"␣",key:n,i18n:on.SPACE_KEY});continue;case"pageup":e.push({type:"named",symbol:"⤒",key:n,i18n:on.PAGE_UP_KEY});continue;case"pagedown":e.push({type:"named",symbol:"⤓",key:n,i18n:on.PAGE_DOWN_KEY});continue;case"home":e.push({type:"named",key:n,i18n:on.HOME_KEY});continue;case"end":e.push({type:"named",key:n,i18n:on.END_KEY});continue;case"arrowleft":e.push({type:"named",symbol:"←",key:n,i18n:on.ARROW_LEFT_KEY});continue;case"arrowright":e.push({type:"named",symbol:"→",key:n,i18n:on.ARROW_RIGHT_KEY});continue;case"arrowup":e.push({type:"named",symbol:"→",key:n,i18n:on.ARROW_UP_KEY});continue;case"arrowdown":e.push({type:"named",symbol:"↓",key:n,i18n:on.ARROW_DOWN_KEY});continue;default:e.push({type:"char",key:n});continue}}return e}function xz(t){const{node:e,predicate:n,descend:r=!0,action:o}=t;be(Xu(e),{code:re.INTERNAL,message:'Invalid "node" parameter passed to "findChildren".'}),be(Xe(n),{code:re.INTERNAL,message:'Invalid "predicate" parameter passed to "findChildren".'});const i=[];return e.descendants((s,l)=>{const a={node:s,pos:l};return n(a)&&(i.push(a),o==null||o(a)),r}),i}function wz(t){const{type:e,...n}=t;return xz({...n,predicate:r=>r.node.type===e})}function kz(t,e={}){const{descend:n=!1,predicate:r,StepTypes:o}=e,i=q3(t,o),s=[];for(const l of i){const{start:a,end:u}=l;t.doc.nodesBetween(a,u,(c,d)=>(((r==null?void 0:r(c,d,l))??!0)&&s.push({node:c,pos:d}),n))}return s}function Ju(t){const{regexp:e,type:n,getAttributes:r,ignoreWhitespace:o=!1,beforeDispatch:i,updateCaptured:s,shouldSkip:l,invalidMarks:a}=t;let u;const c=new xa(e,(d,h,p,f)=>{const{tr:g,schema:m}=d;u||(u=ke(n)?m.marks[n]:n,be(u,{code:re.SCHEMA,message:`Mark type: ${n} does not exist on the current schema.`}));let v=h[1],y=h[0];const b=AA({captureGroup:v,fullMatch:y,end:f,start:p,rule:c,state:d,ignoreWhitespace:o,invalidMarks:a,shouldSkip:l,updateCaptured:s});if(!b)return null;({start:p,end:f,captureGroup:v,fullMatch:y}=b);const x=Xe(r)?r(h):r;let k=f,w=[];if(v){const S=y.search(/\S/),A=p+y.indexOf(v),C=A+v.length;w=g.storedMarks??[],Cp&&g.delete(p+S,A),k=p+S+v.length}return g.addMark(p,k,u.create(x)),g.setStoredMarks(w),i==null||i({tr:g,match:h,start:p,end:f}),g});return c}function TA(t){const{regexp:e,type:n,getAttributes:r,beforeDispatch:o,shouldSkip:i,ignoreWhitespace:s=!1,updateCaptured:l,invalidMarks:a}=t,u=new xa(e,(c,d,h,p)=>{const f=Xe(r)?r(d):r,{tr:g,schema:m}=c,v=ke(n)?m.nodes[n]:n;let y=d[1],b=d[0];const x=AA({captureGroup:y,fullMatch:b,end:p,start:h,rule:u,state:c,ignoreWhitespace:s,invalidMarks:a,shouldSkip:i,updateCaptured:l});if(!x)return null;({start:h,end:p,captureGroup:y,fullMatch:b}=x),be(v,{code:re.SCHEMA,message:`No node exists for ${n} in the schema.`});const k=v.createAndFill(f);return k&&(g.replaceRangeWith(v.isBlock?g.doc.resolve(h).before():h,p,k),o==null||o({tr:g,match:[b,y??""],start:h,end:p})),g});return u}function AA({captureGroup:t,fullMatch:e,end:n,start:r,rule:o,ignoreWhitespace:i,shouldSkip:s,updateCaptured:l,state:a,invalidMarks:u}){var c;if(e==null)return null;const d=(l==null?void 0:l({captureGroup:t,fullMatch:e,start:r,end:n}))??{};t=d.captureGroup??t,e=d.fullMatch??e,r=d.start??r,n=d.end??n;const h=a.doc.resolve(r),p=a.doc.resolve(n);return u&&Y1({$from:h,$to:p},u)||o.invalidMarks&&Y1({$from:h,$to:p},o.invalidMarks)||i&&(t==null?void 0:t.trim())===""||s!=null&&s({state:a,captureGroup:t,fullMatch:e,start:r,end:n,ruleType:"mark"})||(c=o.shouldSkip)!=null&&c.call(o,{state:a,captureGroup:t,fullMatch:e,start:r,end:n,ruleType:"mark"})?null:{captureGroup:t,end:n,fullMatch:e,start:r}}var Ez=function(){const e=Array.prototype.slice.call(arguments).filter(Boolean),n={},r=[];e.forEach(i=>{(i?i.split(" "):[]).forEach(l=>{if(l.startsWith("atm_")){const[,a]=l.split("_");n[a]=l}else r.push(l)})});const o=[];for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&o.push(n[i]);return o.push(...r),o.join(" ")},Sz=Ez;const _A=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function Cz(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const RA=(t,e,n)=>{let r=Cz(t,n);if(!r)return!1;let o=MA(r);if(!o){let s=r.blockRange(),l=s&&zl(s);return l==null?!1:(e&&e(t.tr.lift(s,l).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&LA(t,o,e))return!0;if(r.parent.content.size==0&&(ec(i,"end")||Oe.isSelectable(i))){let s=m1(t.doc,r.before(),r.after(),ae.empty);if(s&&s.slice.size{let{$head:r,empty:o}=t.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;i=MA(r)}let s=i&&i.nodeBefore;return!s||!Oe.isSelectable(s)?!1:(e&&e(t.tr.setSelection(Oe.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function MA(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function Az(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset{let r=Az(t,n);if(!r)return!1;let o=OA(r);if(!o)return!1;let i=o.nodeAfter;if(LA(t,o,e))return!0;if(r.parent.content.size==0&&(ec(i,"start")||Oe.isSelectable(i))){let s=m1(t.doc,r.before(),r.after(),ae.empty);if(s&&s.slice.size{let{$head:r,empty:o}=t.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset=0;e--){let n=t.node(e);if(t.index(e)+1{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(` -`).scrollIntoView()),!0)};function s0(t){for(let e=0;e{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),i=n.indexAfter(-1),s=s0(o.contentMatchAt(i));if(!s||!o.canReplaceWith(i,i,s))return!1;if(e){let l=n.after(),a=t.tr.replaceWith(l,l,s.createAndFill());a.setSelection(He.near(a.doc.resolve(l),1)),e(a.scrollIntoView())}return!0},Oz=(t,e)=>{let n=t.selection,{$from:r,$to:o}=n;if(n instanceof Qn||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=s0(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!r.parentOffset&&o.index(){let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(Fl(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let r=n.blockRange(),o=r&&zl(r);return o==null?!1:(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)};function Lz(t){return(e,n)=>{let{$from:r,$to:o}=e.selection;if(e.selection instanceof Oe&&e.selection.node.isBlock)return!r.parentOffset||!Fl(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.parent.isBlock)return!1;if(n){let i=o.parentOffset==o.parent.content.size,s=e.tr;(e.selection instanceof Me||e.selection instanceof Qn)&&s.deleteSelection();let l=r.depth==0?null:s0(r.node(-1).contentMatchAt(r.indexAfter(-1))),a=t&&t(o.parent,i),u=a?[a]:i&&l?[{type:l}]:void 0,c=Fl(s.doc,s.mapping.map(r.pos),1,u);if(!u&&!c&&Fl(s.doc,s.mapping.map(r.pos),1,l?[{type:l}]:void 0)&&(l&&(u=[{type:l}]),c=!0),c&&(s.split(s.mapping.map(r.pos),1,u),!i&&!r.parentOffset&&r.parent.type!=l)){let d=s.mapping.map(r.before()),h=s.doc.resolve(d);l&&r.node(-1).canReplaceWith(h.index(),h.index()+1,l)&&s.setNodeMarkup(s.mapping.map(r.before()),l)}n(s.scrollIntoView())}return!0}}const Nz=Lz(),$z=(t,e)=>{let{$from:n,to:r}=t.selection,o,i=n.sharedDepth(r);return i==0?!1:(o=n.before(i),e&&e(t.tr.setSelection(Oe.create(t.doc,o))),!0)},Dz=(t,e)=>(e&&e(t.tr.setSelection(new Qn(t.doc))),!0);function Pz(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(o.isTextblock||Iu(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function LA(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i,s;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(Pz(t,e,n))return!0;let l=e.parent.canReplace(e.index(),e.index()+1);if(l&&(i=(s=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&s.matchType(i[0]||o.type).validEnd){if(n){let d=e.pos+o.nodeSize,h=J.empty;for(let g=i.length-1;g>=0;g--)h=J.from(i[g].create(null,h));h=J.from(r.copy(h));let p=t.tr.step(new Gt(e.pos-1,d,e.pos,d,new ae(h,1,0),i.length,!0)),f=d+2*i.length;Iu(p.doc,f)&&p.join(f),n(p.scrollIntoView())}return!0}let a=He.findFrom(e,1),u=a&&a.$from.blockRange(a.$to),c=u&&zl(u);if(c!=null&&c>=e.depth)return n&&n(t.tr.lift(u,c).scrollIntoView()),!0;if(l&&ec(o,"start",!0)&&ec(r,"end")){let d=r,h=[];for(;h.push(d),!d.isTextblock;)d=d.lastChild;let p=o,f=1;for(;!p.isTextblock;p=p.firstChild)f++;if(d.canReplace(d.childCount,d.childCount,p.content)){if(n){let g=J.empty;for(let v=h.length-1;v>=0;v--)g=J.from(h[v].copy(g));let m=t.tr.step(new Gt(e.pos-h.length,e.pos+o.nodeSize,e.pos+f,e.pos+o.nodeSize-f,new ae(g,h.length,0),0,!0));n(m.scrollIntoView())}return!0}}return!1}function NA(t){return function(e,n){let r=e.selection,o=t<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return o.node(i).isTextblock?(n&&n(e.tr.setSelection(Me.create(e.doc,t<0?o.start(i):o.end(i)))),!0):!1}}const zz=NA(-1),Fz=NA(1);function Bz(t,e,n){for(let r=0;r{if(s)return!1;s=l.inlineContent&&l.type.allowsMarkType(n)}),s)return!0}return!1}function Hz(t,e=null){return function(n,r){let{empty:o,$cursor:i,ranges:s}=n.selection;if(o&&!i||!Bz(n.doc,s,t))return!1;if(r)if(i)t.isInSet(n.storedMarks||i.marks())?r(n.tr.removeStoredMark(t)):r(n.tr.addStoredMark(t.create(e)));else{let l=!1,a=n.tr;for(let u=0;!l&&u",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Uz=typeof navigator<"u"&&/Mac/.test(navigator.platform),Wz=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),_n=0;_n<10;_n++)ws[48+_n]=ws[96+_n]=String(_n);for(var _n=1;_n<=24;_n++)ws[_n+111]="F"+_n;for(var _n=65;_n<=90;_n++)ws[_n]=String.fromCharCode(_n+32),of[_n]=String.fromCharCode(_n);for(var c0 in ws)of.hasOwnProperty(c0)||(of[c0]=ws[c0]);function Vz(t){var e=Uz&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Wz&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?of:ws)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const jz=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Gz(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,o,i,s;for(let l=0;l127)&&(i=ws[r.keyCode])&&i!=o){let l=e[u0(i,r)];if(l&&l(n.state,n.dispatch,n))return!0}}return!1}}function Yz(t){const e=ss(t,(i,s)=>(s.priority??tt.Low)-(i.priority??tt.Low)),n=[],r=[];for(const i of e)tF(i)?n.push(i):r.push(i);let o;return new Xo({key:Xz,view:i=>(o=i,{}),props:{transformPasted:i=>{var s,l,a;const u=o.state.selection.$from,c=u.node().type.name,d=new Set(u.marks().map(h=>h.type.name));for(const h of n){if((s=h.ignoredNodes)!=null&&s.includes(c)||(l=h.ignoredMarks)!=null&&l.some(y=>d.has(y)))continue;const p=((a=i.content.firstChild)==null?void 0:a.textContent)??"",f=!o.state.selection.empty&&i.content.childCount===1&&p,g=Il(p,h.regexp)[0];if(f&&g&&h.type==="mark"&&h.replaceSelection){const{from:y,to:b}=o.state.selection,x=o.state.doc.slice(y,b),k=x.content.textBetween(0,x.content.size);if(typeof h.replaceSelection!="boolean"?h.replaceSelection(k):h.replaceSelection){const w=[],{getAttributes:S,markType:A}=h,C=Xe(S)?S(g,!0):S,O=A.create(C);return x.content.forEach(R=>{if(R.isText){const _=O.addToSet(R.marks);w.push(R.mark(_))}}),ae.maxOpen(J.fromArray(w))}}const{nodes:m,transformed:v}=Qz(i.content,h,o.state.schema);v&&(i=h.type==="node"&&h.nodeType.isBlock?new ae(J.fromArray(m),0,0):new ae(J.fromArray(m),i.openStart,i.openEnd))}return iF(i)},handleDOMEvents:{paste:(i,s)=>{var l,a;const u=s;if(!((a=(l=i.props).editable)!=null&&a.call(l,i.state)))return!1;const{clipboardData:c}=u;if(!c)return!1;const d=[...c.items].map(p=>p.getAsFile()).filter(p=>!!p);if(d.length===0)return!1;const{selection:h}=i.state;for(const{fileHandler:p,regexp:f}of r){const g=f?d.filter(m=>f.test(m.type)):d;if(g.length!==0&&p({event:u,files:g,selection:h,view:i,type:"paste"}))return u.preventDefault(),!0}return!1},drop:(i,s)=>{var l,a,u;const c=s;if(!((a=(l=i.props).editable)!=null&&a.call(l,i.state)))return!1;const{dataTransfer:d,clientX:h,clientY:p}=c;if(!d)return!1;const f=oF(c);if(f.length===0)return!1;const g=((u=i.posAtCoords({left:h,top:p}))==null?void 0:u.pos)??i.state.selection.anchor;for(const{fileHandler:m,regexp:v}of r){const y=v?f.filter(b=>v.test(b.type)):f;if(y.length!==0&&m({event:c,files:y,pos:g,view:i,type:"drop"}))return c.preventDefault(),!0}return!1}}}})}var Xz=new ba("pasteRule");function h0(t,e){return function n(r){const{fragment:o,rule:i,nodes:s}=r,{regexp:l,ignoreWhitespace:a,ignoredMarks:u,ignoredNodes:c}=i;let d=!1;return o.forEach(h=>{if(c!=null&&c.includes(h.type.name)||nF(h)){s.push(h);return}if(!h.isText){const g=n({fragment:h.content,rule:i,nodes:[]});d||(d=g.transformed);const m=J.fromArray(g.nodes);h.type.validContent(m)?s.push(h.copy(m)):s.push(...g.nodes);return}if(h.marks.some(g=>rF(g)||(u==null?void 0:u.includes(g.type.name)))){s.push(h);return}const p=h.text??"";let f=0;for(const g of Il(p,l)){const m=g[1],v=g[0];if(a&&(m==null?void 0:m.trim())===""||!v)return;const y=g.index,b=y+v.length;y>f&&s.push(h.cut(f,y));let x=h.cut(y,b);if(v&&m){const k=v.search(/\S/),w=y+v.indexOf(m),S=w+m.length;k&&s.push(h.cut(y,y+k)),x=h.cut(w,S)}t({nodes:s,rule:i,textNode:x,match:g,schema:e}),d=!0,f=b}p&&f0?[...r.files]:(n=r.items)!=null&&n.length?[...r.items].map(o=>o.getAsFile()).filter(o=>!!o):[]:[]}function iF(t){const e=ae.maxOpen(t.content);return e.openStart({events:{},emit(t,...e){(this.events[t]||[]).forEach(n=>n(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(n=>n!==e)}});function Fde(t,e){}var sF=Object.defineProperty,aF=Object.getOwnPropertyDescriptor,ge=(t,e,n,r)=>{for(var o=r>1?void 0:r?aF(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&sF(e,n,o),o},PA=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},ce=(t,e,n)=>(PA(t,e,"read from private field"),n?n.call(t):e.get(t)),qt=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},gn=(t,e,n,r)=>(PA(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);function lF(t,e){return t===e}function zA(t){const{previousOptions:e,update:n,equals:r=lF}=t,o=ha({...e,...n}),i=ye(),s=Cu(e);for(const a of s){const u=e[a],c=o[a];if(r(u,c)){i[a]={changed:!1};continue}i[a]={changed:!0,previousValue:u,value:c}}const l=a=>{const u=ye();for(const c of a){const d=i[c];d!=null&&d.changed&&(u[c]=d.value)}return u};return{changes:ha(i),options:o,pickChanged:l}}var cF={[re.DUPLICATE_HELPER_NAMES]:"helper method",[re.DUPLICATE_COMMAND_NAMES]:"command method"};function FA(t){const{name:e,set:n,code:r}=t,o=cF[r];be(!n.has(e),{code:r,message:`There is a naming conflict for the name: ${e} used in this '${o}'. Please rename or remove from the editor to avoid runtime errors.`}),n.add(e)}function tc(...t){return Nl(Sz(...t).split(" ")).join(" ")}var BA="__IGNORE__",uF="__ALL__",nc=class{constructor(t,...[e]){this["~O"]={},this._mappedHandlers=ye(),this.populateMappedHandlers(),this._options=this._initialOptions=$S(t,this.constructor.defaultOptions,e??ye(),this.createDefaultHandlerOptions()),this._dynamicKeys=this.getDynamicKeys(),this.init()}get options(){return this._options}get dynamicKeys(){return this._dynamicKeys}get initialOptions(){return this._initialOptions}init(){}getDynamicKeys(){const t=[],{customHandlerKeys:e,handlerKeys:n,staticKeys:r}=this.constructor;for(const o of Cu(this._options))r.includes(o)||n.includes(o)||e.includes(o)||t.push(o);return t}ensureAllKeysAreDynamic(t){}setOptions(t){var e;const n=this.getDynamicOptions();this.ensureAllKeysAreDynamic(t);const{changes:r,options:o,pickChanged:i}=zA({previousOptions:n,update:t});this.updateDynamicOptions(o),(e=this.onSetOptions)==null||e.call(this,{reason:"set",changes:r,options:o,pickChanged:i,initialOptions:this._initialOptions})}resetOptions(){var t;const e=this.getDynamicOptions(),{changes:n,options:r,pickChanged:o}=zA({previousOptions:e,update:this._initialOptions});this.updateDynamicOptions(r),(t=this.onSetOptions)==null||t.call(this,{reason:"reset",options:r,changes:n,pickChanged:o,initialOptions:this._initialOptions})}getDynamicOptions(){return Zv(this._options,[...this.constructor.customHandlerKeys,...this.constructor.handlerKeys])}updateDynamicOptions(t){this._options={...this._options,...t}}populateMappedHandlers(){for(const t of this.constructor.handlerKeys)this._mappedHandlers[t]=[]}createDefaultHandlerOptions(){const t=ye();for(const e of this.constructor.handlerKeys)t[e]=(...n)=>{var r;const{handlerKeyOptions:o}=this.constructor,i=(r=o[e])==null?void 0:r.reducer;let s=i==null?void 0:i.getDefault(...n);for(const[,l]of this._mappedHandlers[e]){const a=l(...n);if(s=i?i.accumulator(s,a,...n):a,dF(o,s,e))return s}return s};return t}addHandler(t,e,n=tt.Default){return this._mappedHandlers[t].push([n,e]),this.sortHandlers(t),()=>this._mappedHandlers[t]=this._mappedHandlers[t].filter(([,r])=>r!==e)}hasHandlers(t){return(this._mappedHandlers[t]??[]).length>0}sortHandlers(t){this._mappedHandlers[t]=ss(this._mappedHandlers[t],([e],[n])=>n-e)}addCustomHandler(t,e){var n;return((n=this.onAddCustomHandler)==null?void 0:n.call(this,{[t]:e}))??NS}};nc.defaultOptions={},nc.staticKeys=[],nc.handlerKeys=[],nc.handlerKeyOptions={},nc.customHandlerKeys=[];function dF(t,e,n){const{[uF]:r}=t,o=t[n];return!r&&!o?!1:!!(o&&o.earlyReturnValue!==BA&&(Xe(o.earlyReturnValue)?o.earlyReturnValue(e)===!0:e===o.earlyReturnValue)||r&&r.earlyReturnValue!==BA&&(Xe(r.earlyReturnValue)?r.earlyReturnValue(e)===!0:e===r.earlyReturnValue))}var af=class extends nc{constructor(...t){super(hF,...t),this["~E"]={},this._extensions=r1(this.createExtensions(),e=>e.constructor),this.extensionMap=new Map;for(const e of this._extensions)this.extensionMap.set(e.constructor,e)}get priority(){return this.priorityOverride??this.options.priority??this.constructor.defaultPriority}get constructorName(){return`${CS(this.name)}Extension`}get store(){return be(this._store,{code:re.MANAGER_PHASE_ERROR,message:"An error occurred while attempting to access the 'extension.store' when the Manager has not yet set created the lifecycle methods."}),ha(this._store,{requireKeys:!0})}get extensions(){return this._extensions}replaceChildExtension(t,e){this.extensionMap.has(t)&&(this.extensionMap.set(t,e),this._extensions=this.extensions.map(n=>e.constructor===t?e:n))}createExtensions(){return[]}getExtension(t){const e=this.extensionMap.get(t);return be(e,{code:re.INVALID_GET_EXTENSION,message:`'${t.name}' does not exist within the preset: '${this.name}'`}),e}isOfType(t){return this.constructor===t}setStore(t){this._store||(this._store=t)}clone(...t){return new this.constructor(...t)}setPriority(t){this.priorityOverride=t}};af.defaultPriority=tt.Default;var ht=class extends af{static get[xi](){return hn.PlainExtensionConstructor}get[xi](){return hn.PlainExtension}},ks=class extends af{static get[xi](){return hn.MarkExtensionConstructor}get[xi](){return hn.MarkExtension}get type(){return _t(this.store.schema.marks,this.name)}constructor(...t){super(...t)}};ks.disableExtraAttributes=!1;var Rn=class extends af{static get[xi](){return hn.NodeExtensionConstructor}get[xi](){return hn.NodeExtension}get type(){return _t(this.store.schema.nodes,this.name)}constructor(...t){super(...t)}};Rn.disableExtraAttributes=!1;var hF={priority:void 0,extraAttributes:{},disableExtraAttributes:!1,exclude:{}};function HA(t){return Zl(t)&&Jl(t,[hn.PlainExtension,hn.MarkExtension,hn.NodeExtension])}function pF(t){return Zl(t)&&Jl(t,[hn.PlainExtensionConstructor,hn.MarkExtensionConstructor,hn.NodeExtensionConstructor])}function UA(t){return Zl(t)&&Jl(t,hn.PlainExtension)}function Qu(t){return Zl(t)&&Jl(t,hn.NodeExtension)}function lf(t){return Zl(t)&&Jl(t,hn.MarkExtension)}function Ne(t){return e=>{const{defaultOptions:n,customHandlerKeys:r,handlerKeys:o,staticKeys:i,defaultPriority:s,handlerKeyOptions:l,...a}=t,u=e;n&&(u.defaultOptions=n),s&&(u.defaultPriority=s),l&&(u.handlerKeyOptions=l),u.staticKeys=i??[],u.handlerKeys=o??[],u.customHandlerKeys=r??[];for(const[c,d]of Object.entries(a))u[c]||(u[c]=d);return u}}var fF=class extends ht{constructor(){super(...arguments),this.attributeList=[],this.attributeObject=ye(),this.updateAttributes=(t=!0)=>{this.transformAttributes(),t&&this.store.commands.forceUpdate("attributes")}}get name(){return"attributes"}onCreate(){this.transformAttributes(),this.store.setExtensionStore("updateAttributes",this.updateAttributes)}transformAttributes(){var t,e,n;if(this.attributeObject=ye(),(t=this.store.managerSettings.exclude)!=null&&t.attributes){this.store.setStoreKey("attributes",this.attributeObject);return}this.attributeList=[];for(const r of this.store.extensions){if((e=r.options.exclude)!=null&&e.attributes)continue;const o=(n=r.createAttributes)==null?void 0:n.call(r),i={...o,class:tc(...r.classNames??[],o==null?void 0:o.class)};this.attributeList.unshift(i)}for(const r of this.attributeList)this.attributeObject={...this.attributeObject,...r,class:tc(this.attributeObject.class,r.class)};this.store.setStoreKey("attributes",this.attributeObject)}};function nt(t={}){return(e,n,r)=>{(e.decoratedHelpers??(e.decoratedHelpers={}))[n]=t}}function le(t={}){return(e,n,r)=>{(e.decoratedCommands??(e.decoratedCommands={}))[n]=t}}function Zt(t){return(e,n,r)=>{(e.decoratedKeybindings??(e.decoratedKeybindings={}))[n]=t}}var gF=class{constructor(t){this.promiseCreator=t,this.failureHandlers=[],this.successHandlers=[],this.validateHandlers=[],this.generateCommand=()=>e=>{let n=!0;const{view:r,tr:o,dispatch:i}=e;if(!r)return!1;for(const l of this.validateHandlers)if(!l({...e,dispatch:()=>{}})){n=!1;break}return!i||!n?n:(this.promiseCreator(e).then(l=>{this.runHandlers(this.successHandlers,{value:l,state:r.state,tr:r.state.tr,dispatch:r.dispatch,view:r})}).catch(l=>{this.runHandlers(this.failureHandlers,{error:l,state:r.state,tr:r.state.tr,dispatch:r.dispatch,view:r})}),i(o),!0)}}validate(t,e="push"){return this.validateHandlers[e](t),this}success(t,e="push"){return this.successHandlers[e](t),this}failure(t,e="push"){return this.failureHandlers[e](t),this}runHandlers(t,e){var n;for(const r of t)if(!r({...e,dispatch:()=>{}}))break;(n=e.dispatch)==null||n.call(e,e.tr)}};function Es(t){const{type:e,attrs:n,range:r,selection:o}=t;return i=>{const{dispatch:s,tr:l,state:a}=i,u=ke(e)?a.schema.marks[e]:e;if(be(u,{code:re.SCHEMA,message:`Mark type: ${e} does not exist on the current schema.`}),r||o){const{from:c,to:d}=or(o??r??l.selection,l.doc);return Jp({trState:l,type:e,...r})?s==null||s(l.removeMark(c,d,u)):s==null||s(l.addMark(c,d,u.create(n))),!0}return Gu(Hz(u,n))(i)}}function mF(t,e,n){for(const{$from:r,$to:o}of n){let i=r.depth===0?e.type.allowsMarkType(t):!1;if(e.nodesBetween(r.pos,o.pos,s=>{if(i)return!1;i=s.inlineContent&&s.type.allowsMarkType(t)}),i)return!0}return!1}function vF(t,e,n){return({tr:r,dispatch:o,state:i})=>{const s=or(n??r.selection,r.doc),l=Q3(s),a=ke(t)?i.schema.marks[t]:t;if(be(a,{code:re.SCHEMA,message:`Mark type: ${t} does not exist on the current schema.`}),s.empty&&!l||!mF(a,r.doc,s.ranges))return!1;if(!o)return!0;if(l)return r.removeStoredMark(a),e&&r.addStoredMark(a.create(e)),o(r),!0;let u=!1;for(const{$from:c,$to:d}of s.ranges){if(u)break;u=r.doc.rangeHasMark(c.pos,d.pos,a)}for(const{$from:c,$to:d}of s.ranges)u&&r.removeMark(c.pos,d.pos,a),e&&r.addMark(c.pos,d.pos,a.create(e));return o(r),!0}}function yF(t,e={}){return({tr:n,dispatch:r,state:o})=>{const i=o.schema,s=n.selection,{from:l=s.from,to:a=l??s.to,marks:u={}}=e;if(!r)return!0;n.insertText(t,l,a);const c=_t(n.steps,n.steps.length-1).getMap().map(a);for(const[d,h]of nn(u))n.addMark(l,c,_t(i.marks,d).create(h));return r(n),!0}}var We=class extends ht{constructor(){super(...arguments),this.decorated=new Map,this.forceUpdateTransaction=(t,...e)=>{const{forcedUpdates:n}=this.getCommandMeta(t);return this.setCommandMeta(t,{forcedUpdates:Nl([...n,...e])}),t}}get name(){return"commands"}get transaction(){const t=this.store.getState();this._transaction||(this._transaction=t.tr);const e=this._transaction.before.eq(t.doc),n=!is(this._transaction.steps);if(!e){const r=t.tr;if(n)for(const o of this._transaction.steps)r.step(o);this._transaction=r}return this._transaction}onCreate(){this.store.setStoreKey("getForcedUpdates",this.getForcedUpdates.bind(this))}onView(t){var e;const{extensions:n,helpers:r}=this.store,o=ye(),i=new Set;let s=ye();const l=u=>{var c;const d=ye(),h=()=>u??this.transaction;let p=[];const f=()=>p;for(const[m,v]of Object.entries(o))(c=s[m])!=null&&c.disableChaining||(d[m]=this.chainedFactory({chain:d,command:v.original,getTr:h,getChain:f}));const g=m=>{be(m===h(),{message:"Chaining currently only supports `CommandFunction` methods which do not use the `state.tr` property. Instead you should use the provided `tr` property."})};return d.run=(m={})=>{const v=p;p=[];for(const y of v)if(!y(g)&&m.exitEarly)return;t.dispatch(h())},d.tr=()=>{const m=p;p=[];for(const v of m)v(g);return h()},d.enabled=()=>{for(const m of p)if(!m())return!1;return!0},d.new=m=>l(m),d};for(const u of n){const c=((e=u.createCommands)==null?void 0:e.call(u))??{},d=u.decoratedCommands??{},h={};s={...s,decoratedCommands:d};for(const[p,f]of Object.entries(d)){const g=ke(f.shortcut)&&f.shortcut.startsWith("_|")?{shortcut:r.getNamedShortcut(f.shortcut,u.options)}:void 0;this.updateDecorated(p,{...f,name:u.name,...g}),c[p]=u[p].bind(u),f.active&&(h[p]=()=>{var m;return((m=f.active)==null?void 0:m.call(f,u.options,this.store))??!1})}_u(c)||this.addCommands({active:h,names:i,commands:o,extensionCommands:c})}const a=l();for(const[u,c]of Object.entries(a))l[u]=c;this.store.setStoreKey("commands",o),this.store.setStoreKey("chain",l),this.store.setExtensionStore("commands",o),this.store.setExtensionStore("chain",l)}onStateUpdate({state:t}){this._transaction=t.tr}createPlugin(){return{}}customDispatch(t){return t}insertText(t,e={}){return ke(t)?yF(t,e):this.store.createPlaceholderCommand({promise:t,placeholder:{type:"inline"},onSuccess:(n,r,o)=>this.insertText(n,{...e,...r})(o)}).generateCommand()}selectText(t,e={}){return({tr:n,dispatch:r})=>{const o=or(t,n.doc);return n.selection.anchor===o.anchor&&n.selection.head===o.head&&!e.forceUpdate?!1:(r==null||r(n.setSelection(o)),!0)}}selectMark(t){return e=>{const{tr:n}=e,r=Ti(n.selection.$from,t);return r?this.store.commands.selectText.original({from:r.from,to:r.to})(e):!1}}delete(t){return({tr:e,dispatch:n})=>{const{from:r,to:o}=t??e.selection;return n==null||n(e.delete(r,o)),!0}}emptyUpdate(t){return({tr:e,dispatch:n})=>(n&&(t==null||t(),n(e)),!0)}forceUpdate(...t){return({tr:e,dispatch:n})=>(n==null||n(this.forceUpdateTransaction(e,...t)),!0)}updateNodeAttributes(t,e){return({tr:n,dispatch:r})=>(r==null||r(n.setNodeMarkup(t,void 0,e)),!0)}setContent(t,e){return n=>{const{tr:r,dispatch:o}=n,i=this.store.manager.createState({content:t,selection:e});return i?(o==null||o(r.replaceRangeWith(0,r.doc.nodeSize-2,i.doc)),!0):!1}}resetContent(){return t=>{const{tr:e,dispatch:n}=t,r=this.store.manager.createEmptyDoc();return r?this.setContent(r)(t):(n==null||n(e.delete(0,e.doc.nodeSize)),!0)}}emptySelection(){return({tr:t,dispatch:e})=>t.selection.empty?!1:(e==null||e(t.setSelection(Me.near(t.selection.$anchor))),!0)}insertNewLine(){return({dispatch:t,tr:e})=>xs(e.selection)?(t==null||t(e.insertText(` -`)),!0):!1}insertNode(t,e={}){return({dispatch:n,tr:r,state:o})=>{var i;const{attrs:s,range:l,selection:a,replaceEmptyParentBlock:u=!1}=e,{from:c,to:d,$from:h}=or(a??l??r.selection,r.doc);if(Xu(t)||W3(t)){const v=h.before(h.depth);return n==null||n(u&&c===d&&ef(h.parent)?r.replaceWith(v,v+h.parent.nodeSize,t):r.replaceWith(c,d,t)),!0}const p=ke(t)?o.schema.nodes[t]:t;be(p,{code:re.SCHEMA,message:`The requested node type ${t} does not exist in the schema.`});const f=(i=e.marks)==null?void 0:i.map(v=>{if(v instanceof Ge)return v;const y=ke(v)?o.schema.marks[v]:v;return be(y,{code:re.SCHEMA,message:`The requested mark type ${v} does not exist in the schema.`}),y.create()}),g=p.createAndFill(s,ke(e.content)?o.schema.text(e.content):e.content,f);if(!g)return!1;const m=c!==d;return n==null||n(m?r.replaceRangeWith(c,d,g):r.insert(c,g)),!0}}focus(t){return e=>{const{dispatch:n,tr:r}=e,{view:o}=this.store;if(t===!1||o.hasFocus()&&(t===void 0||t===!0))return!1;if(t===void 0||t===!0){const{from:i=0,to:s=i}=r.selection;t={from:i,to:s}}return n&&this.delayedFocus(),this.selectText(t)(e)}}blur(t){return e=>{const{view:n}=this.store;return n.hasFocus()?(requestAnimationFrame(()=>{n.dom.blur()}),t?this.selectText(t)(e):!0):!1}}setBlockNodeType(t,e,n,r=!0){return Zu(t,e,n,r)}toggleWrappingNode(t,e,n){return EA(t,e,n)}toggleBlockNodeItem(t){return i0(t)}wrapInNode(t,e,n){return kA(t,e,n)}applyMark(t,e,n){return vF(t,e,n)}toggleMark(t){return Es(t)}removeMark(t){return CA(t)}setMeta(t,e){return({tr:n})=>(n.setMeta(t,e),!0)}selectAll(){return this.selectText("all")}copy(){return t=>t.tr.selection.empty?!1:(t.dispatch&&document.execCommand("copy"),!0)}paste(){return this.store.createPlaceholderCommand({promise:async()=>{var t;return(t=navigator.clipboard)!=null&&t.readText?await navigator.clipboard.readText():""},placeholder:{type:"inline"},onSuccess:(t,e,n)=>this.insertNode(r0({content:t,schema:n.state.schema}),{selection:e})(n)}).generateCommand()}cut(){return t=>t.tr.selection.empty?!1:(t.dispatch&&document.execCommand("cut"),!0)}replaceText(t){return mz(t)}getAllCommandOptions(){const t={};for(const[e,n]of this.decorated)_u(n)||(t[e]=n);return t}getCommandOptions(t){return this.decorated.get(t)}getCommandProp(){return{tr:this.transaction,dispatch:this.store.view.dispatch,state:this.store.view.state,view:this.store.view}}updateDecorated(t,e){if(!e){this.decorated.delete(t);return}const n=this.decorated.get(t)??{name:""};this.decorated.set(t,{...n,...e})}handleIosFocus(){br.isIos&&this.store.view.dom.focus()}delayedFocus(){this.handleIosFocus(),requestAnimationFrame(()=>{this.store.view.focus(),this.store.view.dispatch(this.transaction.scrollIntoView())})}getForcedUpdates(t){return this.getCommandMeta(t).forcedUpdates}getCommandMeta(t){const e=t.getMeta(this.pluginKey)??{};return{...bF,...e}}setCommandMeta(t,e){const n=this.getCommandMeta(t);t.setMeta(this.pluginKey,{...n,...e})}addCommands(t){const{extensionCommands:e,commands:n,names:r,active:o}=t;for(const[i,s]of nn(e))FA({name:i,set:r,code:re.DUPLICATE_COMMAND_NAMES}),be(!xF.has(i),{code:re.DUPLICATE_COMMAND_NAMES,message:"The command name you chose is forbidden."}),n[i]=this.createUnchainedCommand(s,o[i])}unchainedFactory(t){return(...e)=>{const{shouldDispatch:n=!0,command:r}=t,{view:o}=this.store,{state:i}=o;let s;return n&&(s=o.dispatch),r(...e)({state:i,dispatch:s,view:o,tr:i.tr})}}createUnchainedCommand(t,e){const n=this.unchainedFactory({command:t});return n.enabled=this.unchainedFactory({command:t,shouldDispatch:!1}),n.isEnabled=n.enabled,n.original=t,n.active=e,n}chainedFactory(t){return(...e)=>{const{chain:n,command:r,getTr:o,getChain:i}=t,s=i(),{view:l}=this.store,{state:a}=l;return s.push(u=>r(...e)({state:a,dispatch:u,view:l,tr:o()})),n}}};ge([le()],We.prototype,"customDispatch",1),ge([le()],We.prototype,"insertText",1),ge([le()],We.prototype,"selectText",1),ge([le()],We.prototype,"selectMark",1),ge([le()],We.prototype,"delete",1),ge([le()],We.prototype,"emptyUpdate",1),ge([le()],We.prototype,"forceUpdate",1),ge([le()],We.prototype,"updateNodeAttributes",1),ge([le()],We.prototype,"setContent",1),ge([le()],We.prototype,"resetContent",1),ge([le()],We.prototype,"emptySelection",1),ge([le()],We.prototype,"insertNewLine",1),ge([le()],We.prototype,"insertNode",1),ge([le()],We.prototype,"focus",1),ge([le()],We.prototype,"blur",1),ge([le()],We.prototype,"setBlockNodeType",1),ge([le()],We.prototype,"toggleWrappingNode",1),ge([le()],We.prototype,"toggleBlockNodeItem",1),ge([le()],We.prototype,"wrapInNode",1),ge([le()],We.prototype,"applyMark",1),ge([le()],We.prototype,"toggleMark",1),ge([le()],We.prototype,"removeMark",1),ge([le()],We.prototype,"setMeta",1),ge([le({description:({t})=>t(cs.SELECT_ALL_DESCRIPTION),label:({t})=>t(cs.SELECT_ALL_LABEL),shortcut:oe.SelectAll})],We.prototype,"selectAll",1),ge([le({description:({t})=>t(cs.COPY_DESCRIPTION),label:({t})=>t(cs.COPY_LABEL),shortcut:oe.Copy,icon:"fileCopyLine"})],We.prototype,"copy",1),ge([le({description:({t})=>t(cs.PASTE_DESCRIPTION),label:({t})=>t(cs.PASTE_LABEL),shortcut:oe.Paste,icon:"clipboardLine"})],We.prototype,"paste",1),ge([le({description:({t})=>t(cs.CUT_DESCRIPTION),label:({t})=>t(cs.CUT_LABEL),shortcut:oe.Cut,icon:"scissorsFill"})],We.prototype,"cut",1),ge([le()],We.prototype,"replaceText",1),ge([nt()],We.prototype,"getAllCommandOptions",1),ge([nt()],We.prototype,"getCommandOptions",1),ge([nt()],We.prototype,"getCommandProp",1),We=ge([Ne({defaultPriority:tt.Highest,defaultOptions:{trackerClassName:"remirror-tracker-position",trackerNodeName:"span"},staticKeys:["trackerClassName","trackerNodeName"]})],We);var bF={forcedUpdates:[]},xF=new Set(["run","chain","original","raw","enabled","tr","new"]),Oo=class extends ht{constructor(){super(...arguments),this.placeholders=Ue.empty,this.placeholderWidgets=new Map,this.createPlaceholderCommand=t=>{const e=Ll(),{promise:n,placeholder:r,onFailure:o,onSuccess:i}=t;return new gF(n).validate(s=>this.addPlaceholder(e,r)(s)).success(s=>{const{state:l,tr:a,dispatch:u,view:c,value:d}=s,h=this.store.helpers.findPlaceholder(e);if(!h){const p=new Error("The placeholder has been removed");return(o==null?void 0:o({error:p,state:l,tr:a,dispatch:u,view:c}))??!1}return this.removePlaceholder(e)({state:l,tr:a,view:c,dispatch:()=>{}}),i(d,h,{state:l,tr:a,dispatch:u,view:c})}).failure(s=>(this.removePlaceholder(e)({...s,dispatch:()=>{}}),(o==null?void 0:o(s))??!1))}}get name(){return"decorations"}onCreate(){this.store.setExtensionStore("createPlaceholderCommand",this.createPlaceholderCommand)}createPlugin(){return{state:{init:()=>{},apply:t=>{var e,n,r,o,i,s;const{added:l,clearTrackers:a,removed:u,updated:c}=this.getMeta(t);if(a){this.placeholders=Ue.empty;for(const[,d]of this.placeholderWidgets)(n=(e=d.spec).onDestroy)==null||n.call(e,this.store.view,d.spec.element);this.placeholderWidgets.clear();return}this.placeholders=this.placeholders.map(t.mapping,t.doc,{onRemove:d=>{var h,p;const f=this.placeholderWidgets.get(d.id);f&&((p=(h=f.spec).onDestroy)==null||p.call(h,this.store.view,f.spec.element))}});for(const[,d]of this.placeholderWidgets)(o=(r=d.spec).onUpdate)==null||o.call(r,this.store.view,d.from,d.spec.element,d.spec.data);for(const d of l){if(d.type==="inline"){this.addInlinePlaceholder(d,t);continue}if(d.type==="node"){this.addNodePlaceholder(d,t);continue}if(d.type==="widget"){this.addWidgetPlaceholder(d,t);continue}}for(const{id:d,data:h}of c){const p=this.placeholderWidgets.get(d);if(!p)continue;const f=mt.widget(p.from,p.spec.element,{...p.spec,data:h});this.placeholders=this.placeholders.remove([p]).add(t.doc,[f]),this.placeholderWidgets.set(d,f)}for(const d of u){const h=this.placeholders.find(void 0,void 0,f=>f.id===d&&f.__type===rc),p=this.placeholderWidgets.get(d);p&&((s=(i=p.spec).onDestroy)==null||s.call(i,this.store.view,p.spec.element)),this.placeholders=this.placeholders.remove(h),this.placeholderWidgets.delete(d)}}},props:{decorations:t=>{let e=this.options.decorations(t);e=e.add(t.doc,this.placeholders.find());for(const n of this.store.extensions){if(!n.createDecorations)continue;const r=n.createDecorations(t).find();e=e.add(t.doc,r)}return e},handleDOMEvents:{blur:t=>(this.options.persistentSelectionClass&&t.dispatch(t.state.tr.setMeta(WA,!1)),!1),focus:t=>(this.options.persistentSelectionClass&&t.dispatch(t.state.tr.setMeta(WA,!0)),!1)}}}}updateDecorations(){return({tr:t,dispatch:e})=>(e==null||e(t),!0)}addPlaceholder(t,e,n){return({dispatch:r,tr:o})=>this.addPlaceholderTransaction(t,e,o,!r)?(r==null||r(n?o.deleteSelection():o),!0):!1}updatePlaceholder(t,e){return({dispatch:n,tr:r})=>this.updatePlaceholderTransaction({id:t,data:e,tr:r,checkOnly:!n})?(n==null||n(r),!0):!1}removePlaceholder(t){return({dispatch:e,tr:n})=>this.removePlaceholderTransaction({id:t,tr:n,checkOnly:!e})?(e==null||e(n),!0):!1}clearPlaceholders(){return({tr:t,dispatch:e})=>this.clearPlaceholdersTransaction({tr:t,checkOnly:!e})?(e==null||e(t),!0):!1}findPlaceholder(t){return this.findAllPlaceholders().get(t)}findAllPlaceholders(){const t=new Map,e=this.placeholders.find(void 0,void 0,n=>n.__type===rc);for(const n of e)t.set(n.spec.id,{from:n.from,to:n.to});return t}createDecorations(t){var e,n,r;const{persistentSelectionClass:o}=this.options;return!o||(e=this.store.view)!=null&&e.hasFocus()||(r=(n=this.store.helpers).isInteracting)!=null&&r.call(n)?Ue.empty:kF(t,Ue.empty,{class:ke(o)?o:"selection"})}onApplyState(){}addWidgetPlaceholder(t,e){const{pos:n,createElement:r,onDestroy:o,onUpdate:i,className:s,nodeName:l,id:a,type:u}=t,c=(r==null?void 0:r(this.store.view,n))??document.createElement(l);c.classList.add(s);const d=mt.widget(n,c,{id:a,__type:rc,type:u,element:c,onDestroy:o,onUpdate:i});this.placeholderWidgets.set(a,d),this.placeholders=this.placeholders.add(e.doc,[d])}addInlinePlaceholder(t,e){const{from:n=e.selection.from,to:r=e.selection.to,className:o,nodeName:i,id:s,type:l}=t;let a;if(n===r){const u=document.createElement(i);u.classList.add(o),a=mt.widget(n,u,{id:s,type:l,__type:rc,widget:u})}else a=mt.inline(n,r,{nodeName:i,class:o},{id:s,__type:rc});this.placeholders=this.placeholders.add(e.doc,[a])}addNodePlaceholder(t,e){const{pos:n,className:r,nodeName:o,id:i}=t,s=$r(n)?e.doc.resolve(n):e.selection.$from,l=$r(n)?s.nodeAfter?{pos:n,end:s.nodeAfter.nodeSize}:void 0:L3(s);if(!l)return;const a=mt.node(l.pos,l.end,{nodeName:o,class:r},{id:i,__type:rc});this.placeholders=this.placeholders.add(e.doc,[a])}withRequiredBase(t,e){const{placeholderNodeName:n,placeholderClassName:r}=this.options,{nodeName:o=n,className:i,...s}=e,l=(i?[r,i]:[r]).join(" ");return{nodeName:o,className:l,...s,id:t}}getMeta(t){const e=t.getMeta(this.pluginKey)??{};return{...wF,...e}}setMeta(t,e){const n=this.getMeta(t);t.setMeta(this.pluginKey,{...n,...e})}addPlaceholderTransaction(t,e,n,r=!1){if(this.findPlaceholder(t))return!1;if(r)return!0;const{added:i}=this.getMeta(n);return this.setMeta(n,{added:[...i,this.withRequiredBase(t,e)]}),!0}updatePlaceholderTransaction(t){const{id:e,tr:n,checkOnly:r=!1,data:o}=t;if(!this.findPlaceholder(e))return!1;if(r)return!0;const{updated:s}=this.getMeta(n);return this.setMeta(n,{updated:Nl([...s,{id:e,data:o}])}),!0}removePlaceholderTransaction(t){const{id:e,tr:n,checkOnly:r=!1}=t;if(!this.findPlaceholder(e))return!1;if(r)return!0;const{removed:i}=this.getMeta(n);return this.setMeta(n,{removed:Nl([...i,e])}),!0}clearPlaceholdersTransaction(t){const{tr:e,checkOnly:n=!1}=t;return this.getPluginState()===Ue.empty?!1:(n||this.setMeta(e,{clearTrackers:!0}),!0)}};ge([le()],Oo.prototype,"updateDecorations",1),ge([le()],Oo.prototype,"addPlaceholder",1),ge([le()],Oo.prototype,"updatePlaceholder",1),ge([le()],Oo.prototype,"removePlaceholder",1),ge([le()],Oo.prototype,"clearPlaceholders",1),ge([nt()],Oo.prototype,"findPlaceholder",1),ge([nt()],Oo.prototype,"findAllPlaceholders",1),Oo=ge([Ne({defaultOptions:{persistentSelectionClass:void 0,placeholderClassName:"placeholder",placeholderNodeName:"span"},staticKeys:["placeholderClassName","placeholderNodeName"],handlerKeys:["decorations"],handlerKeyOptions:{decorations:{reducer:{accumulator:(t,e,n)=>t.add(n.doc,e.find()),getDefault:()=>Ue.empty}}},defaultPriority:tt.Low})],Oo);var wF={added:[],updated:[],clearTrackers:!1,removed:[]},rc="placeholderDecoration",WA="persistentSelectionFocus";function kF(t,e,n){const{selection:r,doc:o}=t;if(r.empty)return e;const{from:i,to:s}=r,l=qu(r)?mt.node(i,s,n):mt.inline(i,s,n);return e.add(o,[l])}var p0=class extends ht{get name(){return"docChanged"}onStateUpdate(t){const{firstUpdate:e,transactions:n,tr:r}=t;e||(n??[r]).some(o=>o==null?void 0:o.docChanged)&&this.options.docChanged(t)}};p0=ge([Ne({handlerKeys:["docChanged"],handlerKeyOptions:{docChanged:{earlyReturnValue:!1}},defaultPriority:tt.Lowest})],p0);var lo=class extends ht{get name(){return"helpers"}onCreate(){var t;this.store.setStringHandler("text",this.textToProsemirrorNode.bind(this)),this.store.setStringHandler("html",r0);const e=ye(),n=ye(),r=ye(),o=new Set;for(const i of this.store.extensions){Qu(i)&&(n[i.name]=l=>cA({state:this.store.getState(),type:i.type,attrs:l}),r[i.name]=l=>{var a;return(a=Yu({state:this.store.getState(),type:i.type,attrs:l}))==null?void 0:a.node.attrs}),lf(i)&&(n[i.name]=l=>Jp({trState:this.store.getState(),type:i.type,attrs:l}),r[i.name]=l=>{const a=Ti(this.store.getState().selection.$from,i.type);if(!a||!l)return a==null?void 0:a.mark.attrs;if(e0(a.mark,l))return a.mark.attrs});const s=((t=i.createHelpers)==null?void 0:t.call(i))??{};for(const l of Object.keys(i.decoratedHelpers??{}))s[l]=i[l].bind(i);if(!_u(s))for(const[l,a]of nn(s))FA({name:l,set:o,code:re.DUPLICATE_HELPER_NAMES}),e[l]=a}this.store.setStoreKey("attrs",r),this.store.setStoreKey("active",n),this.store.setStoreKey("helpers",e),this.store.setExtensionStore("attrs",r),this.store.setExtensionStore("active",n),this.store.setExtensionStore("helpers",e)}isSelectionEmpty(t=this.store.getState()){return Q1(t)}isViewEditable(t=this.store.getState()){var e,n;return((n=(e=this.store.view.props).editable)==null?void 0:n.call(e,t))??!1}getStateJSON(t=this.store.getState()){return t.toJSON()}getJSON(t=this.store.getState()){return t.doc.toJSON()}getRemirrorJSON(t=this.store.getState()){return this.getJSON(t)}insertHtml(t,e){return n=>{const{state:r}=n,o=r0({content:t,schema:r.schema,fragment:!0});return this.store.commands.insertNode.original(o,e)(n)}}getText({lineBreakDivider:t=` +If you are using Node.js, you can install JSDOM and Remirror will try to use it automatically, or you can create a fake document and pass it to Remirror`)}function IA(t){var e;return(t==null?void 0:t.defaultView)??(typeof window<"u"?window:void 0)??((e=PC())==null?void 0:e.defaultView)}function kz(t){return IA(t==null?void 0:t.ownerDocument)}function Ez(t){const e=IA(t)??rf().defaultView;if(e)return e;throw new Error("Unable to retrieve the window from the global scope")}function Sz(t,e=rf()){const n=bz(t,t.type.schema)?t.content:J.from(t);return Xo.fromSchema(t.type.schema).serializeFragment(n,{document:e})}function Cz(t,e){return new(Ez(e)).DOMParser().parseFromString(`${t}`,"text/html").body}function Tz(t,e=rf()){const n=e.createElement("div");return n.append(Sz(t,e)),n.innerHTML}function a0(t){const{content:e,schema:n,document:r,fragment:o=!1,...i}=t,s=Cz(e,r),l=ya.fromSchema(n);return o?l.parseSlice(s,{...LA,...i}).content:l.parse(s,{...LA,...i})}var LA={preserveWhitespace:!1};function of(t,e){const n=Su(e.defaults());return Qv({...t},n)}function Az(t,e){let n="";e&&(n=`${e.trim()}`);const r=LP(t);if(!r)return n;const o=(n.endsWith(";")," ");return`${n}${o}${r}`}var _z={remove(t,e){let n=t;for(const r of e)r.invalidParentNode||(n=C4(r.path,n));return n}};function Rz({json:t,schema:e,...n}){const r=new Set(Su(e.marks)),o=new Set(Su(e.nodes)),i=NA({json:t,path:[],validNodes:o,validMarks:r});return{json:t,invalidContent:i,transformers:_z,...n}}function NA(t){const{json:e,validMarks:n,validNodes:r,path:o=[]}=t,i={validMarks:n,validNodes:r},s=[],{type:l,marks:a,content:u}=e;let{invalidParentMark:c=!1,invalidParentNode:d=!1}=t;if(a){const h=[];for(const[p,f]of a.entries()){const g=ke(f)?f:f.type;n.has(g)||(h.unshift({name:g,path:[...o,"marks",`${p}`],type:"mark",invalidParentMark:c,invalidParentNode:d}),c=!0)}s.push(...h)}if(r.has(l)||(s.push({name:l,type:"node",path:o,invalidParentMark:c,invalidParentNode:d}),d=!0),u){const h=[];for(const[p,f]of u.entries())h.unshift(...NA({...i,json:f,path:[...o,"content",`${p}`],invalidParentMark:c,invalidParentNode:d}));s.unshift(...h)}return s}function Mz(t){return!!(ws(t)&&t.$cursor&&t.$cursor.parentOffset>=t.$cursor.parent.content.size)}function l0(t){return!!(ws(t)&&t.$cursor&&t.$cursor.parentOffset<=0)}function $A(t){const e=He.atStart(t.$anchor.doc);return!!(l0(t)&&e.anchor===t.anchor)}function Oz(t){return({dispatch:e,tr:n})=>{const{type:r,attrs:o=ye(),appendText:i,range:s}=t,l=s?Oe.between(n.doc.resolve(s.from),n.doc.resolve(s.to)):n.selection,{$from:a,from:u,to:c}=l;let d=a.depth===0?n.doc.type.allowsMarkType(r):!1;return n.doc.nodesBetween(u,c,h=>{if(d)return!1;if(h.inlineContent&&h.type.allowsMarkType(r)){d=!0;return}}),d?(e==null||e(n.addMark(u,c,r.create(o))&&i?n.insertText(i):n),!0):!1}}function Iz({tr:t,dispatch:e}){const{$from:n,$to:r}=t.selection,o=n.blockRange(r),i=o&&Pl(o);return!Dr(i)||!o?!1:(e==null||e(t.lift(o,i).scrollIntoView()),!0)}function DA(t,e={},n){return function(r){const{tr:o,dispatch:i,state:s}=r,l=ke(t)?_t(s.schema.nodes,t):t,{from:a,to:u}=or(n??o.selection,o.doc),c=o.doc.resolve(a),d=o.doc.resolve(u),h=c.blockRange(d),p=h&&v1(h,l,e);return!p||!h?!1:(i==null||i(o.wrap(h,p).scrollIntoView()),!0)}}function PA(t,e={},n){return r=>{const{tr:o,state:i}=r,s=ke(t)?_t(i.schema.nodes,t):t;return qu({state:o,type:s,attrs:e})?Iz(r):DA(t,e,n)(r)}}function Qu(t,e,n,r=!0){return function(o){const{tr:i,dispatch:s,state:l}=o,a=ke(t)?_t(l.schema.nodes,t):t,{from:u,to:c}=or(n??i.selection,i.doc);let d=!1,h;return i.doc.nodesBetween(u,c,(p,f)=>{if(d)return!1;if(!p.isTextblock||p.hasMarkup(a,e))return;if(p.type===a){d=!0,h=p.attrs;return}const g=i.doc.resolve(f),m=g.index();d=g.parent.canReplaceWith(m,m+1,a),d&&(h=g.parent.attrs)}),d?(s==null||s(i.setBlockType(u,c,a,{...r?h:{},...e}).scrollIntoView()),!0):!1}}function c0(t){return e=>{const{tr:n,state:r}=e,{type:o,attrs:i,preserveAttrs:s=!0}=t,l=qu({state:n,type:o,attrs:i}),a=t.toggleType??tf(r.schema);if(l)return Qu(a,{...s?l.node.attrs:{},...i})(e);const u=qu({state:n,type:a,attrs:i});return Qu(o,{...s?u==null?void 0:u.node.attrs:{},...i})(e)}}function Lz(t=0){const e=navigator.userAgent.match(/Chrom(e|ium)\/(\d+)\./);return e?Number.parseInt(_t(e,2),10)>=t:!1}function Nz(t,e){let{head:n,empty:r,anchor:o}=t;for(const i of e.steps)n=i.getMap().map(n);r?e.setSelection(Oe.near(e.doc.resolve(n))):e.setSelection(Oe.between(e.doc.resolve(o),e.doc.resolve(n)))}function $z(t){const{attrs:e={},appendText:n="",content:r="",keepSelection:o=!1,range:i}=t;return({state:s,tr:l,dispatch:a})=>{var u;const c=s.schema,d=or(t.selection??i??l.selection,l.doc),h=d.$from.index(),{from:p,to:f,$from:g}=d,m=ke(t.type)?c.nodes[t.type]??c.marks[t.type]:t.type;if(be(ke(t.type)?m:!0,{code:re.SCHEMA,message:`Schema contains no marks or nodes with name ${m}`}),iz(m)){if(!g.parent.canReplaceWith(h,h,m))return!1;l.replaceWith(p,f,m.create(e,r?c.text(r):void 0))}else be(r,{message:"`replaceText` cannot be called without content when using a mark type"}),l.replaceWith(p,f,c.text(r,SA(m)?[m.create(e)]:void 0));return n&&l.insertText(n),o&&Nz(s.selection,l),a&&(Lz(60)&&((u=document.getSelection())==null||u.empty()),a(l)),!0}}function zA(t,e){const n=t.parent.childAfter(t.parentOffset);if(!n.node)return;const{marks:r,nodeSize:o}=n.node;if(r[0])return r[0].type;const s=t.start()+n.offset+o;return zA(t.doc.resolve(s+1))}function FA(t){return({dispatch:e,tr:n,state:r})=>{const{type:o,expand:i=!0,range:s}=t,l=or(t.selection??s??n.selection,n.doc);let{from:a,to:u,$from:c,$to:d}=l;const h=ke(o)?r.schema.marks[o]:o;h!==null&&be(h,{code:re.SCHEMA,message:`Mark type: ${o} does not exist on the current schema.`});const p=h??zA(c);if(!p)return!1;const f=Ti(c,p,d);return i&&f&&(a=Math.max(0,Math.min(a,f.from)),u=Math.min(Math.max(u,f.to),n.doc.nodeSize-2)),e==null||e(n.removeMark(a,Dr(u)?u:a,SA(h)?h:void 0)),!0}}function Dz(t){const e=["command","cmd","meta"];return xr.isMac&&e.push("mod"),e.includes(t)}function Pz(t){const e=["control","ctrl"];return xr.isMac||e.push("mod"),e.includes(t)}function zz(t){const e=[];for(let n of t.split("-")){if(n=n.toLowerCase(),Dz(n)){e.push({type:"modifier",symbol:"⌘",key:"command",i18n:on.COMMAND_KEY});continue}if(Pz(n)){e.push({type:"modifier",symbol:"⌃",key:"control",i18n:on.CONTROL_KEY});continue}switch(n){case"shift":e.push({type:"modifier",symbol:"⇧",key:n,i18n:on.SHIFT_KEY});continue;case"alt":e.push({type:"modifier",symbol:"⌥",key:n,i18n:on.ALT_KEY});continue;case` +`:case"\r":case"enter":e.push({type:"named",symbol:"↵",key:n,i18n:on.ENTER_KEY});continue;case"backspace":e.push({type:"named",symbol:"⌫",key:n,i18n:on.BACKSPACE_KEY});continue;case"delete":e.push({type:"named",symbol:"⌦",key:n,i18n:on.DELETE_KEY});continue;case"escape":e.push({type:"named",symbol:"␛",key:n,i18n:on.ESCAPE_KEY});continue;case"tab":e.push({type:"named",symbol:"⇥",key:n,i18n:on.TAB_KEY});continue;case"capslock":e.push({type:"named",symbol:"⇪",key:n,i18n:on.CAPS_LOCK_KEY});continue;case"space":e.push({type:"named",symbol:"␣",key:n,i18n:on.SPACE_KEY});continue;case"pageup":e.push({type:"named",symbol:"⤒",key:n,i18n:on.PAGE_UP_KEY});continue;case"pagedown":e.push({type:"named",symbol:"⤓",key:n,i18n:on.PAGE_DOWN_KEY});continue;case"home":e.push({type:"named",key:n,i18n:on.HOME_KEY});continue;case"end":e.push({type:"named",key:n,i18n:on.END_KEY});continue;case"arrowleft":e.push({type:"named",symbol:"←",key:n,i18n:on.ARROW_LEFT_KEY});continue;case"arrowright":e.push({type:"named",symbol:"→",key:n,i18n:on.ARROW_RIGHT_KEY});continue;case"arrowup":e.push({type:"named",symbol:"→",key:n,i18n:on.ARROW_UP_KEY});continue;case"arrowdown":e.push({type:"named",symbol:"↓",key:n,i18n:on.ARROW_DOWN_KEY});continue;default:e.push({type:"char",key:n});continue}}return e}function Fz(t){const{node:e,predicate:n,descend:r=!0,action:o}=t;be(Zu(e),{code:re.INTERNAL,message:'Invalid "node" parameter passed to "findChildren".'}),be(Xe(n),{code:re.INTERNAL,message:'Invalid "predicate" parameter passed to "findChildren".'});const i=[];return e.descendants((s,l)=>{const a={node:s,pos:l};return n(a)&&(i.push(a),o==null||o(a)),r}),i}function Bz(t){const{type:e,...n}=t;return Fz({...n,predicate:r=>r.node.type===e})}function Hz(t,e={}){const{descend:n=!1,predicate:r,StepTypes:o}=e,i=gz(t,o),s=[];for(const l of i){const{start:a,end:u}=l;t.doc.nodesBetween(a,u,(c,d)=>(((r==null?void 0:r(c,d,l))??!0)&&s.push({node:c,pos:d}),n))}return s}function ed(t){const{regexp:e,type:n,getAttributes:r,ignoreWhitespace:o=!1,beforeDispatch:i,updateCaptured:s,shouldSkip:l,invalidMarks:a}=t;let u;const c=new zr(e,(d,h,p,f)=>{const{tr:g,schema:m}=d;u||(u=ke(n)?m.marks[n]:n,be(u,{code:re.SCHEMA,message:`Mark type: ${n} does not exist on the current schema.`}));let v=h[1],y=h[0];const b=HA({captureGroup:v,fullMatch:y,end:f,start:p,rule:c,state:d,ignoreWhitespace:o,invalidMarks:a,shouldSkip:l,updateCaptured:s});if(!b)return null;({start:p,end:f,captureGroup:v,fullMatch:y}=b);const x=Xe(r)?r(h):r;let k=f,w=[];if(v){const S=y.search(/\S/),T=p+y.indexOf(v),C=T+v.length;w=g.storedMarks??[],Cp&&g.delete(p+S,T),k=p+S+v.length}return g.addMark(p,k,u.create(x)),g.setStoredMarks(w),i==null||i({tr:g,match:h,start:p,end:f}),g});return c}function BA(t){const{regexp:e,type:n,getAttributes:r,beforeDispatch:o,shouldSkip:i,ignoreWhitespace:s=!1,updateCaptured:l,invalidMarks:a}=t,u=new zr(e,(c,d,h,p)=>{const f=Xe(r)?r(d):r,{tr:g,schema:m}=c,v=ke(n)?m.nodes[n]:n;let y=d[1],b=d[0];const x=HA({captureGroup:y,fullMatch:b,end:p,start:h,rule:u,state:c,ignoreWhitespace:s,invalidMarks:a,shouldSkip:i,updateCaptured:l});if(!x)return null;({start:h,end:p,captureGroup:y,fullMatch:b}=x),be(v,{code:re.SCHEMA,message:`No node exists for ${n} in the schema.`});const k=v.createAndFill(f);return k&&(g.replaceRangeWith(v.isBlock?g.doc.resolve(h).before():h,p,k),o==null||o({tr:g,match:[b,y??""],start:h,end:p})),g});return u}function HA({captureGroup:t,fullMatch:e,end:n,start:r,rule:o,ignoreWhitespace:i,shouldSkip:s,updateCaptured:l,state:a,invalidMarks:u}){var c;if(e==null)return null;const d=(l==null?void 0:l({captureGroup:t,fullMatch:e,start:r,end:n}))??{};t=d.captureGroup??t,e=d.fullMatch??e,r=d.start??r,n=d.end??n;const h=a.doc.resolve(r),p=a.doc.resolve(n);return u&&J1({$from:h,$to:p},u)||o.invalidMarks&&J1({$from:h,$to:p},o.invalidMarks)||i&&(t==null?void 0:t.trim())===""||s!=null&&s({state:a,captureGroup:t,fullMatch:e,start:r,end:n,ruleType:"mark"})||(c=o.shouldSkip)!=null&&c.call(o,{state:a,captureGroup:t,fullMatch:e,start:r,end:n,ruleType:"mark"})?null:{captureGroup:t,end:n,fullMatch:e,start:r}}var Uz=function(){const e=Array.prototype.slice.call(arguments).filter(Boolean),n={},r=[];e.forEach(i=>{(i?i.split(" "):[]).forEach(l=>{if(l.startsWith("atm_")){const[,a]=l.split("_");n[a]=l}else r.push(l)})});const o=[];for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&o.push(n[i]);return o.push(...r),o.join(" ")},Wz=Uz;const UA=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function Vz(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const WA=(t,e,n)=>{let r=Vz(t,n);if(!r)return!1;let o=VA(r);if(!o){let s=r.blockRange(),l=s&&Pl(s);return l==null?!1:(e&&e(t.tr.lift(s,l).scrollIntoView()),!0)}let i=o.nodeBefore;if(KA(t,o,e,-1))return!0;if(r.parent.content.size==0&&(Ql(i,"end")||_e.isSelectable(i)))for(let s=r.depth;;s--){let l=y1(t.doc,r.before(s),r.after(s),ae.empty);if(l&&l.slice.size1)break}return i.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0):!1};function Ql(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const jz=(t,e,n)=>{let{$head:r,empty:o}=t.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;i=VA(r)}let s=i&&i.nodeBefore;return!s||!_e.isSelectable(s)?!1:(e&&e(t.tr.setSelection(_e.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function VA(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function Gz(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset{let r=Gz(t,n);if(!r)return!1;let o=jA(r);if(!o)return!1;let i=o.nodeAfter;if(KA(t,o,e,1))return!0;if(r.parent.content.size==0&&(Ql(i,"start")||_e.isSelectable(i))){let s=y1(t.doc,r.before(),r.after(),ae.empty);if(s&&s.slice.size{let{$head:r,empty:o}=t.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset=0;e--){let n=t.node(e);if(t.index(e)+1{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(` +`).scrollIntoView()),!0)};function u0(t){for(let e=0;e{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),i=n.indexAfter(-1),s=u0(o.contentMatchAt(i));if(!s||!o.canReplaceWith(i,i,s))return!1;if(e){let l=n.after(),a=t.tr.replaceWith(l,l,s.createAndFill());a.setSelection(He.near(a.doc.resolve(l),1)),e(a.scrollIntoView())}return!0},qz=(t,e)=>{let n=t.selection,{$from:r,$to:o}=n;if(n instanceof er||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=u0(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!r.parentOffset&&o.index(){let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(zl(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let r=n.blockRange(),o=r&&Pl(r);return o==null?!1:(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)};function Jz(t){return(e,n)=>{let{$from:r,$to:o}=e.selection;if(e.selection instanceof _e&&e.selection.node.isBlock)return!r.parentOffset||!zl(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let i=[],s,l,a=!1,u=!1;for(let p=r.depth;;p--)if(r.node(p).isBlock){a=r.end(p)==r.pos+(r.depth-p),u=r.start(p)==r.pos-(r.depth-p),l=u0(r.node(p-1).contentMatchAt(r.indexAfter(p-1)));let g=t&&t(o.parent,a,r);i.unshift(g||(a&&l?{type:l}:null)),s=p;break}else{if(p==1)return!1;i.unshift(null)}let c=e.tr;(e.selection instanceof Oe||e.selection instanceof er)&&c.deleteSelection();let d=c.mapping.map(r.pos),h=zl(c.doc,d,i.length,i);if(h||(i[0]=l?{type:l}:null,h=zl(c.doc,d,i.length,i)),!h)return!1;if(c.split(d,i.length,i),!a&&u&&r.node(s).type!=l){let p=c.mapping.map(r.before(s)),f=c.doc.resolve(p);l&&r.node(s-1).canReplaceWith(f.index(),f.index()+1,l)&&c.setNodeMarkup(c.mapping.map(r.before(s)),l)}return n&&n(c.scrollIntoView()),!0}}const Qz=Jz(),eF=(t,e)=>{let{$from:n,to:r}=t.selection,o,i=n.sharedDepth(r);return i==0?!1:(o=n.before(i),e&&e(t.tr.setSelection(_e.create(t.doc,o))),!0)},tF=(t,e)=>(e&&e(t.tr.setSelection(new er(t.doc))),!0);function nF(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(o.isTextblock||Lu(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function KA(t,e,n,r){let o=e.nodeBefore,i=e.nodeAfter,s,l,a=o.type.spec.isolating||i.type.spec.isolating;if(!a&&nF(t,e,n))return!0;let u=!a&&e.parent.canReplace(e.index(),e.index()+1);if(u&&(s=(l=o.contentMatchAt(o.childCount)).findWrapping(i.type))&&l.matchType(s[0]||i.type).validEnd){if(n){let p=e.pos+i.nodeSize,f=J.empty;for(let v=s.length-1;v>=0;v--)f=J.from(s[v].create(null,f));f=J.from(o.copy(f));let g=t.tr.step(new Gt(e.pos-1,p,e.pos,p,new ae(f,1,0),s.length,!0)),m=g.doc.resolve(p+2*s.length);m.nodeAfter&&m.nodeAfter.type==o.type&&Lu(g.doc,m.pos)&&g.join(m.pos),n(g.scrollIntoView())}return!0}let c=i.type.spec.isolating||r>0&&a?null:He.findFrom(e,1),d=c&&c.$from.blockRange(c.$to),h=d&&Pl(d);if(h!=null&&h>=e.depth)return n&&n(t.tr.lift(d,h).scrollIntoView()),!0;if(u&&Ql(i,"start",!0)&&Ql(o,"end")){let p=o,f=[];for(;f.push(p),!p.isTextblock;)p=p.lastChild;let g=i,m=1;for(;!g.isTextblock;g=g.firstChild)m++;if(p.canReplace(p.childCount,p.childCount,g.content)){if(n){let v=J.empty;for(let b=f.length-1;b>=0;b--)v=J.from(f[b].copy(v));let y=t.tr.step(new Gt(e.pos-f.length,e.pos+i.nodeSize,e.pos+m,e.pos+i.nodeSize-m,new ae(v,f.length,0),0,!0));n(y.scrollIntoView())}return!0}}return!1}function YA(t){return function(e,n){let r=e.selection,o=t<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return o.node(i).isTextblock?(n&&n(e.tr.setSelection(Oe.create(e.doc,t<0?o.start(i):o.end(i)))),!0):!1}}const rF=YA(-1),oF=YA(1);function iF(t,e,n,r){for(let o=0;o{if(l||!r&&a.isAtom&&a.isInline&&u>=i.pos&&u+a.nodeSize<=s.pos)return!1;l=a.inlineContent&&a.type.allowsMarkType(n)}),l)return!0}return!1}function sF(t){let e=[];for(let n=0;n{if(i.isAtom&&i.content.size&&i.isInline&&s>=r.pos&&s+i.nodeSize<=o.pos)return s+1>r.pos&&e.push(new k1(r,r.doc.resolve(s+1))),r=r.doc.resolve(s+1+i.content.size),!1}),r.poss.doc.rangeHasMark(p.$from.pos,p.$to.pos,t)):d=!c.every(p=>{let f=!1;return h.doc.nodesBetween(p.$from.pos,p.$to.pos,(g,m,v)=>{if(f)return!1;f=!t.isInSet(g.marks)&&!!v&&v.type.allowsMarkType(t)&&!(g.isText&&/^\s*$/.test(g.textBetween(Math.max(0,p.$from.pos-m),Math.min(g.nodeSize,p.$to.pos-m))))}),!f});for(let p=0;p",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},lF=typeof navigator<"u"&&/Mac/.test(navigator.platform),cF=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Rn=0;Rn<10;Rn++)ks[48+Rn]=ks[96+Rn]=String(Rn);for(var Rn=1;Rn<=24;Rn++)ks[Rn+111]="F"+Rn;for(var Rn=65;Rn<=90;Rn++)ks[Rn]=String.fromCharCode(Rn+32),af[Rn]=String.fromCharCode(Rn);for(var p0 in ks)af.hasOwnProperty(p0)||(af[p0]=ks[p0]);function uF(t){var e=lF&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||cF&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?af:ks)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const dF=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function hF(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,o,i,s;for(let l=0;l127)&&(i=ks[r.keyCode])&&i!=o){let l=e[f0(i,r)];if(l&&l(n.state,n.dispatch,n))return!0}}return!1}}function fF(t){const e=as(t,(i,s)=>(s.priority??tt.Low)-(i.priority??tt.Low)),n=[],r=[];for(const i of e)wF(i)?n.push(i):r.push(i);let o;return new qo({key:gF,view:i=>(o=i,{}),props:{transformPasted:i=>{var s,l,a;const u=o.state.selection.$from,c=u.node().type.name,d=new Set(u.marks().map(h=>h.type.name));for(const h of n){if((s=h.ignoredNodes)!=null&&s.includes(c)||(l=h.ignoredMarks)!=null&&l.some(y=>d.has(y)))continue;const p=((a=i.content.firstChild)==null?void 0:a.textContent)??"",f=!o.state.selection.empty&&i.content.childCount===1&&p,g=Ll(p,h.regexp)[0];if(f&&g&&h.type==="mark"&&h.replaceSelection){const{from:y,to:b}=o.state.selection,x=o.state.doc.slice(y,b),k=x.content.textBetween(0,x.content.size);if(typeof h.replaceSelection!="boolean"?h.replaceSelection(k):h.replaceSelection){const w=[],{getAttributes:S,markType:T}=h,C=Xe(S)?S(g,!0):S,O=T.create(C);return x.content.forEach(R=>{if(R.isText){const _=O.addToSet(R.marks);w.push(R.mark(_))}}),ae.maxOpen(J.fromArray(w))}}const{nodes:m,transformed:v}=bF(i.content,h,o.state.schema);v&&(i=h.type==="node"&&h.nodeType.isBlock?new ae(J.fromArray(m),0,0):new ae(J.fromArray(m),i.openStart,i.openEnd))}return CF(i)},handleDOMEvents:{paste:(i,s)=>{var l,a;const u=s;if(!((a=(l=i.props).editable)!=null&&a.call(l,i.state)))return!1;const{clipboardData:c}=u;if(!c)return!1;const d=[...c.items].map(p=>p.getAsFile()).filter(p=>!!p);if(d.length===0)return!1;const{selection:h}=i.state;for(const{fileHandler:p,regexp:f}of r){const g=f?d.filter(m=>f.test(m.type)):d;if(g.length!==0&&p({event:u,files:g,selection:h,view:i,type:"paste"}))return u.preventDefault(),!0}return!1},drop:(i,s)=>{var l,a,u;const c=s;if(!((a=(l=i.props).editable)!=null&&a.call(l,i.state)))return!1;const{dataTransfer:d,clientX:h,clientY:p}=c;if(!d)return!1;const f=SF(c);if(f.length===0)return!1;const g=((u=i.posAtCoords({left:h,top:p}))==null?void 0:u.pos)??i.state.selection.anchor;for(const{fileHandler:m,regexp:v}of r){const y=v?f.filter(b=>v.test(b.type)):f;if(y.length!==0&&m({event:c,files:y,pos:g,view:i,type:"drop"}))return c.preventDefault(),!0}return!1}}}})}var gF=new wa("pasteRule");function m0(t,e){return function n(r){const{fragment:o,rule:i,nodes:s}=r,{regexp:l,ignoreWhitespace:a,ignoredMarks:u,ignoredNodes:c}=i;let d=!1;return o.forEach(h=>{if(c!=null&&c.includes(h.type.name)||kF(h)){s.push(h);return}if(!h.isText){const g=n({fragment:h.content,rule:i,nodes:[]});d||(d=g.transformed);const m=J.fromArray(g.nodes);h.type.validContent(m)?s.push(h.copy(m)):s.push(...g.nodes);return}if(h.marks.some(g=>EF(g)||(u==null?void 0:u.includes(g.type.name)))){s.push(h);return}const p=h.text??"";let f=0;for(const g of Ll(p,l)){const m=g[1],v=g[0];if(a&&(m==null?void 0:m.trim())===""||!v)return;const y=g.index,b=y+v.length;y>f&&s.push(h.cut(f,y));let x=h.cut(y,b);if(v&&m){const k=v.search(/\S/),w=y+v.indexOf(m),S=w+m.length;k&&s.push(h.cut(y,y+k)),x=h.cut(w,S)}t({nodes:s,rule:i,textNode:x,match:g,schema:e}),d=!0,f=b}p&&f0?[...r.files]:(n=r.items)!=null&&n.length?[...r.items].map(o=>o.getAsFile()).filter(o=>!!o):[]:[]}function CF(t){const e=ae.maxOpen(t.content);return e.openStart({events:{},emit(t,...e){(this.events[t]||[]).forEach(n=>n(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(n=>n!==e)}});function lhe(t,e){}var TF=Object.defineProperty,AF=Object.getOwnPropertyDescriptor,ge=(t,e,n,r)=>{for(var o=r>1?void 0:r?AF(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&TF(e,n,o),o},ZA=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},ce=(t,e,n)=>(ZA(t,e,"read from private field"),n?n.call(t):e.get(t)),qt=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},gn=(t,e,n,r)=>(ZA(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);function _F(t,e){return t===e}function JA(t){const{previousOptions:e,update:n,equals:r=_F}=t,o=pa({...e,...n}),i=ye(),s=Su(e);for(const a of s){const u=e[a],c=o[a];if(r(u,c)){i[a]={changed:!1};continue}i[a]={changed:!0,previousValue:u,value:c}}const l=a=>{const u=ye();for(const c of a){const d=i[c];d!=null&&d.changed&&(u[c]=d.value)}return u};return{changes:pa(i),options:o,pickChanged:l}}var RF={[re.DUPLICATE_HELPER_NAMES]:"helper method",[re.DUPLICATE_COMMAND_NAMES]:"command method"};function QA(t){const{name:e,set:n,code:r}=t,o=RF[r];be(!n.has(e),{code:r,message:`There is a naming conflict for the name: ${e} used in this '${o}'. Please rename or remove from the editor to avoid runtime errors.`}),n.add(e)}function ec(...t){return $l(Wz(...t).split(" ")).join(" ")}var e_="__IGNORE__",MF="__ALL__",tc=class{constructor(t,...[e]){this["~O"]={},this._mappedHandlers=ye(),this.populateMappedHandlers(),this._options=this._initialOptions=FS(t,this.constructor.defaultOptions,e??ye(),this.createDefaultHandlerOptions()),this._dynamicKeys=this.getDynamicKeys(),this.init()}get options(){return this._options}get dynamicKeys(){return this._dynamicKeys}get initialOptions(){return this._initialOptions}init(){}getDynamicKeys(){const t=[],{customHandlerKeys:e,handlerKeys:n,staticKeys:r}=this.constructor;for(const o of Su(this._options))r.includes(o)||n.includes(o)||e.includes(o)||t.push(o);return t}ensureAllKeysAreDynamic(t){}setOptions(t){var e;const n=this.getDynamicOptions();this.ensureAllKeysAreDynamic(t);const{changes:r,options:o,pickChanged:i}=JA({previousOptions:n,update:t});this.updateDynamicOptions(o),(e=this.onSetOptions)==null||e.call(this,{reason:"set",changes:r,options:o,pickChanged:i,initialOptions:this._initialOptions})}resetOptions(){var t;const e=this.getDynamicOptions(),{changes:n,options:r,pickChanged:o}=JA({previousOptions:e,update:this._initialOptions});this.updateDynamicOptions(r),(t=this.onSetOptions)==null||t.call(this,{reason:"reset",options:r,changes:n,pickChanged:o,initialOptions:this._initialOptions})}getDynamicOptions(){return Qv(this._options,[...this.constructor.customHandlerKeys,...this.constructor.handlerKeys])}updateDynamicOptions(t){this._options={...this._options,...t}}populateMappedHandlers(){for(const t of this.constructor.handlerKeys)this._mappedHandlers[t]=[]}createDefaultHandlerOptions(){const t=ye();for(const e of this.constructor.handlerKeys)t[e]=(...n)=>{var r;const{handlerKeyOptions:o}=this.constructor,i=(r=o[e])==null?void 0:r.reducer;let s=i==null?void 0:i.getDefault(...n);for(const[,l]of this._mappedHandlers[e]){const a=l(...n);if(s=i?i.accumulator(s,a,...n):a,OF(o,s,e))return s}return s};return t}addHandler(t,e,n=tt.Default){return this._mappedHandlers[t].push([n,e]),this.sortHandlers(t),()=>this._mappedHandlers[t]=this._mappedHandlers[t].filter(([,r])=>r!==e)}hasHandlers(t){return(this._mappedHandlers[t]??[]).length>0}sortHandlers(t){this._mappedHandlers[t]=as(this._mappedHandlers[t],([e],[n])=>n-e)}addCustomHandler(t,e){var n;return((n=this.onAddCustomHandler)==null?void 0:n.call(this,{[t]:e}))??zS}};tc.defaultOptions={},tc.staticKeys=[],tc.handlerKeys=[],tc.handlerKeyOptions={},tc.customHandlerKeys=[];function OF(t,e,n){const{[MF]:r}=t,o=t[n];return!r&&!o?!1:!!(o&&o.earlyReturnValue!==e_&&(Xe(o.earlyReturnValue)?o.earlyReturnValue(e)===!0:e===o.earlyReturnValue)||r&&r.earlyReturnValue!==e_&&(Xe(r.earlyReturnValue)?r.earlyReturnValue(e)===!0:e===r.earlyReturnValue))}var cf=class extends tc{constructor(...t){super(IF,...t),this["~E"]={},this._extensions=i1(this.createExtensions(),e=>e.constructor),this.extensionMap=new Map;for(const e of this._extensions)this.extensionMap.set(e.constructor,e)}get priority(){return this.priorityOverride??this.options.priority??this.constructor.defaultPriority}get constructorName(){return`${RS(this.name)}Extension`}get store(){return be(this._store,{code:re.MANAGER_PHASE_ERROR,message:"An error occurred while attempting to access the 'extension.store' when the Manager has not yet set created the lifecycle methods."}),pa(this._store,{requireKeys:!0})}get extensions(){return this._extensions}replaceChildExtension(t,e){this.extensionMap.has(t)&&(this.extensionMap.set(t,e),this._extensions=this.extensions.map(n=>e.constructor===t?e:n))}createExtensions(){return[]}getExtension(t){const e=this.extensionMap.get(t);return be(e,{code:re.INVALID_GET_EXTENSION,message:`'${t.name}' does not exist within the preset: '${this.name}'`}),e}isOfType(t){return this.constructor===t}setStore(t){this._store||(this._store=t)}clone(...t){return new this.constructor(...t)}setPriority(t){this.priorityOverride=t}};cf.defaultPriority=tt.Default;var ct=class extends cf{static get[bi](){return hn.PlainExtensionConstructor}get[bi](){return hn.PlainExtension}},Es=class extends cf{static get[bi](){return hn.MarkExtensionConstructor}get[bi](){return hn.MarkExtension}get type(){return _t(this.store.schema.marks,this.name)}constructor(...t){super(...t)}};Es.disableExtraAttributes=!1;var Mn=class extends cf{static get[bi](){return hn.NodeExtensionConstructor}get[bi](){return hn.NodeExtension}get type(){return _t(this.store.schema.nodes,this.name)}constructor(...t){super(...t)}};Mn.disableExtraAttributes=!1;var IF={priority:void 0,extraAttributes:{},disableExtraAttributes:!1,exclude:{}};function t_(t){return ql(t)&&Zl(t,[hn.PlainExtension,hn.MarkExtension,hn.NodeExtension])}function LF(t){return ql(t)&&Zl(t,[hn.PlainExtensionConstructor,hn.MarkExtensionConstructor,hn.NodeExtensionConstructor])}function n_(t){return ql(t)&&Zl(t,hn.PlainExtension)}function td(t){return ql(t)&&Zl(t,hn.NodeExtension)}function uf(t){return ql(t)&&Zl(t,hn.MarkExtension)}function Ne(t){return e=>{const{defaultOptions:n,customHandlerKeys:r,handlerKeys:o,staticKeys:i,defaultPriority:s,handlerKeyOptions:l,...a}=t,u=e;n&&(u.defaultOptions=n),s&&(u.defaultPriority=s),l&&(u.handlerKeyOptions=l),u.staticKeys=i??[],u.handlerKeys=o??[],u.customHandlerKeys=r??[];for(const[c,d]of Object.entries(a))u[c]||(u[c]=d);return u}}var NF=class extends ct{constructor(){super(...arguments),this.attributeList=[],this.attributeObject=ye(),this.updateAttributes=(t=!0)=>{this.transformAttributes(),t&&this.store.commands.forceUpdate("attributes")}}get name(){return"attributes"}onCreate(){this.transformAttributes(),this.store.setExtensionStore("updateAttributes",this.updateAttributes)}transformAttributes(){var t,e,n;if(this.attributeObject=ye(),(t=this.store.managerSettings.exclude)!=null&&t.attributes){this.store.setStoreKey("attributes",this.attributeObject);return}this.attributeList=[];for(const r of this.store.extensions){if((e=r.options.exclude)!=null&&e.attributes)continue;const o=(n=r.createAttributes)==null?void 0:n.call(r),i={...o,class:ec(...r.classNames??[],o==null?void 0:o.class)};this.attributeList.unshift(i)}for(const r of this.attributeList)this.attributeObject={...this.attributeObject,...r,class:ec(this.attributeObject.class,r.class)};this.store.setStoreKey("attributes",this.attributeObject)}};function nt(t={}){return(e,n,r)=>{(e.decoratedHelpers??(e.decoratedHelpers={}))[n]=t}}function le(t={}){return(e,n,r)=>{(e.decoratedCommands??(e.decoratedCommands={}))[n]=t}}function Zt(t){return(e,n,r)=>{(e.decoratedKeybindings??(e.decoratedKeybindings={}))[n]=t}}var $F=class{constructor(t){this.promiseCreator=t,this.failureHandlers=[],this.successHandlers=[],this.validateHandlers=[],this.generateCommand=()=>e=>{let n=!0;const{view:r,tr:o,dispatch:i}=e;if(!r)return!1;for(const l of this.validateHandlers)if(!l({...e,dispatch:()=>{}})){n=!1;break}return!i||!n?n:(this.promiseCreator(e).then(l=>{this.runHandlers(this.successHandlers,{value:l,state:r.state,tr:r.state.tr,dispatch:r.dispatch,view:r})}).catch(l=>{this.runHandlers(this.failureHandlers,{error:l,state:r.state,tr:r.state.tr,dispatch:r.dispatch,view:r})}),i(o),!0)}}validate(t,e="push"){return this.validateHandlers[e](t),this}success(t,e="push"){return this.successHandlers[e](t),this}failure(t,e="push"){return this.failureHandlers[e](t),this}runHandlers(t,e){var n;for(const r of t)if(!r({...e,dispatch:()=>{}}))break;(n=e.dispatch)==null||n.call(e,e.tr)}};function Ss(t){const{type:e,attrs:n,range:r,selection:o}=t;return i=>{const{dispatch:s,tr:l,state:a}=i,u=ke(e)?a.schema.marks[e]:e;if(be(u,{code:re.SCHEMA,message:`Mark type: ${e} does not exist on the current schema.`}),r||o){const{from:c,to:d}=or(o??r??l.selection,l.doc);return ef({trState:l,type:e,...r})?s==null||s(l.removeMark(c,d,u)):s==null||s(l.addMark(c,d,u.create(n))),!0}return Yu(aF(u,n))(i)}}function DF(t,e,n){for(const{$from:r,$to:o}of n){let i=r.depth===0?e.type.allowsMarkType(t):!1;if(e.nodesBetween(r.pos,o.pos,s=>{if(i)return!1;i=s.inlineContent&&s.type.allowsMarkType(t)}),i)return!0}return!1}function PF(t,e,n){return({tr:r,dispatch:o,state:i})=>{const s=or(n??r.selection,r.doc),l=yz(s),a=ke(t)?i.schema.marks[t]:t;if(be(a,{code:re.SCHEMA,message:`Mark type: ${t} does not exist on the current schema.`}),s.empty&&!l||!DF(a,r.doc,s.ranges))return!1;if(!o)return!0;if(l)return r.removeStoredMark(a),e&&r.addStoredMark(a.create(e)),o(r),!0;let u=!1;for(const{$from:c,$to:d}of s.ranges){if(u)break;u=r.doc.rangeHasMark(c.pos,d.pos,a)}for(const{$from:c,$to:d}of s.ranges)u&&r.removeMark(c.pos,d.pos,a),e&&r.addMark(c.pos,d.pos,a.create(e));return o(r),!0}}function zF(t,e={}){return({tr:n,dispatch:r,state:o})=>{const i=o.schema,s=n.selection,{from:l=s.from,to:a=l??s.to,marks:u={}}=e;if(!r)return!0;n.insertText(t,l,a);const c=_t(n.steps,n.steps.length-1).getMap().map(a);for(const[d,h]of nn(u))n.addMark(l,c,_t(i.marks,d).create(h));return r(n),!0}}var We=class extends ct{constructor(){super(...arguments),this.decorated=new Map,this.forceUpdateTransaction=(t,...e)=>{const{forcedUpdates:n}=this.getCommandMeta(t);return this.setCommandMeta(t,{forcedUpdates:$l([...n,...e])}),t}}get name(){return"commands"}get transaction(){const t=this.store.getState();this._transaction||(this._transaction=t.tr);const e=this._transaction.before.eq(t.doc),n=!ss(this._transaction.steps);if(!e){const r=t.tr;if(n)for(const o of this._transaction.steps)r.step(o);this._transaction=r}return this._transaction}onCreate(){this.store.setStoreKey("getForcedUpdates",this.getForcedUpdates.bind(this))}onView(t){var e;const{extensions:n,helpers:r}=this.store,o=ye(),i=new Set;let s=ye();const l=u=>{var c;const d=ye(),h=()=>u??this.transaction;let p=[];const f=()=>p;for(const[m,v]of Object.entries(o))(c=s[m])!=null&&c.disableChaining||(d[m]=this.chainedFactory({chain:d,command:v.original,getTr:h,getChain:f}));const g=m=>{be(m===h(),{message:"Chaining currently only supports `CommandFunction` methods which do not use the `state.tr` property. Instead you should use the provided `tr` property."})};return d.run=(m={})=>{const v=p;p=[];for(const y of v)if(!y(g)&&m.exitEarly)return;t.dispatch(h())},d.tr=()=>{const m=p;p=[];for(const v of m)v(g);return h()},d.enabled=()=>{for(const m of p)if(!m())return!1;return!0},d.new=m=>l(m),d};for(const u of n){const c=((e=u.createCommands)==null?void 0:e.call(u))??{},d=u.decoratedCommands??{},h={};s={...s,decoratedCommands:d};for(const[p,f]of Object.entries(d)){const g=ke(f.shortcut)&&f.shortcut.startsWith("_|")?{shortcut:r.getNamedShortcut(f.shortcut,u.options)}:void 0;this.updateDecorated(p,{...f,name:u.name,...g}),c[p]=u[p].bind(u),f.active&&(h[p]=()=>{var m;return((m=f.active)==null?void 0:m.call(f,u.options,this.store))??!1})}Au(c)||this.addCommands({active:h,names:i,commands:o,extensionCommands:c})}const a=l();for(const[u,c]of Object.entries(a))l[u]=c;this.store.setStoreKey("commands",o),this.store.setStoreKey("chain",l),this.store.setExtensionStore("commands",o),this.store.setExtensionStore("chain",l)}onStateUpdate({state:t}){this._transaction=t.tr}createPlugin(){return{}}customDispatch(t){return t}insertText(t,e={}){return ke(t)?zF(t,e):this.store.createPlaceholderCommand({promise:t,placeholder:{type:"inline"},onSuccess:(n,r,o)=>this.insertText(n,{...e,...r})(o)}).generateCommand()}selectText(t,e={}){return({tr:n,dispatch:r})=>{const o=or(t,n.doc);return n.selection.anchor===o.anchor&&n.selection.head===o.head&&!e.forceUpdate?!1:(r==null||r(n.setSelection(o)),!0)}}selectMark(t){return e=>{const{tr:n}=e,r=Ti(n.selection.$from,t);return r?this.store.commands.selectText.original({from:r.from,to:r.to})(e):!1}}delete(t){return({tr:e,dispatch:n})=>{const{from:r,to:o}=t??e.selection;return n==null||n(e.delete(r,o)),!0}}emptyUpdate(t){return({tr:e,dispatch:n})=>(n&&(t==null||t(),n(e)),!0)}forceUpdate(...t){return({tr:e,dispatch:n})=>(n==null||n(this.forceUpdateTransaction(e,...t)),!0)}updateNodeAttributes(t,e){return({tr:n,dispatch:r})=>(r==null||r(n.setNodeMarkup(t,void 0,e)),!0)}setContent(t,e){return n=>{const{tr:r,dispatch:o}=n,i=this.store.manager.createState({content:t,selection:e});return i?(o==null||o(r.replaceRangeWith(0,r.doc.nodeSize-2,i.doc)),!0):!1}}resetContent(){return t=>{const{tr:e,dispatch:n}=t,r=this.store.manager.createEmptyDoc();return r?this.setContent(r)(t):(n==null||n(e.delete(0,e.doc.nodeSize)),!0)}}emptySelection(){return({tr:t,dispatch:e})=>t.selection.empty?!1:(e==null||e(t.setSelection(Oe.near(t.selection.$anchor))),!0)}insertNewLine(){return({dispatch:t,tr:e})=>ws(e.selection)?(t==null||t(e.insertText(` +`)),!0):!1}insertNode(t,e={}){return({dispatch:n,tr:r,state:o})=>{var i;const{attrs:s,range:l,selection:a,replaceEmptyParentBlock:u=!1}=e,{from:c,to:d,$from:h}=or(a??l??r.selection,r.doc);if(Zu(t)||lz(t)){const v=h.before(h.depth);return n==null||n(u&&c===d&&nf(h.parent)?r.replaceWith(v,v+h.parent.nodeSize,t):r.replaceWith(c,d,t)),!0}const p=ke(t)?o.schema.nodes[t]:t;be(p,{code:re.SCHEMA,message:`The requested node type ${t} does not exist in the schema.`});const f=(i=e.marks)==null?void 0:i.map(v=>{if(v instanceof Ge)return v;const y=ke(v)?o.schema.marks[v]:v;return be(y,{code:re.SCHEMA,message:`The requested mark type ${v} does not exist in the schema.`}),y.create()}),g=p.createAndFill(s,ke(e.content)?o.schema.text(e.content):e.content,f);if(!g)return!1;const m=c!==d;return n==null||n(m?r.replaceRangeWith(c,d,g):r.insert(c,g)),!0}}focus(t){return e=>{const{dispatch:n,tr:r}=e,{view:o}=this.store;if(t===!1||o.hasFocus()&&(t===void 0||t===!0))return!1;if(t===void 0||t===!0){const{from:i=0,to:s=i}=r.selection;t={from:i,to:s}}return n&&this.delayedFocus(),this.selectText(t)(e)}}blur(t){return e=>{const{view:n}=this.store;return n.hasFocus()?(requestAnimationFrame(()=>{n.dom.blur()}),t?this.selectText(t)(e):!0):!1}}setBlockNodeType(t,e,n,r=!0){return Qu(t,e,n,r)}toggleWrappingNode(t,e,n){return PA(t,e,n)}toggleBlockNodeItem(t){return c0(t)}wrapInNode(t,e,n){return DA(t,e,n)}applyMark(t,e,n){return PF(t,e,n)}toggleMark(t){return Ss(t)}removeMark(t){return FA(t)}setMeta(t,e){return({tr:n})=>(n.setMeta(t,e),!0)}selectAll(){return this.selectText("all")}copy(){return t=>t.tr.selection.empty?!1:(t.dispatch&&document.execCommand("copy"),!0)}paste(){return this.store.createPlaceholderCommand({promise:async()=>{var t;return(t=navigator.clipboard)!=null&&t.readText?await navigator.clipboard.readText():""},placeholder:{type:"inline"},onSuccess:(t,e,n)=>this.insertNode(a0({content:t,schema:n.state.schema}),{selection:e})(n)}).generateCommand()}cut(){return t=>t.tr.selection.empty?!1:(t.dispatch&&document.execCommand("cut"),!0)}replaceText(t){return $z(t)}getAllCommandOptions(){const t={};for(const[e,n]of this.decorated)Au(n)||(t[e]=n);return t}getCommandOptions(t){return this.decorated.get(t)}getCommandProp(){return{tr:this.transaction,dispatch:this.store.view.dispatch,state:this.store.view.state,view:this.store.view}}updateDecorated(t,e){if(!e){this.decorated.delete(t);return}const n=this.decorated.get(t)??{name:""};this.decorated.set(t,{...n,...e})}handleIosFocus(){xr.isIos&&this.store.view.dom.focus()}delayedFocus(){this.handleIosFocus(),requestAnimationFrame(()=>{this.store.view.focus(),this.store.view.dispatch(this.transaction.scrollIntoView())})}getForcedUpdates(t){return this.getCommandMeta(t).forcedUpdates}getCommandMeta(t){const e=t.getMeta(this.pluginKey)??{};return{...FF,...e}}setCommandMeta(t,e){const n=this.getCommandMeta(t);t.setMeta(this.pluginKey,{...n,...e})}addCommands(t){const{extensionCommands:e,commands:n,names:r,active:o}=t;for(const[i,s]of nn(e))QA({name:i,set:r,code:re.DUPLICATE_COMMAND_NAMES}),be(!BF.has(i),{code:re.DUPLICATE_COMMAND_NAMES,message:"The command name you chose is forbidden."}),n[i]=this.createUnchainedCommand(s,o[i])}unchainedFactory(t){return(...e)=>{const{shouldDispatch:n=!0,command:r}=t,{view:o}=this.store,{state:i}=o;let s;return n&&(s=o.dispatch),r(...e)({state:i,dispatch:s,view:o,tr:i.tr})}}createUnchainedCommand(t,e){const n=this.unchainedFactory({command:t});return n.enabled=this.unchainedFactory({command:t,shouldDispatch:!1}),n.isEnabled=n.enabled,n.original=t,n.active=e,n}chainedFactory(t){return(...e)=>{const{chain:n,command:r,getTr:o,getChain:i}=t,s=i(),{view:l}=this.store,{state:a}=l;return s.push(u=>r(...e)({state:a,dispatch:u,view:l,tr:o()})),n}}};ge([le()],We.prototype,"customDispatch",1),ge([le()],We.prototype,"insertText",1),ge([le()],We.prototype,"selectText",1),ge([le()],We.prototype,"selectMark",1),ge([le()],We.prototype,"delete",1),ge([le()],We.prototype,"emptyUpdate",1),ge([le()],We.prototype,"forceUpdate",1),ge([le()],We.prototype,"updateNodeAttributes",1),ge([le()],We.prototype,"setContent",1),ge([le()],We.prototype,"resetContent",1),ge([le()],We.prototype,"emptySelection",1),ge([le()],We.prototype,"insertNewLine",1),ge([le()],We.prototype,"insertNode",1),ge([le()],We.prototype,"focus",1),ge([le()],We.prototype,"blur",1),ge([le()],We.prototype,"setBlockNodeType",1),ge([le()],We.prototype,"toggleWrappingNode",1),ge([le()],We.prototype,"toggleBlockNodeItem",1),ge([le()],We.prototype,"wrapInNode",1),ge([le()],We.prototype,"applyMark",1),ge([le()],We.prototype,"toggleMark",1),ge([le()],We.prototype,"removeMark",1),ge([le()],We.prototype,"setMeta",1),ge([le({description:({t})=>t(us.SELECT_ALL_DESCRIPTION),label:({t})=>t(us.SELECT_ALL_LABEL),shortcut:oe.SelectAll})],We.prototype,"selectAll",1),ge([le({description:({t})=>t(us.COPY_DESCRIPTION),label:({t})=>t(us.COPY_LABEL),shortcut:oe.Copy,icon:"fileCopyLine"})],We.prototype,"copy",1),ge([le({description:({t})=>t(us.PASTE_DESCRIPTION),label:({t})=>t(us.PASTE_LABEL),shortcut:oe.Paste,icon:"clipboardLine"})],We.prototype,"paste",1),ge([le({description:({t})=>t(us.CUT_DESCRIPTION),label:({t})=>t(us.CUT_LABEL),shortcut:oe.Cut,icon:"scissorsFill"})],We.prototype,"cut",1),ge([le()],We.prototype,"replaceText",1),ge([nt()],We.prototype,"getAllCommandOptions",1),ge([nt()],We.prototype,"getCommandOptions",1),ge([nt()],We.prototype,"getCommandProp",1),We=ge([Ne({defaultPriority:tt.Highest,defaultOptions:{trackerClassName:"remirror-tracker-position",trackerNodeName:"span"},staticKeys:["trackerClassName","trackerNodeName"]})],We);var FF={forcedUpdates:[]},BF=new Set(["run","chain","original","raw","enabled","tr","new"]),Oo=class extends ct{constructor(){super(...arguments),this.placeholders=Ue.empty,this.placeholderWidgets=new Map,this.createPlaceholderCommand=t=>{const e=Nl(),{promise:n,placeholder:r,onFailure:o,onSuccess:i}=t;return new $F(n).validate(s=>this.addPlaceholder(e,r)(s)).success(s=>{const{state:l,tr:a,dispatch:u,view:c,value:d}=s,h=this.store.helpers.findPlaceholder(e);if(!h){const p=new Error("The placeholder has been removed");return(o==null?void 0:o({error:p,state:l,tr:a,dispatch:u,view:c}))??!1}return this.removePlaceholder(e)({state:l,tr:a,view:c,dispatch:()=>{}}),i(d,h,{state:l,tr:a,dispatch:u,view:c})}).failure(s=>(this.removePlaceholder(e)({...s,dispatch:()=>{}}),(o==null?void 0:o(s))??!1))}}get name(){return"decorations"}onCreate(){this.store.setExtensionStore("createPlaceholderCommand",this.createPlaceholderCommand)}createPlugin(){return{state:{init:()=>{},apply:t=>{var e,n,r,o,i,s;const{added:l,clearTrackers:a,removed:u,updated:c}=this.getMeta(t);if(a){this.placeholders=Ue.empty;for(const[,d]of this.placeholderWidgets)(n=(e=d.spec).onDestroy)==null||n.call(e,this.store.view,d.spec.element);this.placeholderWidgets.clear();return}this.placeholders=this.placeholders.map(t.mapping,t.doc,{onRemove:d=>{var h,p;const f=this.placeholderWidgets.get(d.id);f&&((p=(h=f.spec).onDestroy)==null||p.call(h,this.store.view,f.spec.element))}});for(const[,d]of this.placeholderWidgets)(o=(r=d.spec).onUpdate)==null||o.call(r,this.store.view,d.from,d.spec.element,d.spec.data);for(const d of l){if(d.type==="inline"){this.addInlinePlaceholder(d,t);continue}if(d.type==="node"){this.addNodePlaceholder(d,t);continue}if(d.type==="widget"){this.addWidgetPlaceholder(d,t);continue}}for(const{id:d,data:h}of c){const p=this.placeholderWidgets.get(d);if(!p)continue;const f=mt.widget(p.from,p.spec.element,{...p.spec,data:h});this.placeholders=this.placeholders.remove([p]).add(t.doc,[f]),this.placeholderWidgets.set(d,f)}for(const d of u){const h=this.placeholders.find(void 0,void 0,f=>f.id===d&&f.__type===nc),p=this.placeholderWidgets.get(d);p&&((s=(i=p.spec).onDestroy)==null||s.call(i,this.store.view,p.spec.element)),this.placeholders=this.placeholders.remove(h),this.placeholderWidgets.delete(d)}}},props:{decorations:t=>{let e=this.options.decorations(t);e=e.add(t.doc,this.placeholders.find());for(const n of this.store.extensions){if(!n.createDecorations)continue;const r=n.createDecorations(t).find();e=e.add(t.doc,r)}return e},handleDOMEvents:{blur:t=>(this.options.persistentSelectionClass&&t.dispatch(t.state.tr.setMeta(r_,!1)),!1),focus:t=>(this.options.persistentSelectionClass&&t.dispatch(t.state.tr.setMeta(r_,!0)),!1)}}}}updateDecorations(){return({tr:t,dispatch:e})=>(e==null||e(t),!0)}addPlaceholder(t,e,n){return({dispatch:r,tr:o})=>this.addPlaceholderTransaction(t,e,o,!r)?(r==null||r(n?o.deleteSelection():o),!0):!1}updatePlaceholder(t,e){return({dispatch:n,tr:r})=>this.updatePlaceholderTransaction({id:t,data:e,tr:r,checkOnly:!n})?(n==null||n(r),!0):!1}removePlaceholder(t){return({dispatch:e,tr:n})=>this.removePlaceholderTransaction({id:t,tr:n,checkOnly:!e})?(e==null||e(n),!0):!1}clearPlaceholders(){return({tr:t,dispatch:e})=>this.clearPlaceholdersTransaction({tr:t,checkOnly:!e})?(e==null||e(t),!0):!1}findPlaceholder(t){return this.findAllPlaceholders().get(t)}findAllPlaceholders(){const t=new Map,e=this.placeholders.find(void 0,void 0,n=>n.__type===nc);for(const n of e)t.set(n.spec.id,{from:n.from,to:n.to});return t}createDecorations(t){var e,n,r;const{persistentSelectionClass:o}=this.options;return!o||(e=this.store.view)!=null&&e.hasFocus()||(r=(n=this.store.helpers).isInteracting)!=null&&r.call(n)?Ue.empty:UF(t,Ue.empty,{class:ke(o)?o:"selection"})}onApplyState(){}addWidgetPlaceholder(t,e){const{pos:n,createElement:r,onDestroy:o,onUpdate:i,className:s,nodeName:l,id:a,type:u}=t,c=(r==null?void 0:r(this.store.view,n))??document.createElement(l);c.classList.add(s);const d=mt.widget(n,c,{id:a,__type:nc,type:u,element:c,onDestroy:o,onUpdate:i});this.placeholderWidgets.set(a,d),this.placeholders=this.placeholders.add(e.doc,[d])}addInlinePlaceholder(t,e){const{from:n=e.selection.from,to:r=e.selection.to,className:o,nodeName:i,id:s,type:l}=t;let a;if(n===r){const u=document.createElement(i);u.classList.add(o),a=mt.widget(n,u,{id:s,type:l,__type:nc,widget:u})}else a=mt.inline(n,r,{nodeName:i,class:o},{id:s,__type:nc});this.placeholders=this.placeholders.add(e.doc,[a])}addNodePlaceholder(t,e){const{pos:n,className:r,nodeName:o,id:i}=t,s=Dr(n)?e.doc.resolve(n):e.selection.$from,l=Dr(n)?s.nodeAfter?{pos:n,end:s.nodeAfter.nodeSize}:void 0:J3(s);if(!l)return;const a=mt.node(l.pos,l.end,{nodeName:o,class:r},{id:i,__type:nc});this.placeholders=this.placeholders.add(e.doc,[a])}withRequiredBase(t,e){const{placeholderNodeName:n,placeholderClassName:r}=this.options,{nodeName:o=n,className:i,...s}=e,l=(i?[r,i]:[r]).join(" ");return{nodeName:o,className:l,...s,id:t}}getMeta(t){const e=t.getMeta(this.pluginKey)??{};return{...HF,...e}}setMeta(t,e){const n=this.getMeta(t);t.setMeta(this.pluginKey,{...n,...e})}addPlaceholderTransaction(t,e,n,r=!1){if(this.findPlaceholder(t))return!1;if(r)return!0;const{added:i}=this.getMeta(n);return this.setMeta(n,{added:[...i,this.withRequiredBase(t,e)]}),!0}updatePlaceholderTransaction(t){const{id:e,tr:n,checkOnly:r=!1,data:o}=t;if(!this.findPlaceholder(e))return!1;if(r)return!0;const{updated:s}=this.getMeta(n);return this.setMeta(n,{updated:$l([...s,{id:e,data:o}])}),!0}removePlaceholderTransaction(t){const{id:e,tr:n,checkOnly:r=!1}=t;if(!this.findPlaceholder(e))return!1;if(r)return!0;const{removed:i}=this.getMeta(n);return this.setMeta(n,{removed:$l([...i,e])}),!0}clearPlaceholdersTransaction(t){const{tr:e,checkOnly:n=!1}=t;return this.getPluginState()===Ue.empty?!1:(n||this.setMeta(e,{clearTrackers:!0}),!0)}};ge([le()],Oo.prototype,"updateDecorations",1),ge([le()],Oo.prototype,"addPlaceholder",1),ge([le()],Oo.prototype,"updatePlaceholder",1),ge([le()],Oo.prototype,"removePlaceholder",1),ge([le()],Oo.prototype,"clearPlaceholders",1),ge([nt()],Oo.prototype,"findPlaceholder",1),ge([nt()],Oo.prototype,"findAllPlaceholders",1),Oo=ge([Ne({defaultOptions:{persistentSelectionClass:void 0,placeholderClassName:"placeholder",placeholderNodeName:"span"},staticKeys:["placeholderClassName","placeholderNodeName"],handlerKeys:["decorations"],handlerKeyOptions:{decorations:{reducer:{accumulator:(t,e,n)=>t.add(n.doc,e.find()),getDefault:()=>Ue.empty}}},defaultPriority:tt.Low})],Oo);var HF={added:[],updated:[],clearTrackers:!1,removed:[]},nc="placeholderDecoration",r_="persistentSelectionFocus";function UF(t,e,n){const{selection:r,doc:o}=t;if(r.empty)return e;const{from:i,to:s}=r,l=Ju(r)?mt.node(i,s,n):mt.inline(i,s,n);return e.add(o,[l])}var v0=class extends ct{get name(){return"docChanged"}onStateUpdate(t){const{firstUpdate:e,transactions:n,tr:r}=t;e||(n??[r]).some(o=>o==null?void 0:o.docChanged)&&this.options.docChanged(t)}};v0=ge([Ne({handlerKeys:["docChanged"],handlerKeyOptions:{docChanged:{earlyReturnValue:!1}},defaultPriority:tt.Lowest})],v0);var co=class extends ct{get name(){return"helpers"}onCreate(){var t;this.store.setStringHandler("text",this.textToProsemirrorNode.bind(this)),this.store.setStringHandler("html",a0);const e=ye(),n=ye(),r=ye(),o=new Set;for(const i of this.store.extensions){td(i)&&(n[i.name]=l=>EA({state:this.store.getState(),type:i.type,attrs:l}),r[i.name]=l=>{var a;return(a=qu({state:this.store.getState(),type:i.type,attrs:l}))==null?void 0:a.node.attrs}),uf(i)&&(n[i.name]=l=>ef({trState:this.store.getState(),type:i.type,attrs:l}),r[i.name]=l=>{const a=Ti(this.store.getState().selection.$from,i.type);if(!a||!l)return a==null?void 0:a.mark.attrs;if(o0(a.mark,l))return a.mark.attrs});const s=((t=i.createHelpers)==null?void 0:t.call(i))??{};for(const l of Object.keys(i.decoratedHelpers??{}))s[l]=i[l].bind(i);if(!Au(s))for(const[l,a]of nn(s))QA({name:l,set:o,code:re.DUPLICATE_HELPER_NAMES}),e[l]=a}this.store.setStoreKey("attrs",r),this.store.setStoreKey("active",n),this.store.setStoreKey("helpers",e),this.store.setExtensionStore("attrs",r),this.store.setExtensionStore("active",n),this.store.setExtensionStore("helpers",e)}isSelectionEmpty(t=this.store.getState()){return r0(t)}isViewEditable(t=this.store.getState()){var e,n;return((n=(e=this.store.view.props).editable)==null?void 0:n.call(e,t))??!1}getStateJSON(t=this.store.getState()){return t.toJSON()}getJSON(t=this.store.getState()){return t.doc.toJSON()}getRemirrorJSON(t=this.store.getState()){return this.getJSON(t)}insertHtml(t,e){return n=>{const{state:r}=n,o=a0({content:t,schema:r.schema,fragment:!0});return this.store.commands.insertNode.original(o,e)(n)}}getText({lineBreakDivider:t=` -`,state:e=this.store.getState()}={}){return e.doc.textBetween(0,e.doc.content.size,t,ts)}getTextBetween(t,e,n=this.store.getState().doc){return n.textBetween(t,e,` +`,state:e=this.store.getState()}={}){return e.doc.textBetween(0,e.doc.content.size,t,ns)}getTextBetween(t,e,n=this.store.getState().doc){return n.textBetween(t,e,` -`,ts)}getHTML(t=this.store.getState()){return az(t.doc,this.store.document)}textToProsemirrorNode(t){const e=`
${t.content}
`;return this.store.stringHandlers.html({...t,content:e})}};ge([nt()],lo.prototype,"isSelectionEmpty",1),ge([nt()],lo.prototype,"isViewEditable",1),ge([nt()],lo.prototype,"getStateJSON",1),ge([nt()],lo.prototype,"getJSON",1),ge([nt()],lo.prototype,"getRemirrorJSON",1),ge([le()],lo.prototype,"insertHtml",1),ge([nt()],lo.prototype,"getText",1),ge([nt()],lo.prototype,"getTextBetween",1),ge([nt()],lo.prototype,"getHTML",1),lo=ge([Ne({})],lo);var f0=class extends ht{get name(){return"inputRules"}onCreate(){this.store.setExtensionStore("rebuildInputRules",this.rebuildInputRules.bind(this))}createExternalPlugins(){return[this.generateInputRulesPlugin()]}generateInputRulesPlugin(){var t,e;const n=[],r=this.store.markTags[we.ExcludeInputRules];for(const o of this.store.extensions)if(!((t=this.store.managerSettings.exclude)!=null&&t.inputRules||!o.createInputRules||(e=o.options.exclude)!=null&&e.inputRules))for(const i of o.createInputRules())i.shouldSkip=this.options.shouldSkipInputRule,i.invalidMarks=r,n.push(i);return EP({rules:n})}rebuildInputRules(){this.store.updateExtensionPlugins(this)}};f0=ge([Ne({defaultPriority:tt.Default,handlerKeys:["shouldSkipInputRule"],handlerKeyOptions:{shouldSkipInputRule:{earlyReturnValue:!0}}})],f0);var Io=class extends ht{constructor(){super(...arguments),this.extraKeyBindings=[],this.backwardMarkExitTracker=new Map,this.keydownHandler=null,this.onAddCustomHandler=({keymap:t})=>{var e,n;if(t)return this.extraKeyBindings=[...this.extraKeyBindings,t],(n=(e=this.store).rebuildKeymap)==null||n.call(e),()=>{var r,o;this.extraKeyBindings=this.extraKeyBindings.filter(i=>i!==t),(o=(r=this.store).rebuildKeymap)==null||o.call(r)}},this.rebuildKeymap=()=>{this.setupKeydownHandler()}}get name(){return"keymap"}get shortcutMap(){const{shortcuts:t}=this.options;return ke(t)?TF[t]:t}onCreate(){this.store.setExtensionStore("rebuildKeymap",this.rebuildKeymap)}createExternalPlugins(){var t;return(t=this.store.managerSettings.exclude)!=null&&t.keymap?[]:(this.setupKeydownHandler(),[new Xo({props:{handleKeyDown:(e,n)=>{var r;return(r=this.keydownHandler)==null?void 0:r.call(this,e,n)}}})])}setupKeydownHandler(){const t=this.generateKeymapBindings();this.keydownHandler=d0(t)}generateKeymapBindings(){var t;const e=[],n=this.shortcutMap,r=this.store.getExtension(We),o=l=>a=>cf({shortcut:a,map:n,store:this.store,options:l.options});for(const l of this.store.extensions){const a=l.decoratedKeybindings??{};if(!((t=l.options.exclude)!=null&&t.keymap)){l.createKeymap&&e.push(SF(l.createKeymap(o(l)),n));for(const[u,c]of nn(a)){if(c.isActive&&!c.isActive(l.options,this.store))continue;const d=l[u].bind(l),h=cf({shortcut:c.shortcut,map:n,options:l.options,store:this.store}),p=Xe(c.priority)?c.priority(l.options,this.store):c.priority??tt.Low,f=ye();for(const g of h)f[g]=d;e.push([p,f]),c.command&&r.updateDecorated(c.command,{shortcut:h})}}}const i=this.sortKeymaps([...this.extraKeyBindings,...e]);return z3(i)}arrowRightShortcut(t){const e=this.store.markTags[we.PreventExits],n=this.store.nodeTags[we.PreventExits];return this.exitMarkForwards(e,n)(t)}arrowLeftShortcut(t){const e=this.store.markTags[we.PreventExits],n=this.store.nodeTags[we.PreventExits];return Zp(this.exitNodeBackwards(n),this.exitMarkBackwards(e,n))(t)}backspace(t){const e=this.store.markTags[we.PreventExits],n=this.store.nodeTags[we.PreventExits];return Zp(this.exitNodeBackwards(n,!0),this.exitMarkBackwards(e,n,!0))(t)}createKeymap(){const{selectParentNodeOnEscape:t,undoInputRuleOnBackspace:e,excludeBaseKeymap:n}=this.options,r=ye();if(!n)for(const[o,i]of nn(l0))r[o]=Gu(i);return e&&l0.Backspace&&(r.Backspace=Gu(rf(SP,l0.Backspace))),t&&(r.Escape=Gu($z)),[tt.Low,r]}getNamedShortcut(t,e={}){return t.startsWith("_|")?cf({shortcut:t,map:this.shortcutMap,store:this.store,options:e}):[t]}onSetOptions(t){var e,n;const{changes:r}=t;(r.excludeBaseKeymap.changed||r.selectParentNodeOnEscape.changed||r.undoInputRuleOnBackspace.changed)&&((n=(e=this.store).rebuildKeymap)==null||n.call(e))}sortKeymaps(t){return ss(t.map(e=>Ot(e)?e:[tt.Default,e]),(e,n)=>n[0]-e[0]).map(e=>e[1])}exitMarkForwards(t,e){return n=>{const{tr:r,dispatch:o}=n;if(!dz(r.selection)||ti({selection:r.selection,types:e}))return!1;const l=r.selection.$from.marks().filter(a=>!t.includes(a.type.name));if(is(l))return!1;if(!o)return!0;for(const a of l)r.removeStoredMark(a);return o(r.insertText(" ",r.selection.from)),!0}}exitNodeBackwards(t,e=!1){return n=>{const{tr:r}=n;if(!(e?wA:o0)(r.selection))return!1;const i=r.selection.$anchor.node();return!ef(i)||Y3(i)||t.includes(i.type.name)?!1:this.store.commands.toggleBlockNodeItem.original({type:i.type})(n)}}exitMarkBackwards(t,e,n=!1){return r=>{const{tr:o,dispatch:i}=r;if(!(n?wA:o0)(o.selection)||this.backwardMarkExitTracker.has(o.selection.anchor))return this.backwardMarkExitTracker.clear(),!1;if(ti({selection:o.selection,types:e}))return!1;const a=[...o.storedMarks??[],...o.selection.$from.marks()].filter(u=>!t.includes(u.type.name));if(is(a))return!1;if(!i)return!0;for(const u of a)o.removeStoredMark(u);return this.backwardMarkExitTracker.set(o.selection.anchor,!0),i(o),!0}}};ge([Zt({shortcut:"ArrowRight",isActive:t=>t.exitMarksOnArrowPress})],Io.prototype,"arrowRightShortcut",1),ge([Zt({shortcut:"ArrowLeft",isActive:t=>t.exitMarksOnArrowPress})],Io.prototype,"arrowLeftShortcut",1),ge([Zt({shortcut:"Backspace",isActive:t=>t.exitMarksOnArrowPress})],Io.prototype,"backspace",1),ge([nt()],Io.prototype,"getNamedShortcut",1),Io=ge([Ne({defaultPriority:tt.Low,defaultOptions:{shortcuts:"default",undoInputRuleOnBackspace:!0,selectParentNodeOnEscape:!1,excludeBaseKeymap:!1,exitMarksOnArrowPress:!0},customHandlerKeys:["keymap"]})],Io);function EF(t){return Jn(Tu(oe),t)}function cf({shortcut:t,map:e,options:n,store:r}){return ke(t)?[g0(t,e)]:Ot(t)?t.map(o=>g0(o,e)):(t=t(n,r),cf({shortcut:t,map:e,options:n,store:r}))}function g0(t,e){return EF(t)?e[t]:t}function SF(t,e){const n={};let r,o;Ot(t)?[o,r]=t:r=t;for(const[i,s]of nn(r))n[g0(i,e)]=s;return Cp(o)?n:[o,n]}var VA={[oe.Copy]:"Mod-c",[oe.Cut]:"Mod-x",[oe.Paste]:"Mod-v",[oe.PastePlain]:"Mod-Shift-v",[oe.SelectAll]:"Mod-a",[oe.Undo]:"Mod-z",[oe.Redo]:br.isMac?"Shift-Mod-z":"Mod-y",[oe.Bold]:"Mod-b",[oe.Italic]:"Mod-i",[oe.Underline]:"Mod-u",[oe.Strike]:"Mod-d",[oe.Code]:"Mod-`",[oe.Paragraph]:"Mod-Shift-0",[oe.H1]:"Mod-Shift-1",[oe.H2]:"Mod-Shift-2",[oe.H3]:"Mod-Shift-3",[oe.H4]:"Mod-Shift-4",[oe.H5]:"Mod-Shift-5",[oe.H6]:"Mod-Shift-6",[oe.TaskList]:"Mod-Shift-7",[oe.BulletList]:"Mod-Shift-8",[oe.OrderedList]:"Mod-Shift-9",[oe.Quote]:"Mod->",[oe.Divider]:"Mod-Shift-|",[oe.Codeblock]:"Mod-Shift-~",[oe.ClearFormatting]:"Mod-Shift-C",[oe.Superscript]:"Mod-.",[oe.Subscript]:"Mod-,",[oe.LeftAlignment]:"Mod-Shift-L",[oe.CenterAlignment]:"Mod-Shift-E",[oe.RightAlignment]:"Mod-Shift-R",[oe.JustifyAlignment]:"Mod-Shift-J",[oe.InsertLink]:"Mod-k",[oe.Find]:"Mod-f",[oe.FindBackwards]:"Mod-Shift-f",[oe.FindReplace]:"Mod-Shift-H",[oe.AddFootnote]:"Mod-Alt-f",[oe.AddComment]:"Mod-Alt-m",[oe.ContextMenu]:"Mod-Shift-\\",[oe.IncreaseFontSize]:"Mod-Shift-.",[oe.DecreaseFontSize]:"Mod-Shift-,",[oe.IncreaseIndent]:"Tab",[oe.DecreaseIndent]:"Shift-Tab",[oe.Shortcuts]:"Mod-/",[oe.Format]:br.isMac?"Alt-Shift-f":"Shift-Ctrl-f"},CF={...VA,[oe.Strike]:"Mod-Shift-S",[oe.Code]:"Mod-Shift-M",[oe.Paragraph]:"Mod-Alt-0",[oe.H1]:"Mod-Alt-1",[oe.H2]:"Mod-Alt-2",[oe.H3]:"Mod-Alt-3",[oe.H4]:"Mod-Alt-4",[oe.H5]:"Mod-Alt-5",[oe.H6]:"Mod-Alt-6",[oe.OrderedList]:"Mod-Alt-7",[oe.BulletList]:"Mod-Alt-8",[oe.Quote]:"Mod-Alt-9",[oe.ClearFormatting]:"Mod-\\",[oe.IncreaseIndent]:"Mod-[",[oe.DecreaseIndent]:"Mod-]"},TF={default:VA,googleDoc:CF},AF=class extends ht{get name(){return"nodeViews"}createPlugin(){const t=[],e=ye();for(const n of this.store.extensions){if(!n.createNodeViews)continue;const r=n.createNodeViews();t.unshift(Xe(r)?{[n.name]:r}:r)}t.unshift(this.store.managerSettings.nodeViews??{});for(const n of t)Object.assign(e,n);return{props:{nodeViews:e}}}},_F=class extends ht{get name(){return"pasteRules"}createExternalPlugins(){return[this.generatePasteRulesPlugin()]}generatePasteRulesPlugin(){var t,e;const n=[];for(const r of this.store.extensions){if((t=this.store.managerSettings.exclude)!=null&&t.pasteRules||!r.createPasteRules||(e=r.options.exclude)!=null&&e.pasteRules)continue;const o=r.createPasteRules(),i=Ot(o)?o:[o];n.push(...i)}return Yz(n)}},uf=class extends ht{constructor(){super(...arguments),this.plugins=[],this.managerPlugins=[],this.applyStateHandlers=[],this.initStateHandlers=[],this.appendTransactionHandlers=[],this.pluginKeys=ye(),this.stateGetters=new Map,this.getPluginStateCreator=t=>e=>t.getState(e??this.store.getState()),this.getStateByName=t=>{const e=this.stateGetters.get(t);return be(e,{message:"No plugin exists for the requested extension name."}),e()}}get name(){return"plugins"}onCreate(){const{setStoreKey:t,setExtensionStore:e,managerSettings:n,extensions:r}=this.store;this.updateExtensionStore();const{plugins:o=[]}=n;this.updatePlugins(o,this.managerPlugins);for(const i of r)i.onApplyState&&this.applyStateHandlers.push(i.onApplyState.bind(i)),i.onInitState&&this.initStateHandlers.push(i.onInitState.bind(i)),i.onAppendTransaction&&this.appendTransactionHandlers.push(i.onAppendTransaction.bind(i)),this.extractExtensionPlugins(i);this.managerPlugins=o,this.store.setStoreKey("plugins",this.plugins),t("pluginKeys",this.pluginKeys),t("getPluginState",this.getStateByName),e("getPluginState",this.getStateByName)}createPlugin(){return{appendTransaction:(t,e,n)=>{const r=n.tr,o={previousState:e,tr:r,transactions:t,state:n};for(const i of this.appendTransactionHandlers)i(o);return this.options.appendTransaction(o),r.docChanged||r.steps.length>0||r.selectionSet||r.storedMarksSet?r:void 0},state:{init:(t,e)=>{for(const n of this.initStateHandlers)n(e)},apply:(t,e,n,r)=>{const o={previousState:n,state:r,tr:t};for(const i of this.applyStateHandlers)i(o);this.options.applyState(o)}}}}extractExtensionPlugins(t){var e,n;if(!(!t.createPlugin&&!t.createExternalPlugins||(e=this.store.managerSettings.exclude)!=null&&e.plugins||(n=t.options.exclude)!=null&&n.plugins)){if(t.createPlugin){const o=new ba(t.name);this.pluginKeys[t.name]=o;const i=this.getPluginStateCreator(o);t.pluginKey=o,t.getPluginState=i,this.stateGetters.set(t.name,i),this.stateGetters.set(t.constructor,i);const s={...t.createPlugin(),key:o},l=new Xo(s);this.updatePlugins([l],t.plugin?[t.plugin]:void 0),t.plugin=l}if(t.createExternalPlugins){const o=t.createExternalPlugins();this.updatePlugins(o,t.externalPlugins),t.externalPlugins=o}}}updatePlugins(t,e){if(!e||is(e)){this.plugins=[...this.plugins,...t];return}if(t.length!==e.length){this.plugins=[...this.plugins.filter(r=>!e.includes(r)),...t];return}const n=new Map;for(const[r,o]of t.entries())n.set(_t(e,r),o);this.plugins=this.plugins.map(r=>e.includes(r)?n.get(r):r)}updateExtensionStore(){const{setExtensionStore:t}=this.store;t("updatePlugins",this.updatePlugins.bind(this)),t("dispatchPluginUpdate",this.dispatchPluginUpdate.bind(this)),t("updateExtensionPlugins",this.updateExtensionPlugins.bind(this))}updateExtensionPlugins(t){const e=HA(t)?t:pF(t)?this.store.manager.getExtension(t):this.store.extensions.find(n=>n.name===t);be(e,{code:re.INVALID_MANAGER_EXTENSION,message:`The extension ${t} does not exist within the editor.`}),this.extractExtensionPlugins(e),this.store.setStoreKey("plugins",this.plugins),this.dispatchPluginUpdate()}dispatchPluginUpdate(){be(this.store.phase>=mr.EditorView,{code:re.MANAGER_PHASE_ERROR,message:"`dispatchPluginUpdate` should only be called after the view has been added to the manager."});const{view:t,updateState:e}=this.store,n=t.state.reconfigure({plugins:this.plugins});e(n)}};uf=ge([Ne({defaultPriority:tt.Highest,handlerKeys:["applyState","appendTransaction"]})],uf);var m0=class extends ht{constructor(){super(...arguments),this.dynamicAttributes={marks:ye(),nodes:ye()}}get name(){return"schema"}onCreate(){const{managerSettings:t,tags:e,markNames:n,nodeNames:r,extensions:o}=this.store,{defaultBlockNode:i,disableExtraAttributes:s,nodeOverride:l,markOverride:a}=t,u=f=>!!(f&&e[we.Block].includes(f));if(t.schema){const{nodes:f,marks:g}=DF(t.schema);this.addSchema(t.schema,f,g);return}const c=u(i)?{doc:ye(),[i]:ye()}:ye(),d=ye(),h=RF({settings:t,gatheredSchemaAttributes:this.gatherExtraAttributes(o),nodeNames:r,markNames:n,tags:e});for(const f of o){h[f.name]={...h[f.name],...f.options.extraAttributes};const g=s===!0||f.options.disableExtraAttributes===!0||f.constructor.disableExtraAttributes===!0;if(Qu(f)){const{spec:m,dynamic:v}=jA({createExtensionSpec:(y,b)=>f.createNodeSpec(y,b),extraAttributes:_t(h,f.name),override:{...l,...f.options.nodeOverride},ignoreExtraAttributes:g,name:f.constructorName,tags:f.tags});f.spec=m,c[f.name]=m,Object.keys(v).length>0&&(this.dynamicAttributes.nodes[f.name]=v)}if(lf(f)){const{spec:m,dynamic:v}=jA({createExtensionSpec:(y,b)=>f.createMarkSpec(y,b),extraAttributes:_t(h,f.name),override:{...a,...f.options.markOverride},ignoreExtraAttributes:g,name:f.constructorName,tags:f.tags??[]});f.spec=m,d[f.name]=m,Object.keys(v).length>0&&(this.dynamicAttributes.marks[f.name]=v)}}const p=new M4({nodes:c,marks:d,topNode:"doc"});this.addSchema(p,c,d)}createPlugin(){return{appendTransaction:(t,e,n)=>{const{tr:r}=n;return!t.some(i=>i.docChanged)||Object.keys(this.dynamicAttributes.nodes).length===0&&Object.keys(this.dynamicAttributes.marks).length===0?null:(r.doc.descendants((i,s)=>(this.checkAndUpdateDynamicNodes(i,s,r),this.checkAndUpdateDynamicMarks(i,s,r),!0)),r.steps.length>0?r:null)}}}addSchema(t,e,n){this.store.setStoreKey("nodes",e),this.store.setStoreKey("marks",n),this.store.setStoreKey("schema",t),this.store.setExtensionStore("schema",t),this.store.setStoreKey("defaultBlockNode",Qp(t).name);for(const r of Object.values(t.nodes))if(r.name!=="doc"&&(r.isBlock||r.isTextblock))break}checkAndUpdateDynamicNodes(t,e,n){for(const[r,o]of nn(this.dynamicAttributes.nodes))if(t.type.name===r)for(const[i,s]of nn(o)){if(!rs(t.attrs[i]))continue;const l={...t.attrs,[i]:s(t)};n.setNodeMarkup(e,void 0,l),aA(n)}}checkAndUpdateDynamicMarks(t,e,n){for(const[r,o]of nn(this.dynamicAttributes.marks)){const i=_t(this.store.schema.marks,r),s=t.marks.find(l=>l.type.name===r);if(s)for(const[l,a]of nn(o)){if(!rs(s.attrs[l]))continue;const u=Ti(n.doc.resolve(e),i);if(!u)continue;const{from:c,to:d}=u,h=i.create({...s.attrs,[l]:a(s)});n.removeMark(c,d,i).addMark(c,d,h),aA(n)}}}gatherExtraAttributes(t){const e=[];for(const n of t)n.createSchemaAttributes&&e.push(...n.createSchemaAttributes());return e}};m0=ge([Ne({defaultPriority:tt.Highest})],m0);function RF(t){const{settings:e,gatheredSchemaAttributes:n,nodeNames:r,markNames:o,tags:i}=t,s=ye();if(e.disableExtraAttributes)return s;const l=[...n,...e.extraAttributes??[]];for(const a of l??[]){const u=OF({identifiers:a.identifiers,nodeNames:r,markNames:o,tags:i});for(const c of u){const d=s[c]??{};s[c]={...d,...a.attributes}}}return s}function MF(t){return ns(t)&&Ot(t.tags)}function OF(t){const{identifiers:e,nodeNames:n,markNames:r,tags:o}=t;if(e==="nodes")return n;if(e==="marks")return r;if(e==="all")return[...n,...r];if(Ot(e))return e;be(MF(e),{code:re.EXTENSION_EXTRA_ATTRIBUTES,message:"Invalid value passed as an identifier when creating `extraAttributes`."});const{tags:i=[],names:s=[],behavior:l="any",excludeNames:a,excludeTags:u,type:c}=e,d=new Set,h=c==="mark"?r:c==="node"?n:[...r,...n],p=g=>h.includes(g)&&!(a!=null&&a.includes(g));for(const g of s)p(g)&&d.add(g);const f=new Map;for(const g of i)if(!(u!=null&&u.includes(g)))for(const m of o[g]){if(!p(m))continue;if(l==="any"){d.add(m);continue}const v=f.get(m)??new Set;v.add(g),f.set(m,v)}for(const[g,m]of f)m.size===i.length&&d.add(g);return[...d]}function jA(t){var e;const{createExtensionSpec:n,extraAttributes:r,ignoreExtraAttributes:o,name:i,tags:s,override:l}=t,a=ye();function u(m,v){a[m]=v}let c=!1;function d(){c=!0}const h=IF(r,o,d,u),p=LF(r,o),f=NF(r,o),g=n({defaults:h,parse:p,dom:f},l);return be(o||c,{code:re.EXTENSION_SPEC,message:`When creating a node specification you must call the 'defaults', and parse, and 'dom' methods. To avoid this error you can set the static property 'disableExtraAttributes' of '${i}' to 'true'.`}),g.group=[...((e=g.group)==null?void 0:e.split(" "))??[],...s].join(" ")||void 0,{spec:g,dynamic:a}}function v0(t){return ke(t)||Xe(t)?{default:t}:(be(t,{message:`${_S(t)} is not supported`,code:re.EXTENSION_EXTRA_ATTRIBUTES}),t)}function IF(t,e,n,r){return()=>{n();const o=ye();if(e)return o;for(const[i,s]of nn(t)){let a=v0(s).default;Xe(a)&&(r(i,a),a=null),o[i]=a===void 0?{}:{default:a}}return o}}function LF(t,e){return n=>{const r=ye();if(e)return r;for(const[o,i]of nn(t)){const{parseDOM:s,...l}=v0(i);if(Ft(n)){if(rs(s)){r[o]=n.getAttribute(o)??l.default;continue}if(Xe(s)){r[o]=s(n)??l.default;continue}r[o]=n.getAttribute(s)??l.default}}return r}}function NF(t,e){return n=>{const r=ye();if(e)return r;function o(i,s){if(i){if(ke(i)){r[s]=i;return}if(Ot(i)){const[l,a]=i;r[l]=a??n.attrs[s];return}for(const[l,a]of nn(i))r[l]=a}}for(const[i,s]of nn(t)){const{toDOM:l,parseDOM:a}=v0(s);if(rs(l)){const u=ke(a)?a:i;r[u]=n.attrs[i];continue}if(Xe(l)){o(l(n.attrs,$F(n)),i);continue}o(l,i)}return r}}function $F(t){return Xu(t)?{node:t}:V3(t)?{mark:t}:{}}function DF(t){const e=ye(),n=ye();for(const[r,o]of Object.entries(t.nodes))e[r]=o.spec;for(const[r,o]of Object.entries(t.marks))n[r]=o.spec;return{nodes:e,marks:n}}var oc=class extends ht{constructor(){super(...arguments),this.onAddCustomHandler=({suggester:t})=>{var e;if(!(!t||(e=this.store.managerSettings.exclude)!=null&&e.suggesters))return sA(this.store.getState(),t)}}get name(){return"suggest"}onCreate(){this.store.setExtensionStore("addSuggester",t=>sA(this.store.getState(),t)),this.store.setExtensionStore("removeSuggester",t=>A3(this.store.getState(),t))}createExternalPlugins(){var t,e;const n=[];for(const r of this.store.extensions){if((t=this.store.managerSettings.exclude)!=null&&t.suggesters)break;if(!r.createSuggesters||(e=r.options.exclude)!=null&&e.suggesters)continue;const o=r.createSuggesters(),i=Ot(o)?o:[o];n.push(...i)}return[_3(...n)]}getSuggestState(t){return q1(t??this.store.getState())}getSuggestMethods(){const{addIgnored:t,clearIgnored:e,removeIgnored:n,ignoreNextExit:r,setMarkRemoved:o,findMatchAtPosition:i,findNextTextSelection:s,setLastChangeFromAppend:l}=this.getSuggestState();return{addIgnored:t,clearIgnored:e,removeIgnored:n,ignoreNextExit:r,setMarkRemoved:o,findMatchAtPosition:i,findNextTextSelection:s,setLastChangeFromAppend:l}}isSuggesterActive(t){var e;return Jn(Ot(t)?t:[t],(e=this.getSuggestState().match)==null?void 0:e.suggester.name)}};ge([nt()],oc.prototype,"getSuggestState",1),ge([nt()],oc.prototype,"getSuggestMethods",1),ge([nt()],oc.prototype,"isSuggesterActive",1),oc=ge([Ne({customHandlerKeys:["suggester"]})],oc);var y0=class extends ht{constructor(){super(...arguments),this.allTags=ye(),this.plainTags=ye(),this.markTags=ye(),this.nodeTags=ye()}get name(){return"tags"}onCreate(){this.resetTags();for(const t of this.store.extensions)this.updateTagForExtension(t);this.store.setStoreKey("tags",this.allTags),this.store.setExtensionStore("tags",this.allTags),this.store.setStoreKey("plainTags",this.plainTags),this.store.setExtensionStore("plainTags",this.plainTags),this.store.setStoreKey("markTags",this.markTags),this.store.setExtensionStore("markTags",this.markTags),this.store.setStoreKey("nodeTags",this.nodeTags),this.store.setExtensionStore("nodeTags",this.nodeTags)}resetTags(){const t=ye(),e=ye(),n=ye(),r=ye();for(const o of Tu(we))t[o]=[],e[o]=[],n[o]=[],r[o]=[];this.allTags=t,this.plainTags=e,this.markTags=n,this.nodeTags=r}updateTagForExtension(t){var e,n;const r=new Set([...t.tags??[],...((e=t.createTags)==null?void 0:e.call(t))??[],...t.options.extraTags??[],...((n=this.store.managerSettings.extraTags)==null?void 0:n[t.name])??[]]);for(const o of r)be(PF(o),{code:re.EXTENSION,message:`The tag provided by the extension: ${t.constructorName} is not supported by the editor. To add custom tags you can use the 'mutateTag' method.`}),this.allTags[o].push(t.name),UA(t)&&this.plainTags[o].push(t.name),lf(t)&&this.markTags[o].push(t.name),Qu(t)&&this.nodeTags[o].push(t.name);t.tags=[...r]}};y0=ge([Ne({defaultPriority:tt.Highest})],y0);function PF(t){return Jn(Tu(we),t)}var zF=new ba("remirrorFilePlaceholderPlugin");function FF(){const t=new Xo({key:zF,state:{init(){return{set:Ue.empty,payloads:new Map}},apply(e,{set:n,payloads:r}){n=n.map(e.mapping,e.doc);const o=e.getMeta(t);if(o)if(o.type===0){const i=document.createElement("placeholder"),s=mt.widget(o.pos,i,{id:o.id});n=n.add(e.doc,[s]),r.set(o.id,o.payload)}else o.type===1&&(n=n.remove(n.find(void 0,void 0,i=>i.id===o.id)),r.delete(o.id));return{set:n,payloads:r}}},props:{decorations(e){var n;return((n=t.getState(e))==null?void 0:n.set)??null}}});return t}var BF=class extends ht{get name(){return"upload"}createExternalPlugins(){return[FF()]}};function HF(t={}){t={...{exitMarksOnArrowPress:Io.defaultOptions.exitMarksOnArrowPress,excludeBaseKeymap:Io.defaultOptions.excludeBaseKeymap,selectParentNodeOnEscape:Io.defaultOptions.selectParentNodeOnEscape,undoInputRuleOnBackspace:Io.defaultOptions.undoInputRuleOnBackspace,persistentSelectionClass:Oo.defaultOptions.persistentSelectionClass},...t};const n=Jv(t,["excludeBaseKeymap","selectParentNodeOnEscape","undoInputRuleOnBackspace"]),r=Jv(t,["persistentSelectionClass"]);return[new y0,new m0,new fF,new uf,new f0,new _F,new AF,new oc,new We,new lo,new Io(n),new p0,new BF,new Oo(r)]}var GA=class extends ht{get name(){return"meta"}onCreate(){if(this.store.setStoreKey("getCommandMeta",this.getCommandMeta.bind(this)),!!this.options.capture)for(const t of this.store.extensions)this.captureCommands(t),this.captureKeybindings(t)}createPlugin(){return{}}captureCommands(t){const e=t.decoratedCommands??{},n=t.createCommands;for(const r of Object.keys(e)){const o=t[r];t[r]=(...i)=>s=>{var l;const a=o(...i)(s);return s.dispatch&&a&&this.setCommandMeta(s.tr,{type:"command",chain:s.dispatch!==((l=s.view)==null?void 0:l.dispatch),name:r,extension:t.name,decorated:!0}),a}}n&&(t.createCommands=()=>{const r=n();for(const[o,i]of Object.entries(r))r[o]=(...s)=>l=>{var a;const u=i(...s)(l);return l.dispatch&&u&&this.setCommandMeta(l.tr,{type:"command",chain:l.dispatch!==((a=l.view)==null?void 0:a.dispatch),name:o,extension:t.name,decorated:!1}),u};return r})}captureKeybindings(t){}getCommandMeta(t){return t.getMeta(this.pluginKey)??[]}setCommandMeta(t,e){const n=this.getCommandMeta(t);t.setMeta(this.pluginKey,[...n,e])}};GA=ge([Ne({defaultOptions:{capture:br.isDevelopment},staticKeys:["capture"],defaultPriority:tt.Highest})],GA);var df,ed,hf,ic,Ss,pf,ff,UF=class{constructor(t){qt(this,df,Ll()),qt(this,ed,void 0),qt(this,hf,void 0),qt(this,ic,!0),qt(this,Ss,sf()),qt(this,pf,void 0),qt(this,ff,void 0),this.getState=()=>this.view.state??this.initialEditorState,this.getPreviousState=()=>this.previousState,this.dispatchTransaction=i=>{var s,l;be(!this.manager.destroyed,{code:re.MANAGER_PHASE_ERROR,message:"A transaction was dispatched to a manager that has already been destroyed. Please check your set up, or open an issue."}),i=((l=(s=this.props).onDispatchTransaction)==null?void 0:l.call(s,i,this.getState()))??i;const a=this.getState(),{state:u,transactions:c}=a.applyTransaction(i);gn(this,hf,a),this.updateState({state:u,tr:i,transactions:c});const d=this.manager.store.getForcedUpdates(i);is(d)||this.updateViewProps(...d)},this.onChange=(i=ye())=>{var s,l;const a=this.eventListenerProps(i);ce(this,ic)&&gn(this,ic,!1),(l=(s=this.props).onChange)==null||l.call(s,a)},this.onBlur=i=>{var s,l;const a=this.eventListenerProps();(l=(s=this.props).onBlur)==null||l.call(s,a,i),ce(this,Ss).emit("blur",a,i)},this.onFocus=i=>{var s,l;const a=this.eventListenerProps();(l=(s=this.props).onFocus)==null||l.call(s,a,i),ce(this,Ss).emit("focus",a,i)},this.setContent=(i,{triggerChange:s=!1}={})=>{const{doc:l}=this.manager.createState({content:i}),a=this.getState(),{state:u}=this.getState().applyTransaction(a.tr.replaceRangeWith(0,a.doc.nodeSize-2,l));if(s)return this.updateState({state:u,triggerChange:s});this.view.updateState(u)},this.clearContent=({triggerChange:i=!1}={})=>{this.setContent(this.manager.createEmptyDoc(),{triggerChange:i})},this.createStateFromContent=(i,s)=>this.manager.createState({content:i,selection:s}),this.focus=i=>{this.manager.store.commands.focus(i)},this.blur=i=>{this.manager.store.commands.blur(i)};const{getProps:e,initialEditorState:n,element:r}=t;if(gn(this,ed,e),gn(this,ff,n),this.manager.attachFramework(this,this.updateListener.bind(this)),this.manager.view)return;const o=this.createView(n,r);this.manager.addView(o)}get addHandler(){return ce(this,pf)??gn(this,pf,ce(this,Ss).on.bind(ce(this,Ss)))}get updatableViewProps(){return{attributes:()=>this.getAttributes(),editable:()=>this.props.editable??!0}}get firstRender(){return ce(this,ic)}get props(){return ce(this,ed).call(this)}get previousState(){return this.previousStateOverride??ce(this,hf)??this.initialEditorState}get manager(){return this.props.manager}get view(){return this.manager.view}get uid(){return ce(this,df)}get initialEditorState(){return ce(this,ff)}updateListener(t){const{state:e,tr:n}=t;return ce(this,Ss).emit("updated",this.eventListenerProps({state:e,tr:n}))}update(t){const{getProps:e}=t;return gn(this,ed,e),this}updateViewProps(...t){const e=Jv(this.updatableViewProps,t);this.view.setProps({...this.view.props,...e})}getAttributes(t){var e;const{attributes:n,autoFocus:r,classNames:o=[],label:i,editable:s}=this.props,l=(e=this.manager.store)==null?void 0:e.attributes,a=Xe(n)?n(this.eventListenerProps()):n;let u={};(r||$r(r))&&(u=t?{autoFocus:!0}:{autofocus:"true"});const c=Nl(tc(t&&"Prosemirror","remirror-editor",l==null?void 0:l.class,...o).split(" ")).join(" "),d={role:"textbox",...u,"aria-multiline":"true",...s??!0?{}:{"aria-readonly":"true"},"aria-label":i??"",...l,class:c};return OS({...d,...a})}addFocusListeners(){this.view.dom.addEventListener("blur",this.onBlur),this.view.dom.addEventListener("focus",this.onFocus)}removeFocusListeners(){this.view.dom.removeEventListener("blur",this.onBlur),this.view.dom.removeEventListener("focus",this.onFocus)}destroy(){ce(this,Ss).emit("destroy"),this.view&&this.removeFocusListeners()}eventListenerProps(t=ye()){const{state:e,tr:n,transactions:r}=t;return{tr:n,transactions:r,internalUpdate:!n,view:this.view,firstRender:ce(this,ic),state:e??this.getState(),createStateFromContent:this.createStateFromContent,previousState:this.previousState,helpers:this.manager.store.helpers}}get baseOutput(){return{manager:this.manager,...this.manager.store,addHandler:this.addHandler,focus:this.focus,blur:this.blur,uid:ce(this,df),view:this.view,getState:this.getState,getPreviousState:this.getPreviousState,getExtension:this.manager.getExtension.bind(this.manager),hasExtension:this.manager.hasExtension.bind(this.manager),clearContent:this.clearContent,setContent:this.setContent}}};df=new WeakMap,ed=new WeakMap,hf=new WeakMap,ic=new WeakMap,Ss=new WeakMap,pf=new WeakMap,ff=new WeakMap;function WF(t,e){const n=[],r=new WeakMap,o=[],i=new WeakMap;let s=[];const l={duplicateMap:i,parentExtensions:o,gatheredExtensions:s,settings:e};for(const d of t)KA(l,{extension:d});s=ss(s,(d,h)=>h.priority-d.priority);const a=new WeakSet,u=new Set;for(const d of s){const h=d.constructor,p=d.name,f=i.get(h);be(f,{message:`No entries were found for the ExtensionConstructor ${d.name}`,code:re.INTERNAL}),!(a.has(h)||u.has(p))&&(a.add(h),u.add(p),n.push(d),r.set(h,d),f.forEach(g=>g==null?void 0:g.replaceChildExtension(h,d)))}const c=[];for(const d of n)VF({extension:d,found:a,missing:c});return be(is(c),{code:re.MISSING_REQUIRED_EXTENSION,message:c.map(({Constructor:d,extension:h})=>`The extension '${h.name}' requires '${d.name} in order to run correctly.`).join(` -`)}),{extensions:n,extensionMap:r}}function KA(t,e){var n;const{gatheredExtensions:r,duplicateMap:o,parentExtensions:i,settings:s}=t,{extension:l,parentExtension:a}=e;let{names:u=[]}=e;be(HA(l),{code:re.INVALID_MANAGER_EXTENSION,message:`An invalid extension: ${l} was provided to the [[\`RemirrorManager\`]].`});const c=l.extensions;if(l.setPriority((n=s.priority)==null?void 0:n[l.name]),r.push(l),jF({duplicateMap:o,extension:l,parentExtension:a}),c.length!==0){if(u.includes(l.name)){`${u.join(" > ")}${l.name}`;return}u=[...u,l.name],i.push(l);for(const d of c)KA(t,{names:u,extension:d,parentExtension:l})}}function VF(t){const{extension:e,found:n,missing:r}=t;if(e.requiredExtensions)for(const o of e.requiredExtensions??[])n.has(o)||r.push({Constructor:o,extension:e})}function jF(t){const{duplicateMap:e,extension:n,parentExtension:r}=t,o=n.constructor,i=e.get(o),s=r?[r]:[];e.set(o,i?[...i,...s]:s)}function GF(t){var e,n,r,o;const{extension:i,nodeNames:s,markNames:l,plainNames:a,store:u,handlers:c}=t;i.setStore(u);const d=(e=i.onCreate)==null?void 0:e.bind(i),h=(n=i.onView)==null?void 0:n.bind(i),p=(r=i.onStateUpdate)==null?void 0:r.bind(i),f=(o=i.onDestroy)==null?void 0:o.bind(i);d&&c.create.push(d),h&&c.view.push(h),p&&c.update.push(p),f&&c.destroy.push(f),lf(i)&&l.push(i.name),Qu(i)&&i.name!=="doc"&&s.push(i.name),UA(i)&&a.push(i.name)}var Cs,td,Lo,_i,nd,zr,_a,rd,Ra,od,Ma,No,id,gf=class{constructor(t,e={}){qt(this,Cs,void 0),qt(this,td,ye()),qt(this,Lo,ye()),qt(this,_i,void 0),qt(this,nd,void 0),qt(this,zr,mr.None),qt(this,_a,void 0),qt(this,rd,!0),qt(this,Ra,{create:[],view:[],update:[],destroy:[]}),qt(this,od,[]),qt(this,Ma,sf()),qt(this,No,void 0),qt(this,id,void 0),this.getState=()=>{var o;return ce(this,zr)>=mr.EditorView?this.view.state:(be(ce(this,No),{code:re.MANAGER_PHASE_ERROR,message:"`getState` can only be called after the `Framework` or the `EditorView` has been added to the manager`. Check your plugins to make sure that the decorations callback uses the state argument."}),(o=ce(this,No))==null?void 0:o.initialEditorState)},this.updateState=o=>{const i=this.getState();this.view.updateState(o),this.onStateUpdate({previousState:i,state:o})};const{extensions:n,extensionMap:r}=WF(t,e);gn(this,_a,e),gn(this,_i,ha(n)),gn(this,nd,r),gn(this,Cs,this.createExtensionStore()),gn(this,zr,mr.Create),this.setupLifecycleHandlers();for(const o of ce(this,Ra).create){const i=o();i&&ce(this,od).push(i)}}static create(t,e={}){return new gf([...DS(t),...HF(e.builtin)],e)}get[xi](){return hn.Manager}get destroyed(){return ce(this,zr)===mr.Destroy}get mounted(){return ce(this,zr)>=mr.EditorView&&ce(this,zr)ce(this,_i),enumerable:e},phase:{get:()=>ce(this,zr),enumerable:e},view:{get:()=>this.view,enumerable:e},managerSettings:{get:()=>ha(ce(this,_a)),enumerable:e},getState:{value:this.getState,enumerable:e},updateState:{value:this.updateState,enumerable:e},isMounted:{value:()=>this.mounted,enumerable:e},getExtension:{value:this.getExtension.bind(this),enumerable:e},manager:{get:()=>this,enumerable:e},document:{get:()=>this.document,enumerable:e},stringHandlers:{get:()=>ce(this,td),enumerable:e},currentState:{get:()=>n??(n=this.getState()),set:o=>{n=o},enumerable:e},previousState:{get:()=>r,set:o=>{r=o},enumerable:e}}),t.getStoreKey=this.getStoreKey.bind(this),t.setStoreKey=this.setStoreKey.bind(this),t.setExtensionStore=this.setExtensionStore.bind(this),t.setStringHandler=this.setStringHandler.bind(this),t}addView(t){if(ce(this,zr)>=mr.EditorView)return this;gn(this,rd,!0),gn(this,zr,mr.EditorView),ce(this,Lo).view=t;for(const e of ce(this,Ra).view){const n=e(t);n&&ce(this,od).push(n)}return this}attachFramework(t,e){var n;ce(this,No)!==t&&(ce(this,No)&&(ce(this,No).destroy(),(n=ce(this,id))==null||n.call(this)),gn(this,No,t),gn(this,id,this.addHandler("stateUpdate",e)))}createEmptyDoc(){var t;const e=(t=this.schema.nodes.doc)==null?void 0:t.createAndFill();return be(e,{code:re.INVALID_CONTENT,message:"An empty node could not be created due to an invalid schema."}),e}createState(t={}){const{onError:e,defaultSelection:n="end"}=this.settings,{content:r=this.createEmptyDoc(),selection:o=n,stringHandler:i=this.settings.stringHandler}=t,{schema:s,plugins:l}=this.store,a=vA({stringHandler:ke(i)?this.stringHandlers[i]:i,document:this.document,content:r,onError:e,schema:s,selection:o});return ya.create({schema:s,doc:a,plugins:l,selection:or(o,a)})}addHandler(t,e){return ce(this,Ma).on(t,e)}onStateUpdate(t){const e=ce(this,rd);ce(this,Cs).currentState=t.state,ce(this,Cs).previousState=t.previousState,e&&(gn(this,zr,mr.Runtime),gn(this,rd,!1));const n={...t,firstUpdate:e};for(const r of ce(this,Ra).update)r(n);ce(this,Ma).emit("stateUpdate",n)}getExtension(t){const e=ce(this,nd).get(t);return be(e,{code:re.INVALID_MANAGER_EXTENSION,message:`'${t.name}' doesn't exist within this manager. Make sure it is properly added before attempting to use it.`}),e}hasExtension(t){return!!ce(this,nd).get(t)}clone(){const t=ce(this,_i).map(n=>n.clone(n.options)),e=gf.create(()=>t,ce(this,_a));return ce(this,Ma).emit("clone",e),e}recreate(t=[],e={}){const n=ce(this,_i).map(o=>o.clone(o.initialOptions)),r=gf.create(()=>[...n,...t],e);return ce(this,Ma).emit("recreate",r),r}destroy(){var t,e,n,r,o,i;gn(this,zr,mr.Destroy);for(const s of((t=this.view)==null?void 0:t.state.plugins)??[])(n=(e=s.getState(this.view.state))==null?void 0:e.destroy)==null||n.call(e);(r=ce(this,No))==null||r.destroy(),(o=ce(this,id))==null||o.call(this);for(const s of ce(this,od))s();for(const s of ce(this,Ra).destroy)s();(i=this.view)==null||i.destroy(),ce(this,Ma).emit("destroy")}includes(t){const e=[],n=[];for(const r of ce(this,_i))e.push(r.name,r.constructorName),n.push(r.constructor);return t.every(r=>ke(r)?Jn(e,r):Jn(n,r))}},KF=gf;Cs=new WeakMap,td=new WeakMap,Lo=new WeakMap,_i=new WeakMap,nd=new WeakMap,zr=new WeakMap,_a=new WeakMap,rd=new WeakMap,Ra=new WeakMap,od=new WeakMap,Ma=new WeakMap,No=new WeakMap,id=new WeakMap;function YF(t,e){return!Zl(t)||!Jl(t,hn.Manager)?!1:e?t.includes(e):!0}var XF=Object.defineProperty,qF=Object.getOwnPropertyDescriptor,sd=(t,e,n,r)=>{for(var o=r>1?void 0:r?qF(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&XF(e,n,o),o},YA=/\S+/g;function XA(t){return t.type.isTextblock?1:t.type.isText?t.textBetween(0,t.nodeSize).length:0}function ZF({doc:t},e){let n=0,r=0;return t.nodesBetween(0,t.nodeSize-2,(o,i)=>{if(r>0)return!1;const s=XA(o);return n+s>e?(r=i+1+(e-n),!1):(n+=s,!0)}),r}function JF({doc:t},e){let n=0,r=0;return t.nodesBetween(0,t.nodeSize-2,(o,i)=>{if(r>0)return!1;if(!o.type.isText)return!0;const s=o.textBetween(0,o.nodeSize),l=Il(s,YA);if(n+l.length>e){const a=e-n,u=l[a];return r=i+((u==null?void 0:u.index)??0),!1}return n+=l.length,!0}),r}var Ts=class extends ht{get name(){return"count"}getCountMaximum(){return this.options.maximum}getCharacterCount(t=this.store.getState()){let e=0;return t.doc.nodesBetween(0,t.doc.nodeSize-2,n=>(e+=XA(n),!0)),Math.max(e-1,0)}getWordCount(t=this.store.getState()){const e=this.store.helpers.getText({lineBreakDivider:" ",state:t});return Il(e,YA).length}isCountValid(t=this.store.getState()){const{maximumStrategy:e,maximum:n}=this.options;return n<1?!0:e==="CHARACTERS"?this.store.helpers.getCharacterCount(t)<=n:this.store.helpers.getWordCount(t)<=n}createDecorationSet(t){const{maximum:e=-1,maximumStrategy:n,maximumExceededClassName:r}=this.options,s=(n==="CHARACTERS"?ZF:JF)(t,e);return Ue.create(t.doc,[mt.inline(s,t.doc.nodeSize-2,{class:r})])}createExternalPlugins(){const{maximum:t}=this.options,e=new Xo({state:{init:(n,r)=>this.isCountValid(r)?{decorationSet:Ue.empty}:{decorationSet:this.createDecorationSet(r)},apply:(n,r,o,i)=>!n.docChanged||t<1?r:this.isCountValid(i)?{decorationSet:Ue.empty}:{decorationSet:this.createDecorationSet(i)}},props:{decorations(n){var r;return((r=e.getState(n))==null?void 0:r.decorationSet)??null}}});return[e]}};sd([nt()],Ts.prototype,"getCountMaximum",1),sd([nt()],Ts.prototype,"getCharacterCount",1),sd([nt()],Ts.prototype,"getWordCount",1),sd([nt()],Ts.prototype,"isCountValid",1),Ts=sd([Ne({defaultOptions:{maximum:-1,maximumExceededClassName:"remirror-max-count-exceeded",maximumStrategy:"CHARACTERS"},staticKeys:["maximum","maximumStrategy","maximumExceededClassName"]})],Ts);var QF="Expected a function",qA="__lodash_hash_undefined__",eB="[object Function]",tB="[object GeneratorFunction]",nB=/[\\^$.*+?()[\]{}|]/g,rB=/^\[object .+?Constructor\]$/,oB=typeof $e=="object"&&$e&&$e.Object===Object&&$e,iB=typeof self=="object"&&self&&self.Object===Object&&self,ZA=oB||iB||Function("return this")();function sB(t,e){return t==null?void 0:t[e]}function aB(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}var lB=Array.prototype,cB=Function.prototype,JA=Object.prototype,b0=ZA["__core-js_shared__"],QA=function(){var t=/[^.]+$/.exec(b0&&b0.keys&&b0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),e_=cB.toString,x0=JA.hasOwnProperty,uB=JA.toString,dB=RegExp("^"+e_.call(x0).replace(nB,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hB=lB.splice,pB=t_(ZA,"Map"),ad=t_(Object,"create");function Oa(t){var e=-1,n=t?t.length:0;for(this.clear();++e-1}function EB(t,e){var n=this.__data__,r=mf(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}sc.prototype.clear=bB,sc.prototype.delete=xB,sc.prototype.get=wB,sc.prototype.has=kB,sc.prototype.set=EB;function Ia(t){var e=-1,n=t?t.length:0;for(this.clear();++e4&&n.slice(0,4)===T0&&TH.test(e)&&(e.charAt(4)==="-"?r=RH(e):e=MH(e),o=EH),new o(r,e))}function RH(t){var e=t.slice(5).replace(g_,IH);return T0+e.charAt(0).toUpperCase()+e.slice(1)}function MH(t){var e=t.slice(4);return g_.test(e)?t:(e=e.replace(AH,OH),e.charAt(0)!=="-"&&(e="-"+e),T0+e)}function OH(t){return"-"+t.toLowerCase()}function IH(t){return t.charAt(1).toUpperCase()}var LH=NH,m_=/[#.]/g;function NH(t,e){for(var n=t||"",r=e||"div",o={},i=0,s,l,a;i",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},n6={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var C_=r6;function r6(t){var e=typeof t=="string"?t.charCodeAt(0):t;return e>=48&&e<=57}var o6=i6;function i6(t){var e=typeof t=="string"?t.charCodeAt(0):t;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}var s6=a6;function a6(t){var e=typeof t=="string"?t.charCodeAt(0):t;return e>=97&&e<=122||e>=65&&e<=90}var l6=s6,c6=C_,u6=d6;function d6(t){return l6(t)||c6(t)}var bf,h6=59,p6=f6;function f6(t){var e="&"+t+";",n;return bf=bf||document.createElement("i"),bf.innerHTML=e,n=bf.textContent,n.charCodeAt(n.length-1)===h6&&t!=="semi"||n===e?!1:n}var T_=t6,A_=n6,g6=C_,m6=o6,__=u6,v6=p6,y6=O6,b6={}.hasOwnProperty,lc=String.fromCharCode,x6=Function.prototype,R_={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},w6=9,M_=10,k6=12,E6=32,O_=38,S6=59,C6=60,T6=61,A6=35,_6=88,R6=120,M6=65533,cc="named",M0="hexadecimal",O0="decimal",I0={};I0[M0]=16,I0[O0]=10;var xf={};xf[cc]=__,xf[O0]=g6,xf[M0]=m6;var I_=1,L_=2,N_=3,$_=4,D_=5,L0=6,P_=7,As={};As[I_]="Named character references must be terminated by a semicolon",As[L_]="Numeric character references must be terminated by a semicolon",As[N_]="Named character references cannot be empty",As[$_]="Numeric character references cannot be empty",As[D_]="Named character references must be known",As[L0]="Numeric character references cannot be disallowed",As[P_]="Numeric character references cannot be outside the permissible Unicode range";function O6(t,e){var n={},r,o;e||(e={});for(o in R_)r=e[o],n[o]=r??R_[o];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),I6(t,n)}function I6(t,e){var n=e.additional,r=e.nonTerminated,o=e.text,i=e.reference,s=e.warning,l=e.textContext,a=e.referenceContext,u=e.warningContext,c=e.position,d=e.indent||[],h=t.length,p=0,f=-1,g=c.column||1,m=c.line||1,v="",y=[],b,x,k,w,S,A,C,O,R,_,T,E,M,I,N,L,$,P,F;for(typeof n=="string"&&(n=n.charCodeAt(0)),L=H(),O=s?W:x6,p--,h++;++p65535&&(A-=65536,_+=lc(A>>>10|55296),A=56320|A&1023),A=_+lc(A))):I!==cc&&O($_,P)),A?(B(),L=H(),p=F-1,g+=F-M+1,y.push(A),$=H(),$.offset++,i&&i.call(a,A,{start:L,end:$},t.slice(M-1,F)),L=$):(w=t.slice(M-1,F),v+=w,g+=w.length,p=F-1)}else S===10&&(m++,f++,g=0),S===S?(v+=lc(S),g++):B();return y.join("");function H(){return{line:m,column:g,offset:p+(c.offset||0)}}function W(U,G){var Y=H();Y.column+=G,Y.offset+=G,s.call(u,As[U],Y,U)}function B(){v&&(y.push(v),o&&o.call(l,v,{start:L,end:H()}),v="")}}function L6(t){return t>=55296&&t<=57343||t>1114111}function N6(t){return t>=1&&t<=8||t===11||t>=13&&t<=31||t>=127&&t<=159||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534}var z_={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +`,ns)}getHTML(t=this.store.getState()){return Tz(t.doc,this.store.document)}textToProsemirrorNode(t){const e=`
${t.content}
`;return this.store.stringHandlers.html({...t,content:e})}};ge([nt()],co.prototype,"isSelectionEmpty",1),ge([nt()],co.prototype,"isViewEditable",1),ge([nt()],co.prototype,"getStateJSON",1),ge([nt()],co.prototype,"getJSON",1),ge([nt()],co.prototype,"getRemirrorJSON",1),ge([le()],co.prototype,"insertHtml",1),ge([nt()],co.prototype,"getText",1),ge([nt()],co.prototype,"getTextBetween",1),ge([nt()],co.prototype,"getHTML",1),co=ge([Ne({})],co);var y0=class extends ct{get name(){return"inputRules"}onCreate(){this.store.setExtensionStore("rebuildInputRules",this.rebuildInputRules.bind(this))}createExternalPlugins(){return[this.generateInputRulesPlugin()]}generateInputRulesPlugin(){var t,e;const n=[],r=this.store.markTags[we.ExcludeInputRules];for(const o of this.store.extensions)if(!((t=this.store.managerSettings.exclude)!=null&&t.inputRules||!o.createInputRules||(e=o.options.exclude)!=null&&e.inputRules))for(const i of o.createInputRules())i.shouldSkip=this.options.shouldSkipInputRule,i.invalidMarks=r,n.push(i);return FP({rules:n})}rebuildInputRules(){this.store.updateExtensionPlugins(this)}};y0=ge([Ne({defaultPriority:tt.Default,handlerKeys:["shouldSkipInputRule"],handlerKeyOptions:{shouldSkipInputRule:{earlyReturnValue:!0}}})],y0);var Io=class extends ct{constructor(){super(...arguments),this.extraKeyBindings=[],this.backwardMarkExitTracker=new Map,this.keydownHandler=null,this.onAddCustomHandler=({keymap:t})=>{var e,n;if(t)return this.extraKeyBindings=[...this.extraKeyBindings,t],(n=(e=this.store).rebuildKeymap)==null||n.call(e),()=>{var r,o;this.extraKeyBindings=this.extraKeyBindings.filter(i=>i!==t),(o=(r=this.store).rebuildKeymap)==null||o.call(r)}},this.rebuildKeymap=()=>{this.setupKeydownHandler()}}get name(){return"keymap"}get shortcutMap(){const{shortcuts:t}=this.options;return ke(t)?GF[t]:t}onCreate(){this.store.setExtensionStore("rebuildKeymap",this.rebuildKeymap)}createExternalPlugins(){var t;return(t=this.store.managerSettings.exclude)!=null&&t.keymap?[]:(this.setupKeydownHandler(),[new qo({props:{handleKeyDown:(e,n)=>{var r;return(r=this.keydownHandler)==null?void 0:r.call(this,e,n)}}})])}setupKeydownHandler(){const t=this.generateKeymapBindings();this.keydownHandler=g0(t)}generateKeymapBindings(){var t;const e=[],n=this.shortcutMap,r=this.store.getExtension(We),o=l=>a=>df({shortcut:a,map:n,store:this.store,options:l.options});for(const l of this.store.extensions){const a=l.decoratedKeybindings??{};if(!((t=l.options.exclude)!=null&&t.keymap)){l.createKeymap&&e.push(VF(l.createKeymap(o(l)),n));for(const[u,c]of nn(a)){if(c.isActive&&!c.isActive(l.options,this.store))continue;const d=l[u].bind(l),h=df({shortcut:c.shortcut,map:n,options:l.options,store:this.store}),p=Xe(c.priority)?c.priority(l.options,this.store):c.priority??tt.Low,f=ye();for(const g of h)f[g]=d;e.push([p,f]),c.command&&r.updateDecorated(c.command,{shortcut:h})}}}const i=this.sortKeymaps([...this.extraKeyBindings,...e]);return rz(i)}arrowRightShortcut(t){const e=this.store.markTags[we.PreventExits],n=this.store.nodeTags[we.PreventExits];return this.exitMarkForwards(e,n)(t)}arrowLeftShortcut(t){const e=this.store.markTags[we.PreventExits],n=this.store.nodeTags[we.PreventExits];return Qp(this.exitNodeBackwards(n),this.exitMarkBackwards(e,n))(t)}backspace(t){const e=this.store.markTags[we.PreventExits],n=this.store.nodeTags[we.PreventExits];return Qp(this.exitNodeBackwards(n,!0),this.exitMarkBackwards(e,n,!0))(t)}createKeymap(){const{selectParentNodeOnEscape:t,undoInputRuleOnBackspace:e,excludeBaseKeymap:n}=this.options,r=ye();if(!n)for(const[o,i]of nn(h0))r[o]=Yu(i);return e&&h0.Backspace&&(r.Backspace=Yu(sf(BP,h0.Backspace))),t&&(r.Escape=Yu(eF)),[tt.Low,r]}getNamedShortcut(t,e={}){return t.startsWith("_|")?df({shortcut:t,map:this.shortcutMap,store:this.store,options:e}):[t]}onSetOptions(t){var e,n;const{changes:r}=t;(r.excludeBaseKeymap.changed||r.selectParentNodeOnEscape.changed||r.undoInputRuleOnBackspace.changed)&&((n=(e=this.store).rebuildKeymap)==null||n.call(e))}sortKeymaps(t){return as(t.map(e=>Ot(e)?e:[tt.Default,e]),(e,n)=>n[0]-e[0]).map(e=>e[1])}exitMarkForwards(t,e){return n=>{const{tr:r,dispatch:o}=n;if(!Mz(r.selection)||ti({selection:r.selection,types:e}))return!1;const l=r.selection.$from.marks().filter(a=>!t.includes(a.type.name));if(ss(l))return!1;if(!o)return!0;for(const a of l)r.removeStoredMark(a);return o(r.insertText(" ",r.selection.from)),!0}}exitNodeBackwards(t,e=!1){return n=>{const{tr:r}=n;if(!(e?$A:l0)(r.selection))return!1;const i=r.selection.$anchor.node();return!nf(i)||pz(i)||t.includes(i.type.name)?!1:this.store.commands.toggleBlockNodeItem.original({type:i.type})(n)}}exitMarkBackwards(t,e,n=!1){return r=>{const{tr:o,dispatch:i}=r;if(!(n?$A:l0)(o.selection)||this.backwardMarkExitTracker.has(o.selection.anchor))return this.backwardMarkExitTracker.clear(),!1;if(ti({selection:o.selection,types:e}))return!1;const a=[...o.storedMarks??[],...o.selection.$from.marks()].filter(u=>!t.includes(u.type.name));if(ss(a))return!1;if(!i)return!0;for(const u of a)o.removeStoredMark(u);return this.backwardMarkExitTracker.set(o.selection.anchor,!0),i(o),!0}}};ge([Zt({shortcut:"ArrowRight",isActive:t=>t.exitMarksOnArrowPress})],Io.prototype,"arrowRightShortcut",1),ge([Zt({shortcut:"ArrowLeft",isActive:t=>t.exitMarksOnArrowPress})],Io.prototype,"arrowLeftShortcut",1),ge([Zt({shortcut:"Backspace",isActive:t=>t.exitMarksOnArrowPress})],Io.prototype,"backspace",1),ge([nt()],Io.prototype,"getNamedShortcut",1),Io=ge([Ne({defaultPriority:tt.Low,defaultOptions:{shortcuts:"default",undoInputRuleOnBackspace:!0,selectParentNodeOnEscape:!1,excludeBaseKeymap:!1,exitMarksOnArrowPress:!0},customHandlerKeys:["keymap"]})],Io);function WF(t){return Qn(Cu(oe),t)}function df({shortcut:t,map:e,options:n,store:r}){return ke(t)?[b0(t,e)]:Ot(t)?t.map(o=>b0(o,e)):(t=t(n,r),df({shortcut:t,map:e,options:n,store:r}))}function b0(t,e){return WF(t)?e[t]:t}function VF(t,e){const n={};let r,o;Ot(t)?[o,r]=t:r=t;for(const[i,s]of nn(r))n[b0(i,e)]=s;return Ap(o)?n:[o,n]}var o_={[oe.Copy]:"Mod-c",[oe.Cut]:"Mod-x",[oe.Paste]:"Mod-v",[oe.PastePlain]:"Mod-Shift-v",[oe.SelectAll]:"Mod-a",[oe.Undo]:"Mod-z",[oe.Redo]:xr.isMac?"Shift-Mod-z":"Mod-y",[oe.Bold]:"Mod-b",[oe.Italic]:"Mod-i",[oe.Underline]:"Mod-u",[oe.Strike]:"Mod-d",[oe.Code]:"Mod-`",[oe.Paragraph]:"Mod-Shift-0",[oe.H1]:"Mod-Shift-1",[oe.H2]:"Mod-Shift-2",[oe.H3]:"Mod-Shift-3",[oe.H4]:"Mod-Shift-4",[oe.H5]:"Mod-Shift-5",[oe.H6]:"Mod-Shift-6",[oe.TaskList]:"Mod-Shift-7",[oe.BulletList]:"Mod-Shift-8",[oe.OrderedList]:"Mod-Shift-9",[oe.Quote]:"Mod->",[oe.Divider]:"Mod-Shift-|",[oe.Codeblock]:"Mod-Shift-~",[oe.ClearFormatting]:"Mod-Shift-C",[oe.Superscript]:"Mod-.",[oe.Subscript]:"Mod-,",[oe.LeftAlignment]:"Mod-Shift-L",[oe.CenterAlignment]:"Mod-Shift-E",[oe.RightAlignment]:"Mod-Shift-R",[oe.JustifyAlignment]:"Mod-Shift-J",[oe.InsertLink]:"Mod-k",[oe.Find]:"Mod-f",[oe.FindBackwards]:"Mod-Shift-f",[oe.FindReplace]:"Mod-Shift-H",[oe.AddFootnote]:"Mod-Alt-f",[oe.AddComment]:"Mod-Alt-m",[oe.ContextMenu]:"Mod-Shift-\\",[oe.IncreaseFontSize]:"Mod-Shift-.",[oe.DecreaseFontSize]:"Mod-Shift-,",[oe.IncreaseIndent]:"Tab",[oe.DecreaseIndent]:"Shift-Tab",[oe.Shortcuts]:"Mod-/",[oe.Format]:xr.isMac?"Alt-Shift-f":"Shift-Ctrl-f"},jF={...o_,[oe.Strike]:"Mod-Shift-S",[oe.Code]:"Mod-Shift-M",[oe.Paragraph]:"Mod-Alt-0",[oe.H1]:"Mod-Alt-1",[oe.H2]:"Mod-Alt-2",[oe.H3]:"Mod-Alt-3",[oe.H4]:"Mod-Alt-4",[oe.H5]:"Mod-Alt-5",[oe.H6]:"Mod-Alt-6",[oe.OrderedList]:"Mod-Alt-7",[oe.BulletList]:"Mod-Alt-8",[oe.Quote]:"Mod-Alt-9",[oe.ClearFormatting]:"Mod-\\",[oe.IncreaseIndent]:"Mod-[",[oe.DecreaseIndent]:"Mod-]"},GF={default:o_,googleDoc:jF},KF=class extends ct{get name(){return"nodeViews"}createPlugin(){const t=[],e=ye();for(const n of this.store.extensions){if(!n.createNodeViews)continue;const r=n.createNodeViews();t.unshift(Xe(r)?{[n.name]:r}:r)}t.unshift(this.store.managerSettings.nodeViews??{});for(const n of t)Object.assign(e,n);return{props:{nodeViews:e}}}},YF=class extends ct{get name(){return"pasteRules"}createExternalPlugins(){return[this.generatePasteRulesPlugin()]}generatePasteRulesPlugin(){var t,e;const n=[];for(const r of this.store.extensions){if((t=this.store.managerSettings.exclude)!=null&&t.pasteRules||!r.createPasteRules||(e=r.options.exclude)!=null&&e.pasteRules)continue;const o=r.createPasteRules(),i=Ot(o)?o:[o];n.push(...i)}return fF(n)}},hf=class extends ct{constructor(){super(...arguments),this.plugins=[],this.managerPlugins=[],this.applyStateHandlers=[],this.initStateHandlers=[],this.appendTransactionHandlers=[],this.pluginKeys=ye(),this.stateGetters=new Map,this.getPluginStateCreator=t=>e=>t.getState(e??this.store.getState()),this.getStateByName=t=>{const e=this.stateGetters.get(t);return be(e,{message:"No plugin exists for the requested extension name."}),e()}}get name(){return"plugins"}onCreate(){const{setStoreKey:t,setExtensionStore:e,managerSettings:n,extensions:r}=this.store;this.updateExtensionStore();const{plugins:o=[]}=n;this.updatePlugins(o,this.managerPlugins);for(const i of r)i.onApplyState&&this.applyStateHandlers.push(i.onApplyState.bind(i)),i.onInitState&&this.initStateHandlers.push(i.onInitState.bind(i)),i.onAppendTransaction&&this.appendTransactionHandlers.push(i.onAppendTransaction.bind(i)),this.extractExtensionPlugins(i);this.managerPlugins=o,this.store.setStoreKey("plugins",this.plugins),t("pluginKeys",this.pluginKeys),t("getPluginState",this.getStateByName),e("getPluginState",this.getStateByName)}createPlugin(){return{appendTransaction:(t,e,n)=>{const r=n.tr,o={previousState:e,tr:r,transactions:t,state:n};for(const i of this.appendTransactionHandlers)i(o);return this.options.appendTransaction(o),r.docChanged||r.steps.length>0||r.selectionSet||r.storedMarksSet?r:void 0},state:{init:(t,e)=>{for(const n of this.initStateHandlers)n(e)},apply:(t,e,n,r)=>{const o={previousState:n,state:r,tr:t};for(const i of this.applyStateHandlers)i(o);this.options.applyState(o)}}}}extractExtensionPlugins(t){var e,n;if(!(!t.createPlugin&&!t.createExternalPlugins||(e=this.store.managerSettings.exclude)!=null&&e.plugins||(n=t.options.exclude)!=null&&n.plugins)){if(t.createPlugin){const o=new wa(t.name);this.pluginKeys[t.name]=o;const i=this.getPluginStateCreator(o);t.pluginKey=o,t.getPluginState=i,this.stateGetters.set(t.name,i),this.stateGetters.set(t.constructor,i);const s={...t.createPlugin(),key:o},l=new qo(s);this.updatePlugins([l],t.plugin?[t.plugin]:void 0),t.plugin=l}if(t.createExternalPlugins){const o=t.createExternalPlugins();this.updatePlugins(o,t.externalPlugins),t.externalPlugins=o}}}updatePlugins(t,e){if(!e||ss(e)){this.plugins=[...this.plugins,...t];return}if(t.length!==e.length){this.plugins=[...this.plugins.filter(r=>!e.includes(r)),...t];return}const n=new Map;for(const[r,o]of t.entries())n.set(_t(e,r),o);this.plugins=this.plugins.map(r=>e.includes(r)?n.get(r):r)}updateExtensionStore(){const{setExtensionStore:t}=this.store;t("updatePlugins",this.updatePlugins.bind(this)),t("dispatchPluginUpdate",this.dispatchPluginUpdate.bind(this)),t("updateExtensionPlugins",this.updateExtensionPlugins.bind(this))}updateExtensionPlugins(t){const e=t_(t)?t:LF(t)?this.store.manager.getExtension(t):this.store.extensions.find(n=>n.name===t);be(e,{code:re.INVALID_MANAGER_EXTENSION,message:`The extension ${t} does not exist within the editor.`}),this.extractExtensionPlugins(e),this.store.setStoreKey("plugins",this.plugins),this.dispatchPluginUpdate()}dispatchPluginUpdate(){be(this.store.phase>=vr.EditorView,{code:re.MANAGER_PHASE_ERROR,message:"`dispatchPluginUpdate` should only be called after the view has been added to the manager."});const{view:t,updateState:e}=this.store,n=t.state.reconfigure({plugins:this.plugins});e(n)}};hf=ge([Ne({defaultPriority:tt.Highest,handlerKeys:["applyState","appendTransaction"]})],hf);var x0=class extends ct{constructor(){super(...arguments),this.dynamicAttributes={marks:ye(),nodes:ye()}}get name(){return"schema"}onCreate(){const{managerSettings:t,tags:e,markNames:n,nodeNames:r,extensions:o}=this.store,{defaultBlockNode:i,disableExtraAttributes:s,nodeOverride:l,markOverride:a}=t,u=f=>!!(f&&e[we.Block].includes(f));if(t.schema){const{nodes:f,marks:g}=nB(t.schema);this.addSchema(t.schema,f,g);return}const c=u(i)?{doc:ye(),[i]:ye()}:ye(),d=ye(),h=XF({settings:t,gatheredSchemaAttributes:this.gatherExtraAttributes(o),nodeNames:r,markNames:n,tags:e});for(const f of o){h[f.name]={...h[f.name],...f.options.extraAttributes};const g=s===!0||f.options.disableExtraAttributes===!0||f.constructor.disableExtraAttributes===!0;if(td(f)){const{spec:m,dynamic:v}=i_({createExtensionSpec:(y,b)=>f.createNodeSpec(y,b),extraAttributes:_t(h,f.name),override:{...l,...f.options.nodeOverride},ignoreExtraAttributes:g,name:f.constructorName,tags:f.tags});f.spec=m,c[f.name]=m,Object.keys(v).length>0&&(this.dynamicAttributes.nodes[f.name]=v)}if(uf(f)){const{spec:m,dynamic:v}=i_({createExtensionSpec:(y,b)=>f.createMarkSpec(y,b),extraAttributes:_t(h,f.name),override:{...a,...f.options.markOverride},ignoreExtraAttributes:g,name:f.constructorName,tags:f.tags??[]});f.spec=m,d[f.name]=m,Object.keys(v).length>0&&(this.dynamicAttributes.marks[f.name]=v)}}const p=new G4({nodes:c,marks:d,topNode:"doc"});this.addSchema(p,c,d)}createPlugin(){return{appendTransaction:(t,e,n)=>{const{tr:r}=n;return!t.some(i=>i.docChanged)||Object.keys(this.dynamicAttributes.nodes).length===0&&Object.keys(this.dynamicAttributes.marks).length===0?null:(r.doc.descendants((i,s)=>(this.checkAndUpdateDynamicNodes(i,s,r),this.checkAndUpdateDynamicMarks(i,s,r),!0)),r.steps.length>0?r:null)}}}addSchema(t,e,n){this.store.setStoreKey("nodes",e),this.store.setStoreKey("marks",n),this.store.setStoreKey("schema",t),this.store.setExtensionStore("schema",t),this.store.setStoreKey("defaultBlockNode",tf(t).name);for(const r of Object.values(t.nodes))if(r.name!=="doc"&&(r.isBlock||r.isTextblock))break}checkAndUpdateDynamicNodes(t,e,n){for(const[r,o]of nn(this.dynamicAttributes.nodes))if(t.type.name===r)for(const[i,s]of nn(o)){if(!is(t.attrs[i]))continue;const l={...t.attrs,[i]:s(t)};n.setNodeMarkup(e,void 0,l),wA(n)}}checkAndUpdateDynamicMarks(t,e,n){for(const[r,o]of nn(this.dynamicAttributes.marks)){const i=_t(this.store.schema.marks,r),s=t.marks.find(l=>l.type.name===r);if(s)for(const[l,a]of nn(o)){if(!is(s.attrs[l]))continue;const u=Ti(n.doc.resolve(e),i);if(!u)continue;const{from:c,to:d}=u,h=i.create({...s.attrs,[l]:a(s)});n.removeMark(c,d,i).addMark(c,d,h),wA(n)}}}gatherExtraAttributes(t){const e=[];for(const n of t)n.createSchemaAttributes&&e.push(...n.createSchemaAttributes());return e}};x0=ge([Ne({defaultPriority:tt.Highest})],x0);function XF(t){const{settings:e,gatheredSchemaAttributes:n,nodeNames:r,markNames:o,tags:i}=t,s=ye();if(e.disableExtraAttributes)return s;const l=[...n,...e.extraAttributes??[]];for(const a of l??[]){const u=ZF({identifiers:a.identifiers,nodeNames:r,markNames:o,tags:i});for(const c of u){const d=s[c]??{};s[c]={...d,...a.attributes}}}return s}function qF(t){return rs(t)&&Ot(t.tags)}function ZF(t){const{identifiers:e,nodeNames:n,markNames:r,tags:o}=t;if(e==="nodes")return n;if(e==="marks")return r;if(e==="all")return[...n,...r];if(Ot(e))return e;be(qF(e),{code:re.EXTENSION_EXTRA_ATTRIBUTES,message:"Invalid value passed as an identifier when creating `extraAttributes`."});const{tags:i=[],names:s=[],behavior:l="any",excludeNames:a,excludeTags:u,type:c}=e,d=new Set,h=c==="mark"?r:c==="node"?n:[...r,...n],p=g=>h.includes(g)&&!(a!=null&&a.includes(g));for(const g of s)p(g)&&d.add(g);const f=new Map;for(const g of i)if(!(u!=null&&u.includes(g)))for(const m of o[g]){if(!p(m))continue;if(l==="any"){d.add(m);continue}const v=f.get(m)??new Set;v.add(g),f.set(m,v)}for(const[g,m]of f)m.size===i.length&&d.add(g);return[...d]}function i_(t){var e;const{createExtensionSpec:n,extraAttributes:r,ignoreExtraAttributes:o,name:i,tags:s,override:l}=t,a=ye();function u(m,v){a[m]=v}let c=!1;function d(){c=!0}const h=JF(r,o,d,u),p=QF(r,o),f=eB(r,o),g=n({defaults:h,parse:p,dom:f},l);return be(o||c,{code:re.EXTENSION_SPEC,message:`When creating a node specification you must call the 'defaults', and parse, and 'dom' methods. To avoid this error you can set the static property 'disableExtraAttributes' of '${i}' to 'true'.`}),g.group=[...((e=g.group)==null?void 0:e.split(" "))??[],...s].join(" ")||void 0,{spec:g,dynamic:a}}function w0(t){return ke(t)||Xe(t)?{default:t}:(be(t,{message:`${IS(t)} is not supported`,code:re.EXTENSION_EXTRA_ATTRIBUTES}),t)}function JF(t,e,n,r){return()=>{n();const o=ye();if(e)return o;for(const[i,s]of nn(t)){let a=w0(s).default;Xe(a)&&(r(i,a),a=null),o[i]=a===void 0?{}:{default:a}}return o}}function QF(t,e){return n=>{const r=ye();if(e)return r;for(const[o,i]of nn(t)){const{parseDOM:s,...l}=w0(i);if(Ft(n)){if(is(s)){r[o]=n.getAttribute(o)??l.default;continue}if(Xe(s)){r[o]=s(n)??l.default;continue}r[o]=n.getAttribute(s)??l.default}}return r}}function eB(t,e){return n=>{const r=ye();if(e)return r;function o(i,s){if(i){if(ke(i)){r[s]=i;return}if(Ot(i)){const[l,a]=i;r[l]=a??n.attrs[s];return}for(const[l,a]of nn(i))r[l]=a}}for(const[i,s]of nn(t)){const{toDOM:l,parseDOM:a}=w0(s);if(is(l)){const u=ke(a)?a:i;r[u]=n.attrs[i];continue}if(Xe(l)){o(l(n.attrs,tB(n)),i);continue}o(l,i)}return r}}function tB(t){return Zu(t)?{node:t}:cz(t)?{mark:t}:{}}function nB(t){const e=ye(),n=ye();for(const[r,o]of Object.entries(t.nodes))e[r]=o.spec;for(const[r,o]of Object.entries(t.marks))n[r]=o.spec;return{nodes:e,marks:n}}var rc=class extends ct{constructor(){super(...arguments),this.onAddCustomHandler=({suggester:t})=>{var e;if(!(!t||(e=this.store.managerSettings.exclude)!=null&&e.suggesters))return xA(this.store.getState(),t)}}get name(){return"suggest"}onCreate(){this.store.setExtensionStore("addSuggester",t=>xA(this.store.getState(),t)),this.store.setExtensionStore("removeSuggester",t=>G3(this.store.getState(),t))}createExternalPlugins(){var t,e;const n=[];for(const r of this.store.extensions){if((t=this.store.managerSettings.exclude)!=null&&t.suggesters)break;if(!r.createSuggesters||(e=r.options.exclude)!=null&&e.suggesters)continue;const o=r.createSuggesters(),i=Ot(o)?o:[o];n.push(...i)}return[K3(...n)]}getSuggestState(t){return e0(t??this.store.getState())}getSuggestMethods(){const{addIgnored:t,clearIgnored:e,removeIgnored:n,ignoreNextExit:r,setMarkRemoved:o,findMatchAtPosition:i,findNextTextSelection:s,setLastChangeFromAppend:l}=this.getSuggestState();return{addIgnored:t,clearIgnored:e,removeIgnored:n,ignoreNextExit:r,setMarkRemoved:o,findMatchAtPosition:i,findNextTextSelection:s,setLastChangeFromAppend:l}}isSuggesterActive(t){var e;return Qn(Ot(t)?t:[t],(e=this.getSuggestState().match)==null?void 0:e.suggester.name)}};ge([nt()],rc.prototype,"getSuggestState",1),ge([nt()],rc.prototype,"getSuggestMethods",1),ge([nt()],rc.prototype,"isSuggesterActive",1),rc=ge([Ne({customHandlerKeys:["suggester"]})],rc);var k0=class extends ct{constructor(){super(...arguments),this.allTags=ye(),this.plainTags=ye(),this.markTags=ye(),this.nodeTags=ye()}get name(){return"tags"}onCreate(){this.resetTags();for(const t of this.store.extensions)this.updateTagForExtension(t);this.store.setStoreKey("tags",this.allTags),this.store.setExtensionStore("tags",this.allTags),this.store.setStoreKey("plainTags",this.plainTags),this.store.setExtensionStore("plainTags",this.plainTags),this.store.setStoreKey("markTags",this.markTags),this.store.setExtensionStore("markTags",this.markTags),this.store.setStoreKey("nodeTags",this.nodeTags),this.store.setExtensionStore("nodeTags",this.nodeTags)}resetTags(){const t=ye(),e=ye(),n=ye(),r=ye();for(const o of Cu(we))t[o]=[],e[o]=[],n[o]=[],r[o]=[];this.allTags=t,this.plainTags=e,this.markTags=n,this.nodeTags=r}updateTagForExtension(t){var e,n;const r=new Set([...t.tags??[],...((e=t.createTags)==null?void 0:e.call(t))??[],...t.options.extraTags??[],...((n=this.store.managerSettings.extraTags)==null?void 0:n[t.name])??[]]);for(const o of r)be(rB(o),{code:re.EXTENSION,message:`The tag provided by the extension: ${t.constructorName} is not supported by the editor. To add custom tags you can use the 'mutateTag' method.`}),this.allTags[o].push(t.name),n_(t)&&this.plainTags[o].push(t.name),uf(t)&&this.markTags[o].push(t.name),td(t)&&this.nodeTags[o].push(t.name);t.tags=[...r]}};k0=ge([Ne({defaultPriority:tt.Highest})],k0);function rB(t){return Qn(Cu(we),t)}var oB=new wa("remirrorFilePlaceholderPlugin");function iB(){const t=new qo({key:oB,state:{init(){return{set:Ue.empty,payloads:new Map}},apply(e,{set:n,payloads:r}){n=n.map(e.mapping,e.doc);const o=e.getMeta(t);if(o)if(o.type===0){const i=document.createElement("placeholder"),s=mt.widget(o.pos,i,{id:o.id});n=n.add(e.doc,[s]),r.set(o.id,o.payload)}else o.type===1&&(n=n.remove(n.find(void 0,void 0,i=>i.id===o.id)),r.delete(o.id));return{set:n,payloads:r}}},props:{decorations(e){var n;return((n=t.getState(e))==null?void 0:n.set)??null}}});return t}var sB=class extends ct{get name(){return"upload"}createExternalPlugins(){return[iB()]}};function aB(t={}){t={...{exitMarksOnArrowPress:Io.defaultOptions.exitMarksOnArrowPress,excludeBaseKeymap:Io.defaultOptions.excludeBaseKeymap,selectParentNodeOnEscape:Io.defaultOptions.selectParentNodeOnEscape,undoInputRuleOnBackspace:Io.defaultOptions.undoInputRuleOnBackspace,persistentSelectionClass:Oo.defaultOptions.persistentSelectionClass},...t};const n=e1(t,["excludeBaseKeymap","selectParentNodeOnEscape","undoInputRuleOnBackspace"]),r=e1(t,["persistentSelectionClass"]);return[new k0,new x0,new NF,new hf,new y0,new YF,new KF,new rc,new We,new co,new Io(n),new v0,new sB,new Oo(r)]}var s_=class extends ct{get name(){return"meta"}onCreate(){if(this.store.setStoreKey("getCommandMeta",this.getCommandMeta.bind(this)),!!this.options.capture)for(const t of this.store.extensions)this.captureCommands(t),this.captureKeybindings(t)}createPlugin(){return{}}captureCommands(t){const e=t.decoratedCommands??{},n=t.createCommands;for(const r of Object.keys(e)){const o=t[r];t[r]=(...i)=>s=>{var l;const a=o(...i)(s);return s.dispatch&&a&&this.setCommandMeta(s.tr,{type:"command",chain:s.dispatch!==((l=s.view)==null?void 0:l.dispatch),name:r,extension:t.name,decorated:!0}),a}}n&&(t.createCommands=()=>{const r=n();for(const[o,i]of Object.entries(r))r[o]=(...s)=>l=>{var a;const u=i(...s)(l);return l.dispatch&&u&&this.setCommandMeta(l.tr,{type:"command",chain:l.dispatch!==((a=l.view)==null?void 0:a.dispatch),name:o,extension:t.name,decorated:!1}),u};return r})}captureKeybindings(t){}getCommandMeta(t){return t.getMeta(this.pluginKey)??[]}setCommandMeta(t,e){const n=this.getCommandMeta(t);t.setMeta(this.pluginKey,[...n,e])}};s_=ge([Ne({defaultOptions:{capture:xr.isDevelopment},staticKeys:["capture"],defaultPriority:tt.Highest})],s_);var pf,nd,ff,oc,Cs,gf,mf,lB=class{constructor(t){qt(this,pf,Nl()),qt(this,nd,void 0),qt(this,ff,void 0),qt(this,oc,!0),qt(this,Cs,lf()),qt(this,gf,void 0),qt(this,mf,void 0),this.getState=()=>this.view.state??this.initialEditorState,this.getPreviousState=()=>this.previousState,this.dispatchTransaction=i=>{var s,l;be(!this.manager.destroyed,{code:re.MANAGER_PHASE_ERROR,message:"A transaction was dispatched to a manager that has already been destroyed. Please check your set up, or open an issue."}),i=((l=(s=this.props).onDispatchTransaction)==null?void 0:l.call(s,i,this.getState()))??i;const a=this.getState(),{state:u,transactions:c}=a.applyTransaction(i);gn(this,ff,a),this.updateState({state:u,tr:i,transactions:c});const d=this.manager.store.getForcedUpdates(i);ss(d)||this.updateViewProps(...d)},this.onChange=(i=ye())=>{var s,l;const a=this.eventListenerProps(i);ce(this,oc)&&gn(this,oc,!1),(l=(s=this.props).onChange)==null||l.call(s,a)},this.onBlur=i=>{var s,l;const a=this.eventListenerProps();(l=(s=this.props).onBlur)==null||l.call(s,a,i),ce(this,Cs).emit("blur",a,i)},this.onFocus=i=>{var s,l;const a=this.eventListenerProps();(l=(s=this.props).onFocus)==null||l.call(s,a,i),ce(this,Cs).emit("focus",a,i)},this.setContent=(i,{triggerChange:s=!1}={})=>{const{doc:l}=this.manager.createState({content:i}),a=this.getState(),{state:u}=this.getState().applyTransaction(a.tr.replaceRangeWith(0,a.doc.nodeSize-2,l));if(s)return this.updateState({state:u,triggerChange:s});this.view.updateState(u)},this.clearContent=({triggerChange:i=!1}={})=>{this.setContent(this.manager.createEmptyDoc(),{triggerChange:i})},this.createStateFromContent=(i,s)=>this.manager.createState({content:i,selection:s}),this.focus=i=>{this.manager.store.commands.focus(i)},this.blur=i=>{this.manager.store.commands.blur(i)};const{getProps:e,initialEditorState:n,element:r}=t;if(gn(this,nd,e),gn(this,mf,n),this.manager.attachFramework(this,this.updateListener.bind(this)),this.manager.view)return;const o=this.createView(n,r);this.manager.addView(o)}get addHandler(){return ce(this,gf)??gn(this,gf,ce(this,Cs).on.bind(ce(this,Cs)))}get updatableViewProps(){return{attributes:()=>this.getAttributes(),editable:()=>this.props.editable??!0}}get firstRender(){return ce(this,oc)}get props(){return ce(this,nd).call(this)}get previousState(){return this.previousStateOverride??ce(this,ff)??this.initialEditorState}get manager(){return this.props.manager}get view(){return this.manager.view}get uid(){return ce(this,pf)}get initialEditorState(){return ce(this,mf)}updateListener(t){const{state:e,tr:n}=t;return ce(this,Cs).emit("updated",this.eventListenerProps({state:e,tr:n}))}update(t){const{getProps:e}=t;return gn(this,nd,e),this}updateViewProps(...t){const e=e1(this.updatableViewProps,t);this.view.setProps({...this.view.props,...e})}getAttributes(t){var e;const{attributes:n,autoFocus:r,classNames:o=[],label:i,editable:s}=this.props,l=(e=this.manager.store)==null?void 0:e.attributes,a=Xe(n)?n(this.eventListenerProps()):n;let u={};(r||Dr(r))&&(u=t?{autoFocus:!0}:{autofocus:"true"});const c=$l(ec(t&&"Prosemirror","remirror-editor",l==null?void 0:l.class,...o).split(" ")).join(" "),d={role:"textbox",...u,"aria-multiline":"true",...s??!0?{}:{"aria-readonly":"true"},"aria-label":i??"",...l,class:c};return $S({...d,...a})}addFocusListeners(){this.view.dom.addEventListener("blur",this.onBlur),this.view.dom.addEventListener("focus",this.onFocus)}removeFocusListeners(){this.view.dom.removeEventListener("blur",this.onBlur),this.view.dom.removeEventListener("focus",this.onFocus)}destroy(){ce(this,Cs).emit("destroy"),this.view&&this.removeFocusListeners()}eventListenerProps(t=ye()){const{state:e,tr:n,transactions:r}=t;return{tr:n,transactions:r,internalUpdate:!n,view:this.view,firstRender:ce(this,oc),state:e??this.getState(),createStateFromContent:this.createStateFromContent,previousState:this.previousState,helpers:this.manager.store.helpers}}get baseOutput(){return{manager:this.manager,...this.manager.store,addHandler:this.addHandler,focus:this.focus,blur:this.blur,uid:ce(this,pf),view:this.view,getState:this.getState,getPreviousState:this.getPreviousState,getExtension:this.manager.getExtension.bind(this.manager),hasExtension:this.manager.hasExtension.bind(this.manager),clearContent:this.clearContent,setContent:this.setContent}}};pf=new WeakMap,nd=new WeakMap,ff=new WeakMap,oc=new WeakMap,Cs=new WeakMap,gf=new WeakMap,mf=new WeakMap;function cB(t,e){const n=[],r=new WeakMap,o=[],i=new WeakMap;let s=[];const l={duplicateMap:i,parentExtensions:o,gatheredExtensions:s,settings:e};for(const d of t)a_(l,{extension:d});s=as(s,(d,h)=>h.priority-d.priority);const a=new WeakSet,u=new Set;for(const d of s){const h=d.constructor,p=d.name,f=i.get(h);be(f,{message:`No entries were found for the ExtensionConstructor ${d.name}`,code:re.INTERNAL}),!(a.has(h)||u.has(p))&&(a.add(h),u.add(p),n.push(d),r.set(h,d),f.forEach(g=>g==null?void 0:g.replaceChildExtension(h,d)))}const c=[];for(const d of n)uB({extension:d,found:a,missing:c});return be(ss(c),{code:re.MISSING_REQUIRED_EXTENSION,message:c.map(({Constructor:d,extension:h})=>`The extension '${h.name}' requires '${d.name} in order to run correctly.`).join(` +`)}),{extensions:n,extensionMap:r}}function a_(t,e){var n;const{gatheredExtensions:r,duplicateMap:o,parentExtensions:i,settings:s}=t,{extension:l,parentExtension:a}=e;let{names:u=[]}=e;be(t_(l),{code:re.INVALID_MANAGER_EXTENSION,message:`An invalid extension: ${l} was provided to the [[\`RemirrorManager\`]].`});const c=l.extensions;if(l.setPriority((n=s.priority)==null?void 0:n[l.name]),r.push(l),dB({duplicateMap:o,extension:l,parentExtension:a}),c.length!==0){if(u.includes(l.name)){`${u.join(" > ")}${l.name}`;return}u=[...u,l.name],i.push(l);for(const d of c)a_(t,{names:u,extension:d,parentExtension:l})}}function uB(t){const{extension:e,found:n,missing:r}=t;if(e.requiredExtensions)for(const o of e.requiredExtensions??[])n.has(o)||r.push({Constructor:o,extension:e})}function dB(t){const{duplicateMap:e,extension:n,parentExtension:r}=t,o=n.constructor,i=e.get(o),s=r?[r]:[];e.set(o,i?[...i,...s]:s)}function hB(t){var e,n,r,o;const{extension:i,nodeNames:s,markNames:l,plainNames:a,store:u,handlers:c}=t;i.setStore(u);const d=(e=i.onCreate)==null?void 0:e.bind(i),h=(n=i.onView)==null?void 0:n.bind(i),p=(r=i.onStateUpdate)==null?void 0:r.bind(i),f=(o=i.onDestroy)==null?void 0:o.bind(i);d&&c.create.push(d),h&&c.view.push(h),p&&c.update.push(p),f&&c.destroy.push(f),uf(i)&&l.push(i.name),td(i)&&i.name!=="doc"&&s.push(i.name),n_(i)&&a.push(i.name)}var Ts,rd,Lo,_i,od,Fr,Ra,id,Ma,sd,Oa,No,ad,vf=class{constructor(t,e={}){qt(this,Ts,void 0),qt(this,rd,ye()),qt(this,Lo,ye()),qt(this,_i,void 0),qt(this,od,void 0),qt(this,Fr,vr.None),qt(this,Ra,void 0),qt(this,id,!0),qt(this,Ma,{create:[],view:[],update:[],destroy:[]}),qt(this,sd,[]),qt(this,Oa,lf()),qt(this,No,void 0),qt(this,ad,void 0),this.getState=()=>{var o;return ce(this,Fr)>=vr.EditorView?this.view.state:(be(ce(this,No),{code:re.MANAGER_PHASE_ERROR,message:"`getState` can only be called after the `Framework` or the `EditorView` has been added to the manager`. Check your plugins to make sure that the decorations callback uses the state argument."}),(o=ce(this,No))==null?void 0:o.initialEditorState)},this.updateState=o=>{const i=this.getState();this.view.updateState(o),this.onStateUpdate({previousState:i,state:o})};const{extensions:n,extensionMap:r}=cB(t,e);gn(this,Ra,e),gn(this,_i,pa(n)),gn(this,od,r),gn(this,Ts,this.createExtensionStore()),gn(this,Fr,vr.Create),this.setupLifecycleHandlers();for(const o of ce(this,Ma).create){const i=o();i&&ce(this,sd).push(i)}}static create(t,e={}){return new vf([...BS(t),...aB(e.builtin)],e)}get[bi](){return hn.Manager}get destroyed(){return ce(this,Fr)===vr.Destroy}get mounted(){return ce(this,Fr)>=vr.EditorView&&ce(this,Fr)ce(this,_i),enumerable:e},phase:{get:()=>ce(this,Fr),enumerable:e},view:{get:()=>this.view,enumerable:e},managerSettings:{get:()=>pa(ce(this,Ra)),enumerable:e},getState:{value:this.getState,enumerable:e},updateState:{value:this.updateState,enumerable:e},isMounted:{value:()=>this.mounted,enumerable:e},getExtension:{value:this.getExtension.bind(this),enumerable:e},manager:{get:()=>this,enumerable:e},document:{get:()=>this.document,enumerable:e},stringHandlers:{get:()=>ce(this,rd),enumerable:e},currentState:{get:()=>n??(n=this.getState()),set:o=>{n=o},enumerable:e},previousState:{get:()=>r,set:o=>{r=o},enumerable:e}}),t.getStoreKey=this.getStoreKey.bind(this),t.setStoreKey=this.setStoreKey.bind(this),t.setExtensionStore=this.setExtensionStore.bind(this),t.setStringHandler=this.setStringHandler.bind(this),t}addView(t){if(ce(this,Fr)>=vr.EditorView)return this;gn(this,id,!0),gn(this,Fr,vr.EditorView),ce(this,Lo).view=t;for(const e of ce(this,Ma).view){const n=e(t);n&&ce(this,sd).push(n)}return this}attachFramework(t,e){var n;ce(this,No)!==t&&(ce(this,No)&&(ce(this,No).destroy(),(n=ce(this,ad))==null||n.call(this)),gn(this,No,t),gn(this,ad,this.addHandler("stateUpdate",e)))}createEmptyDoc(){var t;const e=(t=this.schema.nodes.doc)==null?void 0:t.createAndFill();return be(e,{code:re.INVALID_CONTENT,message:"An empty node could not be created due to an invalid schema."}),e}createState(t={}){const{onError:e,defaultSelection:n="end"}=this.settings,{content:r=this.createEmptyDoc(),selection:o=n,stringHandler:i=this.settings.stringHandler}=t,{schema:s,plugins:l}=this.store,a=OA({stringHandler:ke(i)?this.stringHandlers[i]:i,document:this.document,content:r,onError:e,schema:s,selection:o});return xa.create({schema:s,doc:a,plugins:l,selection:or(o,a)})}addHandler(t,e){return ce(this,Oa).on(t,e)}onStateUpdate(t){const e=ce(this,id);ce(this,Ts).currentState=t.state,ce(this,Ts).previousState=t.previousState,e&&(gn(this,Fr,vr.Runtime),gn(this,id,!1));const n={...t,firstUpdate:e};for(const r of ce(this,Ma).update)r(n);ce(this,Oa).emit("stateUpdate",n)}getExtension(t){const e=ce(this,od).get(t);return be(e,{code:re.INVALID_MANAGER_EXTENSION,message:`'${t.name}' doesn't exist within this manager. Make sure it is properly added before attempting to use it.`}),e}hasExtension(t){return!!ce(this,od).get(t)}clone(){const t=ce(this,_i).map(n=>n.clone(n.options)),e=vf.create(()=>t,ce(this,Ra));return ce(this,Oa).emit("clone",e),e}recreate(t=[],e={}){const n=ce(this,_i).map(o=>o.clone(o.initialOptions)),r=vf.create(()=>[...n,...t],e);return ce(this,Oa).emit("recreate",r),r}destroy(){var t,e,n,r,o,i;gn(this,Fr,vr.Destroy);for(const s of((t=this.view)==null?void 0:t.state.plugins)??[])(n=(e=s.getState(this.view.state))==null?void 0:e.destroy)==null||n.call(e);(r=ce(this,No))==null||r.destroy(),(o=ce(this,ad))==null||o.call(this);for(const s of ce(this,sd))s();for(const s of ce(this,Ma).destroy)s();(i=this.view)==null||i.destroy(),ce(this,Oa).emit("destroy")}includes(t){const e=[],n=[];for(const r of ce(this,_i))e.push(r.name,r.constructorName),n.push(r.constructor);return t.every(r=>ke(r)?Qn(e,r):Qn(n,r))}},pB=vf;Ts=new WeakMap,rd=new WeakMap,Lo=new WeakMap,_i=new WeakMap,od=new WeakMap,Fr=new WeakMap,Ra=new WeakMap,id=new WeakMap,Ma=new WeakMap,sd=new WeakMap,Oa=new WeakMap,No=new WeakMap,ad=new WeakMap;function fB(t,e){return!ql(t)||!Zl(t,hn.Manager)?!1:e?t.includes(e):!0}var gB=Object.defineProperty,mB=Object.getOwnPropertyDescriptor,ld=(t,e,n,r)=>{for(var o=r>1?void 0:r?mB(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&gB(e,n,o),o},l_=/\S+/g;function c_(t){return t.type.isTextblock?1:t.type.isText?t.textBetween(0,t.nodeSize).length:0}function vB({doc:t},e){let n=0,r=0;return t.nodesBetween(0,t.nodeSize-2,(o,i)=>{if(r>0)return!1;const s=c_(o);return n+s>e?(r=i+1+(e-n),!1):(n+=s,!0)}),r}function yB({doc:t},e){let n=0,r=0;return t.nodesBetween(0,t.nodeSize-2,(o,i)=>{if(r>0)return!1;if(!o.type.isText)return!0;const s=o.textBetween(0,o.nodeSize),l=Ll(s,l_);if(n+l.length>e){const a=e-n,u=l[a];return r=i+((u==null?void 0:u.index)??0),!1}return n+=l.length,!0}),r}var As=class extends ct{get name(){return"count"}getCountMaximum(){return this.options.maximum}getCharacterCount(t=this.store.getState()){let e=0;return t.doc.nodesBetween(0,t.doc.nodeSize-2,n=>(e+=c_(n),!0)),Math.max(e-1,0)}getWordCount(t=this.store.getState()){const e=this.store.helpers.getText({lineBreakDivider:" ",state:t});return Ll(e,l_).length}isCountValid(t=this.store.getState()){const{maximumStrategy:e,maximum:n}=this.options;return n<1?!0:e==="CHARACTERS"?this.store.helpers.getCharacterCount(t)<=n:this.store.helpers.getWordCount(t)<=n}createDecorationSet(t){const{maximum:e=-1,maximumStrategy:n,maximumExceededClassName:r}=this.options,s=(n==="CHARACTERS"?vB:yB)(t,e);return Ue.create(t.doc,[mt.inline(s,t.doc.nodeSize-2,{class:r})])}createExternalPlugins(){const{maximum:t}=this.options,e=new qo({state:{init:(n,r)=>this.isCountValid(r)?{decorationSet:Ue.empty}:{decorationSet:this.createDecorationSet(r)},apply:(n,r,o,i)=>!n.docChanged||t<1?r:this.isCountValid(i)?{decorationSet:Ue.empty}:{decorationSet:this.createDecorationSet(i)}},props:{decorations(n){var r;return((r=e.getState(n))==null?void 0:r.decorationSet)??null}}});return[e]}};ld([nt()],As.prototype,"getCountMaximum",1),ld([nt()],As.prototype,"getCharacterCount",1),ld([nt()],As.prototype,"getWordCount",1),ld([nt()],As.prototype,"isCountValid",1),As=ld([Ne({defaultOptions:{maximum:-1,maximumExceededClassName:"remirror-max-count-exceeded",maximumStrategy:"CHARACTERS"},staticKeys:["maximum","maximumStrategy","maximumExceededClassName"]})],As);var bB="Expected a function",u_="__lodash_hash_undefined__",xB="[object Function]",wB="[object GeneratorFunction]",kB=/[\\^$.*+?()[\]{}|]/g,EB=/^\[object .+?Constructor\]$/,SB=typeof $e=="object"&&$e&&$e.Object===Object&&$e,CB=typeof self=="object"&&self&&self.Object===Object&&self,d_=SB||CB||Function("return this")();function TB(t,e){return t==null?void 0:t[e]}function AB(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}var _B=Array.prototype,RB=Function.prototype,h_=Object.prototype,E0=d_["__core-js_shared__"],p_=function(){var t=/[^.]+$/.exec(E0&&E0.keys&&E0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),f_=RB.toString,S0=h_.hasOwnProperty,MB=h_.toString,OB=RegExp("^"+f_.call(S0).replace(kB,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),IB=_B.splice,LB=g_(d_,"Map"),cd=g_(Object,"create");function Ia(t){var e=-1,n=t?t.length:0;for(this.clear();++e-1}function WB(t,e){var n=this.__data__,r=yf(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}ic.prototype.clear=FB,ic.prototype.delete=BB,ic.prototype.get=HB,ic.prototype.has=UB,ic.prototype.set=WB;function La(t){var e=-1,n=t?t.length:0;for(this.clear();++e4&&n.slice(0,4)===M0&&GH.test(e)&&(e.charAt(4)==="-"?r=XH(e):e=qH(e),o=WH),new o(r,e))}function XH(t){var e=t.slice(5).replace(R_,JH);return M0+e.charAt(0).toUpperCase()+e.slice(1)}function qH(t){var e=t.slice(4);return R_.test(e)?t:(e=e.replace(KH,ZH),e.charAt(0)!=="-"&&(e="-"+e),M0+e)}function ZH(t){return"-"+t.toLowerCase()}function JH(t){return t.charAt(1).toUpperCase()}var QH=e6,M_=/[#.]/g;function e6(t,e){for(var n=t||"",r=e||"div",o={},i=0,s,l,a;i",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},k6={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var F_=E6;function E6(t){var e=typeof t=="string"?t.charCodeAt(0):t;return e>=48&&e<=57}var S6=C6;function C6(t){var e=typeof t=="string"?t.charCodeAt(0):t;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}var T6=A6;function A6(t){var e=typeof t=="string"?t.charCodeAt(0):t;return e>=97&&e<=122||e>=65&&e<=90}var _6=T6,R6=F_,M6=O6;function O6(t){return _6(t)||R6(t)}var wf,I6=59,L6=N6;function N6(t){var e="&"+t+";",n;return wf=wf||document.createElement("i"),wf.innerHTML=e,n=wf.textContent,n.charCodeAt(n.length-1)===I6&&t!=="semi"||n===e?!1:n}var B_=w6,H_=k6,$6=F_,D6=S6,U_=M6,P6=L6,z6=Z6,F6={}.hasOwnProperty,ac=String.fromCharCode,B6=Function.prototype,W_={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},H6=9,V_=10,U6=12,W6=32,j_=38,V6=59,j6=60,G6=61,K6=35,Y6=88,X6=120,q6=65533,lc="named",N0="hexadecimal",$0="decimal",D0={};D0[N0]=16,D0[$0]=10;var kf={};kf[lc]=U_,kf[$0]=$6,kf[N0]=D6;var G_=1,K_=2,Y_=3,X_=4,q_=5,P0=6,Z_=7,_s={};_s[G_]="Named character references must be terminated by a semicolon",_s[K_]="Numeric character references must be terminated by a semicolon",_s[Y_]="Named character references cannot be empty",_s[X_]="Numeric character references cannot be empty",_s[q_]="Named character references must be known",_s[P0]="Numeric character references cannot be disallowed",_s[Z_]="Numeric character references cannot be outside the permissible Unicode range";function Z6(t,e){var n={},r,o;e||(e={});for(o in W_)r=e[o],n[o]=r??W_[o];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),J6(t,n)}function J6(t,e){var n=e.additional,r=e.nonTerminated,o=e.text,i=e.reference,s=e.warning,l=e.textContext,a=e.referenceContext,u=e.warningContext,c=e.position,d=e.indent||[],h=t.length,p=0,f=-1,g=c.column||1,m=c.line||1,v="",y=[],b,x,k,w,S,T,C,O,R,_,A,E,M,I,N,L,$,P,F;for(typeof n=="string"&&(n=n.charCodeAt(0)),L=H(),O=s?W:B6,p--,h++;++p65535&&(T-=65536,_+=ac(T>>>10|55296),T=56320|T&1023),T=_+ac(T))):I!==lc&&O(X_,P)),T?(B(),L=H(),p=F-1,g+=F-M+1,y.push(T),$=H(),$.offset++,i&&i.call(a,T,{start:L,end:$},t.slice(M-1,F)),L=$):(w=t.slice(M-1,F),v+=w,g+=w.length,p=F-1)}else S===10&&(m++,f++,g=0),S===S?(v+=ac(S),g++):B();return y.join("");function H(){return{line:m,column:g,offset:p+(c.offset||0)}}function W(U,G){var Y=H();Y.column+=G,Y.offset+=G,s.call(u,_s[U],Y,U)}function B(){v&&(y.push(v),o&&o.call(l,v,{start:L,end:H()}),v="")}}function Q6(t){return t>=55296&&t<=57343||t>1114111}function eU(t){return t>=1&&t<=8||t===11||t>=13&&t<=31||t>=127&&t<=159||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534}var J_={exports:{}};(function(t){var e=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 o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,s={},l={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function y(b){return b instanceof a?new a(b.type,y(b.content),b.alias):Array.isArray(b)?b.map(y):b.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(k){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack)||[])[1];if(y){var b=document.getElementsByTagName("script");for(var x in b)if(b[x].src==y)return b[x]}return null}},isActive:function(y,b,x){for(var k="no-"+b;y;){var w=y.classList;if(w.contains(b))return!0;if(w.contains(k))return!1;y=y.parentElement}return!!x}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(y,b){var x=l.util.clone(l.languages[y]);for(var k in b)x[k]=b[k];return x},insertBefore:function(y,b,x,k){k=k||l.languages;var w=k[y],S={};for(var A in w)if(w.hasOwnProperty(A)){if(A==b)for(var C in x)x.hasOwnProperty(C)&&(S[C]=x[C]);x.hasOwnProperty(A)||(S[A]=w[A])}var O=k[y];return k[y]=S,l.languages.DFS(l.languages,function(R,_){_===O&&R!=y&&(this[R]=S)}),S},DFS:function y(b,x,k,w){w=w||{};var S=l.util.objId;for(var A in b)if(b.hasOwnProperty(A)){x.call(b,A,b[A],k||A);var C=b[A],O=l.util.type(C);O==="Object"&&!w[S(C)]?(w[S(C)]=!0,y(C,x,null,w)):O==="Array"&&!w[S(C)]&&(w[S(C)]=!0,y(C,x,A,w))}}},plugins:{},highlightAll:function(y,b){l.highlightAllUnder(document,y,b)},highlightAllUnder:function(y,b,x){var k={callback:x,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",k),k.elements=Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)),l.hooks.run("before-all-elements-highlight",k);for(var w=0,S;S=k.elements[w++];)l.highlightElement(S,b===!0,k.callback)},highlightElement:function(y,b,x){var k=l.util.getLanguage(y),w=l.languages[k];l.util.setLanguage(y,k);var S=y.parentElement;S&&S.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(S,k);var A=y.textContent,C={element:y,language:k,grammar:w,code:A};function O(_){C.highlightedCode=_,l.hooks.run("before-insert",C),C.element.innerHTML=C.highlightedCode,l.hooks.run("after-highlight",C),l.hooks.run("complete",C),x&&x.call(C.element)}if(l.hooks.run("before-sanity-check",C),S=C.element.parentElement,S&&S.nodeName.toLowerCase()==="pre"&&!S.hasAttribute("tabindex")&&S.setAttribute("tabindex","0"),!C.code){l.hooks.run("complete",C),x&&x.call(C.element);return}if(l.hooks.run("before-highlight",C),!C.grammar){O(l.util.encode(C.code));return}if(b&&r.Worker){var R=new Worker(l.filename);R.onmessage=function(_){O(_.data)},R.postMessage(JSON.stringify({language:C.language,code:C.code,immediateClose:!0}))}else O(l.highlight(C.code,C.grammar,C.language))},highlight:function(y,b,x){var k={code:y,grammar:b,language:x};if(l.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=l.tokenize(k.code,k.grammar),l.hooks.run("after-tokenize",k),a.stringify(l.util.encode(k.tokens),k.language)},tokenize:function(y,b){var x=b.rest;if(x){for(var k in x)b[k]=x[k];delete b.rest}var w=new d;return h(w,w.head,y),c(y,w,b,w.head,0),f(w)},hooks:{all:{},add:function(y,b){var x=l.hooks.all;x[y]=x[y]||[],x[y].push(b)},run:function(y,b){var x=l.hooks.all[y];if(!(!x||!x.length))for(var k=0,w;w=x[k++];)w(b)}},Token:a};r.Prism=l;function a(y,b,x,k){this.type=y,this.content=b,this.alias=x,this.length=(k||"").length|0}a.stringify=function y(b,x){if(typeof b=="string")return b;if(Array.isArray(b)){var k="";return b.forEach(function(O){k+=y(O,x)}),k}var w={type:b.type,content:y(b.content,x),tag:"span",classes:["token",b.type],attributes:{},language:x},S=b.alias;S&&(Array.isArray(S)?Array.prototype.push.apply(w.classes,S):w.classes.push(S)),l.hooks.run("wrap",w);var A="";for(var C in w.attributes)A+=" "+C+'="'+(w.attributes[C]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+A+">"+w.content+""};function u(y,b,x,k){y.lastIndex=b;var w=y.exec(x);if(w&&k&&w[1]){var S=w[1].length;w.index+=S,w[0]=w[0].slice(S)}return w}function c(y,b,x,k,w,S){for(var A in x)if(!(!x.hasOwnProperty(A)||!x[A])){var C=x[A];C=Array.isArray(C)?C:[C];for(var O=0;O=S.reach);$+=L.value.length,L=L.next){var P=L.value;if(b.length>y.length)return;if(!(P instanceof a)){var F=1,H;if(E){if(H=u(N,$,y,T),!H||H.index>=y.length)break;var G=H.index,W=H.index+H[0].length,B=$;for(B+=L.value.length;G>=B;)L=L.next,B+=L.value.length;if(B-=L.value.length,$=B,L.value instanceof a)continue;for(var U=L;U!==b.tail&&(BS.reach&&(S.reach=ne);var de=L.prev;X&&(de=h(b,de,X),$+=X.length),p(b,de,F);var Ie=new a(A,_?l.tokenize(Y,_):Y,M,Y);if(L=h(b,de,Ie),Z&&h(b,L,Z),F>1){var ve={cause:A+","+O,reach:ne};c(y,b,x,L.prev,$,ve),S&&ve.reach>S.reach&&(S.reach=ve.reach)}}}}}}function d(){var y={value:null,prev:null,next:null},b={value:null,prev:y,next:null};y.next=b,this.head=y,this.tail=b,this.length=0}function h(y,b,x){var k=b.next,w={value:x,prev:b,next:k};return b.next=w,k.prev=w,y.length++,w}function p(y,b,x){for(var k=b.next,w=0;w/,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(e){e.type==="entity"&&(e.attributes.title=e.content.value.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:t.languages[r]},o.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[n,"language-"+n],inside:t.languages[n]},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}var P6=$0;$0.displayName="css",$0.aliases=[];function $0(t){(function(e){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.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\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(t)}var z6=D0;D0.displayName="clike",D0.aliases=[];function D0(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:/[{}[\];(),.:]/}}var F6=P0;P0.displayName="javascript",P0.aliases=["js"];function P0(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}var dd=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof $e=="object"?$e:{},B6=nU();dd.Prism={manual:!0,disableWorkerMessageHandler:!0};var H6=e6,U6=y6,F_=$6,W6=D6,V6=P6,j6=z6,G6=F6;B6();var z0={}.hasOwnProperty;function B_(){}B_.prototype=F_;var Jt=new B_,K6=Jt;Jt.highlight=X6,Jt.register=hd,Jt.alias=Y6,Jt.registered=q6,Jt.listLanguages=Z6,hd(W6),hd(V6),hd(j6),hd(G6),Jt.util.encode=eU,Jt.Token.stringify=J6;function hd(t){if(typeof t!="function"||!t.displayName)throw new Error("Expected `function` for `grammar`, got `"+t+"`");Jt.languages[t.displayName]===void 0&&t(Jt)}function Y6(t,e){var n=Jt.languages,r=t,o,i,s,l;e&&(r={},r[t]=e);for(o in r)for(i=r[o],i=typeof i=="string"?[i]:i,s=i.length,l=-1;++lparseInt(fd(l,2),16)),parseInt(fd(s[3]||"f",2),16)/255]}const r=lU.exec(e);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(l=>parseInt(l,16)),parseInt(s[3]||"ff",16)/255]}const o=cU.exec(e);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(l=>parseInt(l,10)),parseFloat(s[3]||"1")]}const i=uU.exec(e);if(i){const[s,l,a,u]=Array.from(i).slice(1).map(parseFloat);if(Ri(0,100,l)!==l)throw new pd(t);if(Ri(0,100,a)!==a)throw new pd(t);return[...hU(s,l,a),Number.isNaN(u)?1:u]}throw new pd(t)}function oU(t){let e=5381,n=t.length;for(;n;)e=e*33^t.charCodeAt(--n);return(e>>>0)%2341}const H_=t=>parseInt(t.replace(/_/g,""),36),iU="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((t,e)=>{const n=H_(e.substring(0,3)),r=H_(e.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return t[n]=`${o}${r}`,t},{});function sU(t){const e=t.toLowerCase().trim(),n=iU[oU(e)];if(!n)throw new pd(t);return`#${n}`}const fd=(t,e)=>Array.from(Array(e)).map(()=>t).join(""),aU=new RegExp(`^#${fd("([a-f0-9])",3)}([a-f0-9])?$`,"i"),lU=new RegExp(`^#${fd("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),cU=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${fd(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),uU=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,dU=/^[a-z]+$/i,U_=t=>Math.round(t*255),hU=(t,e,n)=>{let r=n/100;if(e===0)return[r,r,r].map(U_);const o=(t%360+360)%360/60,i=(1-Math.abs(2*r-1))*(e/100),s=i*(1-Math.abs(o%2-1));let l=0,a=0,u=0;o>=0&&o<1?(l=i,a=s):o>=1&&o<2?(l=s,a=i):o>=2&&o<3?(a=i,u=s):o>=3&&o<4?(a=s,u=i):o>=4&&o<5?(l=s,u=i):o>=5&&o<6&&(l=i,u=s);const c=r-i/2,d=l+c,h=a+c,p=u+c;return[d,h,p].map(U_)};function pU(t){const[e,n,r,o]=B0(t).map((d,h)=>h===3?d:d/255),i=Math.max(e,n,r),s=Math.min(e,n,r),l=(i+s)/2;if(i===s)return[0,0,l,o];const a=i-s,u=l>.5?a/(2-i-s):a/(i+s);return[60*(e===i?(n-r)/a+(n.179}function uc(t){return vU(t)?"#000":"#fff"}var yU=Object.freeze({__proto__:null,ANIMATED_POPOVER:"remirror-animated-popover",BUTTON:"remirror-button",BUTTON_ACTIVE:"remirror-button-active",COLOR_PICKER:"remirror-color-picker",COLOR_PICKER_CELL:"remirror-color-picker-cell",COLOR_PICKER_CELL_SELECTED:"remirror-color-picker-cell-selected",COMPOSITE:"remirror-composite",DIALOG:"remirror-dialog",DIALOG_BACKDROP:"remirror-dialog-backdrop",EDITOR_WRAPPER:"remirror-editor-wrapper",FLEX_COLUMN:"remirror-flex-column",FLEX_ROW:"remirror-flex-row",FLOATING_POPOVER:"remirror-floating-popover",FORM:"remirror-form",FORM_GROUP:"remirror-form-group",FORM_LABEL:"remirror-form-label",FORM_MESSAGE:"remirror-form-message",GROUP:"remirror-group",INPUT:"remirror-input",MENU:"remirror-menu",MENU_BAR:"remirror-menu-bar",MENU_BUTTON:"remirror-menu-button",MENU_BUTTON_LEFT:"remirror-menu-button-left",MENU_BUTTON_NESTED_LEFT:"remirror-menu-button-nested-left",MENU_BUTTON_NESTED_RIGHT:"remirror-menu-button-nested-right",MENU_BUTTON_RIGHT:"remirror-menu-button-right",MENU_DROPDOWN_LABEL:"remirror-menu-dropdown-label",MENU_GROUP:"remirror-menu-group",MENU_ITEM:"remirror-menu-item",MENU_ITEM_CHECKBOX:"remirror-menu-item-checkbox",MENU_ITEM_COLUMN:"remirror-menu-item-column",MENU_ITEM_RADIO:"remirror-menu-item-radio",MENU_ITEM_ROW:"remirror-menu-item-row",MENU_PANE:"remirror-menu-pane",MENU_PANE_ACTIVE:"remirror-menu-pane-active",MENU_PANE_ICON:"remirror-menu-pane-icon",MENU_PANE_LABEL:"remirror-menu-pane-label",MENU_PANE_SHORTCUT:"remirror-menu-pane-shortcut",POPOVER:"remirror-popover",ROLE:"remirror-role",SEPARATOR:"remirror-separator",TAB:"remirror-tab",TABBABLE:"remirror-tabbable",TABLE_SIZE_EDITOR:"remirror-table-size-editor",TABLE_SIZE_EDITOR_BODY:"remirror-table-size-editor-body",TABLE_SIZE_EDITOR_CELL:"remirror-table-size-editor-cell",TABLE_SIZE_EDITOR_CELL_SELECTED:"remirror-table-size-editor-cell-selected",TABLE_SIZE_EDITOR_FOOTER:"remirror-table-size-editor-footer",TAB_LIST:"remirror-tab-list",TOOLBAR:"remirror-toolbar",TOOLTIP:"remirror-tooltip"}),H0=Object.freeze({__proto__:null,A11Y_DARK:"remirror-a11y-dark",ATOM_DARK:"remirror-atom-dark",BASE16_ATELIERSULPHURPOOL_LIGHT:"remirror-base16-ateliersulphurpool-light",CB:"remirror-cb",DARCULA:"remirror-darcula",DRACULA:"remirror-dracula",DUOTONE_DARK:"remirror-duotone-dark",DUOTONE_EARTH:"remirror-duotone-earth",DUOTONE_FOREST:"remirror-duotone-forest",DUOTONE_LIGHT:"remirror-duotone-light",DUOTONE_SEA:"remirror-duotone-sea",DUOTONE_SPACE:"remirror-duotone-space",GH_COLORS:"remirror-gh-colors",HOPSCOTCH:"remirror-hopscotch",LANGUAGE_SELECT_POSITIONER:"remirror-language-select-positioner",LANGUAGE_SELECT_WIDTH:"remirror-language-select-width",POJOAQUE:"remirror-pojoaque",VS:"remirror-vs",WRAP:"remirror-wrap",XONOKAI:"remirror-xonokai"}),bU=Object.freeze({__proto__:null,IMAGE_LOADER:"remirror-image-loader"}),_s=Object.freeze({__proto__:null,COLLAPSIBLE_LIST_ITEM_BUTTON:"remirror-collapsible-list-item-button",COLLAPSIBLE_LIST_ITEM_CLOSED:"remirror-collapsible-list-item-closed",EDITOR:"remirror-editor",LIST_ITEM_CHECKBOX:"remirror-list-item-checkbox",LIST_ITEM_MARKER_CONTAINER:"remirror-list-item-marker-container",LIST_ITEM_WITH_CUSTOM_MARKER:"remirror-list-item-with-custom-mark",LIST_SPINE:"remirror-list-spine",UL_LIST_CONTENT:"remirror-ul-list-content"}),xU=Object.freeze({__proto__:null,IS_EMPTY:"remirror-is-empty"}),wU=Object.freeze({__proto__:null,EDITOR:"remirror-editor",POSITIONER:"remirror-positioner",POSITIONER_WIDGET:"remirror-positioner-widget"});const kU="remirror-theme";function EU(t={}){const e=[],n={};function r(o,i){if(typeof i=="string"||typeof i=="number"){e.push(`${W_(o)}: ${i};`),n[W_(o)]=i;return}if(!(typeof i!="object"||!i))for(const[s,l]of Object.entries(i))r([...o,s],l)}for(const[o,i]of Object.entries(t))r([o],i);return{css:e.join(` -`),styles:n}}function SU(t){return t.replace(/([a-z])([\dA-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function W_(t){return`--rmr-${t.map(SU).join("-")}`}const $o={gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},Mi="#000000",U0="#ffffff",CU="#252103",W0=kf(Mi,.75),Ef="#7963d2",V0="#bcd263",TU="#fff",AU="#fff",j0=$o.gray[1],V_="rgba(10,31,68,0.08)",j_="rgba(10,31,68,0.10)",G_="rgba(10,31,68,0.12)",_U=wf(kf(Mi,.1),.13),G0={background:U0,border:W0,foreground:Mi,muted:j0,primary:Ef,secondary:V0,primaryText:TU,secondaryText:AU,text:CU,faded:_U},RU={...G0,background:Fr(U0,.15),border:Fr(W0,.15),foreground:Fr(Mi,.15),muted:Fr(j0,.15),primary:Fr(Ef,.15),secondary:Fr(V0,.15),get text(){return uc(this.background)},get primaryText(){return uc(this.primary)},get secondaryText(){return uc(this.secondary)}},MU={...G0,background:Fr(U0,.075),border:Fr(W0,.075),foreground:Fr(Mi,.075),muted:Fr(j0,.075),primary:Fr(Ef,.075),secondary:Fr(V0,.075),get text(){return uc(this.background)},get primaryText(){return uc(this.primary)},get secondaryText(){return uc(this.secondary)}},$a={color:{...G0,active:RU,hover:MU,shadow1:V_,shadow2:j_,shadow3:G_,backdrop:kf(Mi,.1),outline:kf(Ef,.6),table:{default:{border:wf(Mi,.8),cell:wf(Mi,.4),controller:$o.gray[3]},selected:{border:$o.blue[7],cell:$o.blue[1],controller:$o.blue[5]},preselect:{border:$o.blue[7],cell:wf(Mi,.4),controller:$o.blue[5]},predelete:{border:$o.red[7],cell:$o.red[1],controller:$o.red[5]},mark:"#91919196"}},hue:$o,radius:{border:"0.25rem",extra:"0.5rem",circle:"50%"},fontFamily:{default:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',heading:"inherit",mono:"Menlo, monospace"},fontSize:{0:"12px",1:"14px",2:"16px",3:"20px",4:"24px",5:"32px",6:"48px",7:"64px",8:"96px",default:"16px"},space:{1:"4px",2:"8px",3:"16px",4:"32px",5:"64px",6:"128px",7:"256px",8:"512px"},fontWeight:{bold:"700",default:"400",heading:"700"},letterSpacing:{tight:"-1px",default:"normal",loose:"1px",wide:"3px"},lineHeight:{heading:"1.25em",default:"1.5em"},boxShadow:{1:`0 1px 1px ${V_}`,2:`0 1px 1px ${j_}`,3:`0 1px 1px ${G_}`}};var OU=Object.defineProperty,IU=Object.getOwnPropertyDescriptor,Oi=(t,e,n,r)=>{for(var o=r>1?void 0:r?IU(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&OU(e,n,o),o},K_=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Rs=(t,e,n)=>(K_(t,e,"read from private field"),n?n.call(t):e.get(t)),K0=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Y0=(t,e,n,r)=>(K_(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Y_="data-code-block-language";function X_(t,e,n=[]){return t.map(r=>{const o=[...n];return r.type==="element"&&r.properties.className?o.push(...r.properties.className):r.type==="text"&&o.length===0&&e&&o.push(e),r.type==="element"?X_(r.children,e,o):{text:r.value,classes:o}})}function LU(t,e){var n;const{node:r,pos:o}=t,i=Sf({language:(n=r.attrs.language)==null?void 0:n.replace("language-",""),fallback:"markup"}),s=F0.highlight(r.textContent??"",i),l=X_(s,e);let a=o+1;function u(c){const d=a,h=d+c.text.length;return a=h,{...c,from:d,to:h}}return LS(l).map(u)}function q_(t){const{blocks:e,skipLast:n,plainTextClassName:r}=t,o=[];for(const i of e){const s=LU(i,r),l=n?s.length-1:s.length;for(const a of o1(l)){const u=s[a],c=u==null?void 0:u.classes;if(!u||!(c!=null&&c.length))continue;const d=mt.inline(u.from,u.to,{class:c.join(" ")});o.push(d)}}return o}function NU(t){return!!(t&&Tn(t)&&ke(t.language)&&t.language.length>0)}function $U(t){return e=>({state:{tr:n,selection:r},dispatch:o})=>{if(!NU(e))throw new Error("Invalid attrs passed to the updateAttributes method");const i=ti({types:t,selection:r});return!i||IS(e,i.node.attrs)?!1:(n.setNodeMarkup(i.pos,t,{...i.node.attrs,...e}),o&&o(n),!0)}}function Sf(t){const{language:e,fallback:n}=t;if(!e)return n;const r=F0.listLanguages();for(const o of r)if(o.toLowerCase()===e.toLowerCase())return o;return n}function DU(t,e){const{language:n,wrap:r}=nf(t.attrs,e),{style:o,...i}=e.dom(t);let s=i.style;return r&&(s=lz({whiteSpace:"pre-wrap",wordBreak:"break-all"},s)),["pre",{spellcheck:"false",...i,class:tc(i.class,`language-${n}`)},["code",{[Y_]:n,style:s},0]]}function PU(t){return({pos:e}=ye())=>({tr:n,dispatch:r})=>{const{type:o,formatter:i,defaultLanguage:s}=t,{from:l,to:a}=e?{from:e,to:e}:n.selection,u=ti({types:o,selection:n.selection});if(!u)return!1;const{node:{attrs:c,textContent:d},start:h}=u,p=l-h,f=a-h,g=Sf({language:c.language,fallback:s}),m=i({source:d,language:g,cursorOffset:p});let v;if(p!==f&&(v=i({source:d,language:g,cursorOffset:f})),!m)return!1;const{cursorOffset:y,formatted:b}=m;if(b===d)return!1;const x=h+d.length;n.insertText(b,h,x);const k=h+y,w=v?h+v.cursorOffset:void 0;return n.setSelection(Me.between(n.doc.resolve(k),n.doc.resolve(w??k))),r&&r(n),!0}}function zU(t){var e;return(e=t.getAttribute(Y_)??t.classList[0])==null?void 0:e.replace("language-","")}var{DESCRIPTION:FU,LABEL:BU}=yP,HU={icon:"bracesLine",description:({t})=>t(FU),label:({t})=>t(BU)},Da,gd,md,UU=class{constructor(t,e){K0(this,Da,void 0),K0(this,gd,void 0),K0(this,md,!1),Y0(this,gd,t),Y0(this,Da,e)}init(t){const e=wz({node:t.doc,type:Rs(this,gd)});return this.refreshDecorationSet(t.doc,e),this}refreshDecorationSet(t,e){const n=q_({blocks:e,skipLast:Rs(this,md),defaultLanguage:Rs(this,Da).options.defaultLanguage,plainTextClassName:Rs(this,Da).options.plainTextClassName??void 0});this.decorationSet=Ue.create(t,n)}apply(t,e){if(!t.docChanged)return this;this.decorationSet=this.decorationSet.map(t.mapping,t.doc);const n=kz(t,{descend:!0,predicate:r=>r.type===Rs(this,gd),StepTypes:[]});return this.updateDecorationSet(t,n),this}updateDecorationSet(t,e){if(e.length===0)return;let n=this.decorationSet;for(const{node:r,pos:o}of e)n=this.decorationSet.remove(this.decorationSet.find(o,o+r.nodeSize));this.decorationSet=n.add(t.doc,q_({blocks:e,skipLast:Rs(this,md),defaultLanguage:Rs(this,Da).options.defaultLanguage,plainTextClassName:Rs(this,Da).options.plainTextClassName??void 0}))}setDeleted(t){Y0(this,md,t)}};Da=new WeakMap,gd=new WeakMap,md=new WeakMap;var ho=class extends Rn{get name(){return"codeBlock"}createTags(){return[we.Block,we.Code]}init(){this.registerLanguages()}createNodeSpec(t,e){const n=/highlight-(?:text|source)-([\da-z]+)/;return{content:"text*",marks:"",defining:!0,draggable:!1,...e,code:!0,attrs:{...t.defaults(),language:{default:this.options.defaultLanguage},wrap:{default:this.options.defaultWrap}},parseDOM:[{tag:"div.highlight",preserveWhitespace:"full",getAttrs:r=>{var o,i;if(!Ft(r))return!1;const s=r.querySelector("pre.code");if(!Ft(s))return!1;const l=ei(s,"white-space")==="pre-wrap",a=(i=(o=r.className.match(n))==null?void 0:o[1])==null?void 0:i.replace("language-","");return{...t.parse(r),language:a,wrap:l}}},{tag:"pre",preserveWhitespace:"full",getAttrs:r=>{if(!Ft(r))return!1;const o=r.querySelector("code");if(!Ft(o))return!1;const i=ei(o,"white-space")==="pre-wrap",s=this.options.getLanguageFromDom(o,r);return{...t.parse(r),language:s,wrap:i}}},...e.parseDOM??[]],toDOM:r=>DU(r,t)}}createAttributes(){return{class:H0[this.options.syntaxTheme.toUpperCase()]}}createInputRules(){const t=/^```([\dA-Za-z]*) $/,e=n=>({language:Sf({language:Ql(n,1),fallback:this.options.defaultLanguage})});return[TA({regexp:t,type:this.type,beforeDispatch:({tr:n,start:r})=>{const o=n.doc.resolve(r);n.setSelection(Me.near(o))},getAttributes:e})]}onSetOptions(t){const{changes:e}=t;e.supportedLanguages.changed&&this.registerLanguages(),e.syntaxTheme.changed&&this.store.updateAttributes()}createPlugin(){const t=new UU(this.type,this),e=()=>(t.setDeleted(!0),!1);return{state:{init(n,r){return t.init(r)},apply(n,r,o,i){return t.apply(n,i)}},props:{handleKeyDown:d0({Backspace:e,"Mod-Backspace":e,Delete:e,"Mod-Delete":e,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e}),decorations(){return t.setDeleted(!1),t.decorationSet}}}}toggleCodeBlock(t={}){return i0({type:this.type,toggleType:this.options.toggleName,attrs:{language:this.options.defaultLanguage,...t}})}createCodeBlock(t){return Zu(this.type,t)}updateCodeBlock(t){return $U(this.type)(t)}formatCodeBlock(t){return PU({type:this.type,formatter:this.options.formatter,defaultLanguage:this.options.defaultLanguage})(t)}tabKey({state:t,dispatch:e}){const{selection:n,tr:r,schema:o}=t,{node:i}=N3(n);if(!qp({node:i,types:this.type}))return!1;if(n.empty)r.insertText(" ");else{const{from:s,to:l}=n;r.replaceWith(s,l,o.text(" "))}return e&&e(r),!0}backspaceKey({dispatch:t,tr:e,state:n}){if(!e.selection.empty)return!1;const r=ti({types:this.type,selection:e.selection});if((r==null?void 0:r.start)!==e.selection.from)return!1;const{pos:o,node:i,start:s}=r,l=_t(n.schema.nodes,this.options.toggleName);return i.textContent.trim()===""?e.doc.lastChild===i&&e.doc.firstChild===i?I3({pos:o,tr:e,content:l.create()}):O3({pos:o,tr:e}):s>2?e.setSelection(Me.near(e.doc.resolve(s-2))):(e.insert(0,l.create()),e.setSelection(Me.near(e.doc.resolve(1)))),t&&t(e),!0}enterKey({dispatch:t,tr:e}){if(!(xs(e.selection)&&e.selection.empty))return!1;const{nodeBefore:n,parent:r}=e.selection.$anchor;if(!(n!=null&&n.isText)||!r.type.isTextblock)return!1;const o=/^```([A-Za-z]*)?$/,{text:i,nodeSize:s}=n,{textContent:l}=r;if(!i)return!1;const a=i.match(o),u=l.match(o);if(!a||!u)return!1;const[,c]=a,d=Sf({language:c,fallback:this.options.defaultLanguage}),h=e.selection.$from.before(),p=h+s+1;return e.replaceWith(h,p,this.type.create({language:d})),e.setSelection(Me.near(e.doc.resolve(h+1))),t&&t(e),!0}formatShortcut({tr:t}){const e=this.store.commands;if(!cA({type:this.type,state:t}))return!1;const n=e.formatCodeBlock.isEnabled();return n&&e.formatCodeBlock(),n}registerLanguages(){for(const t of this.options.supportedLanguages)F0.register(t)}};Oi([le(HU)],ho.prototype,"toggleCodeBlock",1),Oi([le()],ho.prototype,"createCodeBlock",1),Oi([le()],ho.prototype,"updateCodeBlock",1),Oi([le()],ho.prototype,"formatCodeBlock",1),Oi([Zt({shortcut:"Tab"})],ho.prototype,"tabKey",1),Oi([Zt({shortcut:"Backspace"})],ho.prototype,"backspaceKey",1),Oi([Zt({shortcut:"Enter"})],ho.prototype,"enterKey",1),Oi([Zt({shortcut:oe.Format})],ho.prototype,"formatShortcut",1),ho=Oi([Ne({defaultOptions:{supportedLanguages:[],toggleName:"paragraph",formatter:({source:t})=>({cursorOffset:0,formatted:t}),syntaxTheme:"a11y_dark",defaultLanguage:"markup",defaultWrap:!1,plainTextClassName:"",getLanguageFromDom:zU},staticKeys:["getLanguageFromDom"]})],ho);var WU=Object.defineProperty,VU=Object.getOwnPropertyDescriptor,X0=(t,e,n,r)=>{for(var o=r>1?void 0:r?VU(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&WU(e,n,o),o},Z_=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},an=(t,e,n)=>(Z_(t,e,"read from private field"),n?n.call(t):e.get(t)),Ii=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Ms=(t,e,n,r)=>(Z_(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),vd,yd,dc,bd,Cf,xd,wd,kd,Ed,Tf=class{constructor(t){Ii(this,vd,sf()),Ii(this,yd,[]),Ii(this,dc,new Map),Ii(this,bd,[]),Ii(this,Cf,!1),Ii(this,xd,void 0),Ii(this,wd,void 0),Ii(this,kd,void 0),Ii(this,Ed,void 0),this.addListener=(e,n)=>an(this,vd).on(e,n),Ms(this,xd,t),Ms(this,wd,t.getActive),Ms(this,Ed,t.getPosition),Ms(this,kd,t.getID),this.hasChanged=t.hasChanged,this.events=t.events??["state","scroll"]}static create(t){return new Tf(t)}static fromPositioner(t,e){return Tf.create({...t.basePositioner,...e})}get basePositioner(){return{getActive:an(this,wd),getPosition:an(this,Ed),hasChanged:this.hasChanged,events:this.events,getID:an(this,kd)}}onActiveChanged(t){this.recentUpdate=t;const e=an(this,wd).call(this,t);Ms(this,yd,e),Ms(this,dc,new Map),Ms(this,Cf,!1),Ms(this,bd,[]);const n=[];for(const[r,o]of e.entries()){const i=this.getID(o,r);an(this,bd).push(i),n.push({setElement:s=>this.addProps({...t,data:o,element:s},r),id:i,data:o})}an(this,vd).emit("update",n)}getID(t,e){var n;return((n=an(this,kd))==null?void 0:n.call(this,t,e))??e.toString()}addProps(t,e){if(an(this,Cf)||(an(this,dc).set(e,t),an(this,dc).sizet;return this.clone(n=>({getActive:r=>n.getActive(r).filter(e)}))}},Br=Tf;vd=new WeakMap,yd=new WeakMap,dc=new WeakMap,bd=new WeakMap,Cf=new WeakMap,xd=new WeakMap,wd=new WeakMap,kd=new WeakMap,Ed=new WeakMap,Br.EMPTY=[];function jU(t,e=Q_){const{key:n}=(t==null?void 0:t.getMeta(J_))??{};return n===e}function q0(t){const{tr:e,state:n,previousState:r}=t;return!r||e&&jU(e)?!0:e?D3(e):!n.doc.eq(r.doc)||!n.selection.eq(r.selection)}function Z0(t,e,n={}){const r=e.getBoundingClientRect(),{accountForPadding:o=!1}=n;let i=0,s=0,l=0,a=0;if(Ft(e)&&o){const c=Number.parseFloat(ei(e,"padding-left").replace("px","")),d=Number.parseFloat(ei(e,"padding-right").replace("px","")),h=Number.parseFloat(ei(e,"padding-top").replace("px","")),p=Number.parseFloat(ei(e,"padding-bottom").replace("px","")),f=Number.parseFloat(ei(e,"border-left").replace("px","")),g=Number.parseFloat(ei(e,"border-right").replace("px","")),m=Number.parseFloat(ei(e,"border-top").replace("px","")),v=Number.parseFloat(ei(e,"border-bottom").replace("px","")),y=e.offsetWidth-e.clientWidth,b=e.offsetHeight-e.clientHeight;i+=c+f+(e.dir==="rtl"?y:0),s+=d+g+(e.dir==="rtl"?0:y),l+=h+m,a+=p+v+b}const u=new DOMRect(r.left+i,r.top+l,r.width-s,r.height-a);for(const[c,d]of[[t.top,t.left],[t.top,t.right],[t.bottom,t.left],[t.bottom,t.right]])if(Yo(c,u.top,u.bottom)&&Yo(d,u.left,u.right))return!0;return!1}var GU="remirror-positioner-widget",J_="positionerUpdate",Q_="__all_positioners__",eR={y:-999999,x:-999999,width:0,height:0},tR={...eR,left:-999999,top:-999999,bottom:-999999,right:-999999},Af={...eR,rect:{...tR,toJSON:()=>tR},visible:!1},nR=Br.create({hasChanged:q0,getActive(t){const{state:e}=t;if(!Q1(e)||e.selection.$anchor.depth>2)return Br.EMPTY;const n=Ku({predicate:r=>r.type.isBlock,selection:e});return n?[n]:Br.EMPTY},getPosition(t){const{view:e,data:n}=t,r=e.nodeDOM(n.pos);if(!Ft(r))return Af;const o=r.getBoundingClientRect(),i=e.dom.getBoundingClientRect(),s=o.height,l=o.width,a=e.dom.scrollLeft+o.left-i.left,u=e.dom.scrollTop+o.top-i.top,c=Z0(o,e.dom);return{y:u,x:a,height:s,width:l,rect:o,visible:c}}}),J0=nR.clone(({getActive:t})=>({getActive:e=>{const[n]=t(e);return n&&ef(n.node)&&n.node.type===Qp(e.state.schema)?[n]:Br.EMPTY}})),KU=J0.clone(({getPosition:t})=>({getPosition:e=>({...t(e),width:1})})),YU=J0.clone(({getPosition:t})=>({getPosition:e=>{const{width:n,x:r,y:o,height:i}=t(e);return{...t(e),width:1,x:n+r,rect:new DOMRect(n+r,o,1,i)}}}));function Q0(t){return Br.create({hasChanged:q0,getActive:e=>{const{state:n,view:r}=e;if(!t(n)||!xs(n.selection))return Br.EMPTY;try{const{head:o,anchor:i}=n.selection;return[{from:r.coordsAtPos(i),to:r.coordsAtPos(o)}]}catch{return Br.EMPTY}},getPosition(e){const{element:n,data:r,view:o}=e,{from:i,to:s}=r,l=n.offsetParent??o.dom,a=l.getBoundingClientRect(),u=Math.abs(s.bottom-i.top),c=u>i.bottom-i.top,d=Math.min(i.left,s.left),h=Math.min(i.top,s.top),p=l.scrollLeft+(c?s.left-a.left:d-a.left),f=l.scrollTop+h-a.top,g=c?1:Math.abs(i.left-s.right),m=new DOMRect(c?s.left:d,h,g,u),v=Z0(m,o.dom);return{rect:m,y:f,x:p,height:u,width:g,visible:v}}})}var rR=Q0(t=>!t.selection.empty),XU=Q0(t=>t.selection.empty),qU=Q0(()=>!0),ZU=rR.clone(()=>({getActive:t=>{const{state:e,view:n}=t;if(!e.selection.empty)return Br.EMPTY;const r=mA(e);if(!r)return Br.EMPTY;try{return[{from:n.coordsAtPos(r.from),to:n.coordsAtPos(r.to)}]}catch{return Br.EMPTY}}})),JU={selection:rR,cursor:XU,always:qU,block:nR,emptyBlock:J0,emptyBlockStart:KU,emptyBlockEnd:YU,nearestWord:ZU},hc=class extends ht{constructor(){super(...arguments),this.positioners=[],this.onAddCustomHandler=({positioner:t})=>{if(t)return this.positioners=[...this.positioners,t],this.store.commands.forceUpdate(),()=>{this.positioners=this.positioners.filter(e=>e!==t)}}}get name(){return"positioner"}createAttributes(){return{class:wU.EDITOR}}init(){this.onScroll=AS(this.options.scrollDebounce,this.onScroll.bind(this))}createEventHandlers(){return{scroll:()=>(this.onScroll(),!1),hover:(t,e)=>(this.positioner(this.getBaseProps("hover",{hover:e})),!1),contextmenu:(t,e)=>(this.positioner(this.getBaseProps("contextmenu",{contextmenu:e})),!1)}}onStateUpdate(t){this.positioner({...t,previousState:t.firstUpdate?void 0:t.previousState,event:"state",helpers:this.store.helpers})}createDecorations(t){if(this.element??(this.element=this.createElement()),!this.element.hasChildNodes())return Ue.empty;const e=mt.widget(0,this.element,{key:"positioner-widget",side:-1,stopEvent:()=>!0});return Ue.create(t.doc,[e])}forceUpdatePositioners(t=Q_){return({tr:e,dispatch:n})=>(n==null||n(e.setMeta(J_,{key:t})),!0)}getPositionerWidget(){return this.element??(this.element=this.createElement())}createElement(){const t=document.createElement("span");return t.dataset.id=GU,t.setAttribute("role","presentation"),t}triggerPositioner(t,e){t.hasChanged(e)&&t.onActiveChanged({...e,view:this.store.view})}positioner(t){for(const e of this.positioners)e.events.includes(t.event)&&this.triggerPositioner(e,t)}getBaseProps(t,e){const n=this.store.getState(),r=this.store.previousState;return{helpers:this.store.helpers,event:t,firstUpdate:!1,previousState:r,state:n,...e}}onScroll(){this.positioner(this.getBaseProps("scroll",{scroll:{scrollTop:this.store.view.dom.scrollTop}}))}};X0([le()],hc.prototype,"forceUpdatePositioners",1),X0([nt()],hc.prototype,"getPositionerWidget",1),hc=X0([Ne({defaultOptions:{scrollDebounce:100},customHandlerKeys:["positioner"],staticKeys:["scrollDebounce"]})],hc);function ey(t){return ke(t)?JU[t].clone():Xe(t)?t().clone():t.clone()}function QU(t){const e=D.createContext(null),n=e9(e);return[o=>{const i=t(o);return ee.createElement(e.Provider,{value:i},o.children)},n,e]}function e9(t){return(e,n)=>{const r=D.useContext(t),o=t9(r);if(!r)throw new Error("`useContextHook` must be placed inside the `Provider` returned by the `createContextState` method");if(!e)return r;if(typeof e!="function")throw new TypeError("invalid arguments passed to `useContextHook`. This hook must be called with zero arguments, a getter function or a path string.");const i=e(r);if(!o||!n)return i;const s=e(o);return n(s,i)?s:i}}function t9(t){const e=D.useRef();return n9(()=>{e.current=t}),e.current}var n9=typeof document<"u"?D.useLayoutEffect:D.useEffect;function r9(t,e){return QU(n=>{const r=D.useRef(null),o=D.useRef(),i=e==null?void 0:e(n),[s,l]=D.useState(()=>t({get:oR(r),set:iR(o),previousContext:void 0,props:n,state:i})),a=[...Object.values(n),i];return D.useEffect(()=>{a.length!==0&&l(u=>t({get:oR(r),set:iR(o),previousContext:u,props:n,state:i}))},a),r.current=s,o.current=l,s})}function oR(t){return e=>{if(!t.current)throw new Error("`get` called outside of function scope. `get` can only be called within a function.");if(!e)return t.current;if(typeof e!="function")throw new TypeError("Invalid arguments passed to `useContextHook`. The hook must be called with zero arguments, a getter function or a path string.");return e(t.current)}}function iR(t){return e=>{if(!t.current)throw new Error("`set` called outside of function scope. `set` can only be called within a function.");t.current(n=>({...n,...typeof e=="function"?e(n):e}))}}var sR={},aR={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0;var e;(function(n){n.MalformedUnicode="MALFORMED_UNICODE",n.MalformedHexadecimal="MALFORMED_HEXADECIMAL",n.CodePointLimit="CODE_POINT_LIMIT",n.OctalDeprecation="OCTAL_DEPRECATION",n.EndOfString="END_OF_STRING"})(e=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[e.MalformedUnicode,"malformed Unicode character escape sequence"],[e.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[e.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[e.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[e.EndOfString,"malformed escape sequence at end of string"]])})(aR),function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.unraw=t.errorMessages=t.ErrorType=void 0;const e=aR;Object.defineProperty(t,"ErrorType",{enumerable:!0,get:function(){return e.ErrorType}}),Object.defineProperty(t,"errorMessages",{enumerable:!0,get:function(){return e.errorMessages}});function n(p){return!p.match(/[^a-f0-9]/i)?parseInt(p,16):NaN}function r(p,f,g){const m=n(p);if(Number.isNaN(m)||g!==void 0&&g!==p.length)throw new SyntaxError(e.errorMessages.get(f));return m}function o(p){const f=r(p,e.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(f)}function i(p,f){const g=r(p,e.ErrorType.MalformedUnicode,4);if(f!==void 0){const m=r(f,e.ErrorType.MalformedUnicode,4);return String.fromCharCode(g,m)}return String.fromCharCode(g)}function s(p){return p.charAt(0)==="{"&&p.charAt(p.length-1)==="}"}function l(p){if(!s(p))throw new SyntaxError(e.errorMessages.get(e.ErrorType.MalformedUnicode));const f=p.slice(1,-1),g=r(f,e.ErrorType.MalformedUnicode);try{return String.fromCodePoint(g)}catch(m){throw m instanceof RangeError?new SyntaxError(e.errorMessages.get(e.ErrorType.CodePointLimit)):m}}function a(p,f=!1){if(f)throw new SyntaxError(e.errorMessages.get(e.ErrorType.OctalDeprecation));const g=parseInt(p,8);return String.fromCharCode(g)}const u=new Map([["b","\b"],["f","\f"],["n",` -`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function c(p){return u.get(p)||p}const d=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function h(p,f=!1){return p.replace(d,function(g,m,v,y,b,x,k,w,S){if(m!==void 0)return"\\";if(v!==void 0)return o(v);if(y!==void 0)return l(y);if(b!==void 0)return i(b,x);if(k!==void 0)return i(k);if(w==="0")return"\0";if(w!==void 0)return a(w,!f);if(S!==void 0)return c(S);throw new SyntaxError(e.errorMessages.get(e.ErrorType.EndOfString))})}t.unraw=h,t.default=h}(sR);const o9=io(sR),Li=t=>typeof t=="string",i9=t=>typeof t=="function",lR=new Map;function ty(t){return[...Array.isArray(t)?t:[t],"en"]}function cR(t,e,n){const r=ty(t);return _f(()=>Rf("date",r,n),()=>new Intl.DateTimeFormat(r,n)).format(Li(e)?new Date(e):e)}function ny(t,e,n){const r=ty(t);return _f(()=>Rf("number",r,n),()=>new Intl.NumberFormat(r,n)).format(e)}function uR(t,e,n,{offset:r=0,...o}){const i=ty(t),s=e?_f(()=>Rf("plural-ordinal",i),()=>new Intl.PluralRules(i,{type:"ordinal"})):_f(()=>Rf("plural-cardinal",i),()=>new Intl.PluralRules(i,{type:"cardinal"}));return o[n]??o[s.select(n-r)]??o.other}function _f(t,e){const n=t();let r=lR.get(n);return r||(r=e(),lR.set(n,r)),r}function Rf(t,e,n){const r=e.join("-");return`${t}-${r}-${JSON.stringify(n)}`}const dR=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,s9=(t,e,n={})=>{e=e||t;const r=i=>Li(i)?n[i]||{style:i}:i,o=(i,s)=>{const l=Object.keys(n).length?r("number"):{},a=ny(e,i,l);return s.replace("#",a)};return{plural:(i,s)=>{const{offset:l=0}=s,a=uR(e,!1,i,s);return o(i-l,a)},selectordinal:(i,s)=>{const{offset:l=0}=s,a=uR(e,!0,i,s);return o(i-l,a)},select:(i,s)=>s[i]??s.other,number:(i,s)=>ny(e,i,r(s)),date:(i,s)=>cR(e,i,r(s)),undefined:i=>i}};function a9(t,e,n){return(r,o={})=>{const i=s9(e,n,o),s=a=>Array.isArray(a)?a.reduce((u,c)=>{if(Li(c))return u+c;const[d,h,p]=c;let f={};p!=null&&!Li(p)?Object.keys(p).forEach(m=>{f[m]=s(p[m])}):f=p;const g=i[h](r[d],f);return g==null?u:u+g},""):a,l=s(t);return Li(l)&&dR.test(l)?o9(l.trim()):Li(l)?l.trim():l}}var l9=Object.defineProperty,c9=(t,e,n)=>e in t?l9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u9=(t,e,n)=>(c9(t,typeof e!="symbol"?e+"":e,n),n);class d9{constructor(){u9(this,"_events",{})}on(e,n){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(n),()=>this.removeListener(e,n)}removeListener(e,n){if(!this._hasEvent(e))return;const r=this._events[e].indexOf(n);~r&&this._events[e].splice(r,1)}emit(e,...n){this._hasEvent(e)&&this._events[e].map(r=>r.apply(this,n))}_hasEvent(e){return Array.isArray(this._events[e])}}var h9=Object.defineProperty,p9=(t,e,n)=>e in t?h9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,pc=(t,e,n)=>(p9(t,typeof e!="symbol"?e+"":e,n),n);class f9 extends d9{constructor(e){super(),pc(this,"_locale"),pc(this,"_locales"),pc(this,"_localeData"),pc(this,"_messages"),pc(this,"_missing"),pc(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}get localeData(){return this._localeData[this._locale]??{}}_loadLocaleData(e,n){this._localeData[e]==null?this._localeData[e]=n:Object.assign(this._localeData[e],n)}loadLocaleData(e,n){n!=null?this._loadLocaleData(e,n):Object.keys(e).forEach(r=>this._loadLocaleData(r,e[r])),this.emit("change")}_load(e,n){this._messages[e]==null?this._messages[e]=n:Object.assign(this._messages[e],n)}load(e,n){n!=null?this._load(e,n):Object.keys(e).forEach(r=>this._load(r,e[r])),this.emit("change")}loadAndActivate({locale:e,locales:n,messages:r}){this._locale=e,this._locales=n||void 0,this._messages[this._locale]=r,this.emit("change")}activate(e,n){this._locale=e,this._locales=n,this.emit("change")}_(e,n={},{message:r,formats:o}={}){Li(e)||(n=e.values||n,r=e.message,e=e.id);const i=!this.messages[e],s=this._missing;if(s&&i)return i9(s)?s(this._locale,e):s;i&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||r||e;return Li(l)&&dR.test(l)?JSON.parse(`"${l}"`):Li(l)?l:a9(l,this._locale,this._locales)(n,o)}date(e,n){return cR(this._locales||this._locale,e,n)}number(e,n){return ny(this._locales||this._locale,e,n)}}function g9(t={}){return new f9(t)}const Mf=g9();function se(t,e){return e?"other":t==1?"one":"other"}function Ni(t,e){return e?"other":t==0||t==1?"one":"other"}function wr(t,e){var n=String(t).split("."),r=!n[1];return e?"other":t==1&&r?"one":"other"}function rt(t,e){return"other"}function Os(t,e){return e?"other":t==1?"one":t==2?"two":"other"}const m9=rt,v9=se,y9=Ni;function b9(t,e){return e?"other":t>=0&&t<=1?"one":"other"}const x9=se;function w9(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-2);return e?"other":t==0?"zero":t==1?"one":t==2?"two":o>=3&&o<=10?"few":o>=11&&o<=99?"many":"other"}function k9(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-2);return e?"other":t==0?"zero":t==1?"one":t==2?"two":o>=3&&o<=10?"few":o>=11&&o<=99?"many":"other"}function E9(t,e){return e?t==1||t==5||t==7||t==8||t==9||t==10?"one":t==2||t==3?"two":t==4?"few":t==6?"many":"other":t>=0&&t<=1?"one":"other"}const S9=se,C9=wr;function T9(t,e){var n=String(t).split("."),r=n[0],o=r.slice(-1),i=r.slice(-2),s=r.slice(-3);return e?o==1||o==2||o==5||o==7||o==8||i==20||i==50||i==70||i==80?"one":o==3||o==4||s==100||s==200||s==300||s==400||s==500||s==600||s==700||s==800||s==900?"few":r==0||o==6||i==40||i==60||i==90?"many":"other":t==1?"one":"other"}function A9(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return e?(o==2||o==3)&&i!=12&&i!=13?"few":"other":o==1&&i!=11?"one":o>=2&&o<=4&&(i<12||i>14)?"few":r&&o==0||o>=5&&o<=9||i>=11&&i<=14?"many":"other"}const _9=se,R9=se,M9=se,O9=Ni,I9=rt;function L9(t,e){return e?t==1||t==5||t==7||t==8||t==9||t==10?"one":t==2||t==3?"two":t==4?"few":t==6?"many":"other":t>=0&&t<=1?"one":"other"}const N9=rt;function $9(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),s=r&&n[0].slice(-6);return e?"other":o==1&&i!=11&&i!=71&&i!=91?"one":o==2&&i!=12&&i!=72&&i!=92?"two":(o==3||o==4||o==9)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":t!=0&&r&&s==0?"many":"other"}const D9=se;function P9(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),l=r.slice(-2),a=o.slice(-1),u=o.slice(-2);return e?"other":i&&s==1&&l!=11||a==1&&u!=11?"one":i&&s>=2&&s<=4&&(l<12||l>14)||a>=2&&a<=4&&(u<12||u>14)?"few":"other"}function z9(t,e){var n=String(t).split("."),r=!n[1];return e?t==1||t==3?"one":t==2?"two":t==4?"few":"other":t==1&&r?"one":"other"}const F9=se;function B9(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),l=o.slice(-1);return e?"other":i&&(r==1||r==2||r==3)||i&&s!=4&&s!=6&&s!=9||!i&&l!=4&&l!=6&&l!=9?"one":"other"}const H9=se,U9=se,W9=se;function V9(t,e){var n=String(t).split("."),r=n[0],o=!n[1];return e?"other":t==1&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"}function j9(t,e){return e?t==0||t==7||t==8||t==9?"zero":t==1?"one":t==2?"two":t==3||t==4?"few":t==5||t==6?"many":"other":t==0?"zero":t==1?"one":t==2?"two":t==3?"few":t==6?"many":"other"}function G9(t,e){var n=String(t).split("."),r=n[0],o=Number(n[0])==t;return e?"other":t==1||!o&&(r==0||r==1)?"one":"other"}const K9=wr;function Y9(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-2),l=o.slice(-2);return e?"other":i&&s==1||l==1?"one":i&&s==2||l==2?"two":i&&(s==3||s==4)||l==3||l==4?"few":"other"}const X9=se,q9=rt,Z9=se,J9=se;function Q9(t,e){var n=String(t).split("."),r=!n[1],o=Number(n[0])==t,i=o&&n[0].slice(-1),s=o&&n[0].slice(-2);return e?i==1&&s!=11?"one":i==2&&s!=12?"two":i==3&&s!=13?"few":"other":t==1&&r?"one":"other"}const e8=se,t8=se,n8=wr,r8=se;function o8(t,e){return e?"other":t>=0&&t<=1?"one":"other"}function i8(t,e){return e?"other":t>=0&&t<2?"one":"other"}const s8=wr;function a8(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),l=o.slice(-1);return e?t==1?"one":"other":i&&(r==1||r==2||r==3)||i&&s!=4&&s!=6&&s!=9||!i&&l!=4&&l!=6&&l!=9?"one":"other"}const l8=se;function c8(t,e){return e?t==1?"one":"other":t>=0&&t<2?"one":"other"}const u8=se,d8=wr;function h8(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?t==1?"one":"other":t==1?"one":t==2?"two":r&&t>=3&&t<=6?"few":r&&t>=7&&t<=10?"many":"other"}function p8(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?t==1||t==11?"one":t==2||t==12?"two":t==3||t==13?"few":"other":t==1||t==11?"one":t==2||t==12?"two":r&&t>=3&&t<=10||r&&t>=13&&t<=19?"few":"other"}const f8=wr,g8=se;function m8(t,e){return e?t==1?"one":t==2||t==3?"two":t==4?"few":t==6?"many":"other":t>=0&&t<=1?"one":"other"}const v8=Ni;function y8(t,e){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-1),s=r.slice(-2);return e?"other":o&&i==1?"one":o&&i==2?"two":o&&(s==0||s==20||s==40||s==60||s==80)?"few":o?"other":"many"}const b8=se,x8=se;function w8(t,e){var n=String(t).split("."),r=n[0],o=!n[1],i=Number(n[0])==t,s=i&&n[0].slice(-1);return e?"other":t==1&&o?"one":r==2&&o?"two":o&&(t<0||t>10)&&i&&s==0?"many":"other"}function k8(t,e){return e?t==1?"one":t==2||t==3?"two":t==4?"few":t==6?"many":"other":t>=0&&t<=1?"one":"other"}function E8(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),l=r.slice(-2),a=o.slice(-1),u=o.slice(-2);return e?"other":i&&s==1&&l!=11||a==1&&u!=11?"one":i&&s>=2&&s<=4&&(l<12||l>14)||a>=2&&a<=4&&(u<12||u>14)?"few":"other"}function S8(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-2),l=o.slice(-2);return e?"other":i&&s==1||l==1?"one":i&&s==2||l==2?"two":i&&(s==3||s==4)||l==3||l==4?"few":"other"}function C8(t,e){return e?t==1||t==5?"one":"other":t==1?"one":"other"}function T8(t,e){return e?t==1?"one":"other":t>=0&&t<2?"one":"other"}const A8=wr,_8=rt,R8=rt,M8=rt,O8=wr;function I8(t,e){var n=String(t).split("."),r=n[0],o=Number(n[0])==t,i=r.slice(-1),s=r.slice(-2);return e?"other":o&&i==1&&s!=11||!o?"one":"other"}function L8(t,e){var n=String(t).split("."),r=!n[1];return e?t==11||t==8||t==80||t==800?"many":"other":t==1&&r?"one":"other"}const N8=Os;function $8(t,e){var n=String(t).split("."),r=n[0],o=!n[1],i=Number(n[0])==t,s=i&&n[0].slice(-1);return e?"other":t==1&&o?"one":r==2&&o?"two":o&&(t<0||t>10)&&i&&s==0?"many":"other"}const D8=rt,P8=rt,z8=se,F8=wr,B8=se,H8=rt,U8=rt;function W8(t,e){var n=String(t).split("."),r=n[0],o=r.slice(-2);return e?r==1?"one":r==0||o>=2&&o<=20||o==40||o==60||o==80?"many":"other":t==1?"one":"other"}function V8(t,e){return e?"other":t>=0&&t<2?"one":"other"}const j8=se,G8=se,K8=rt,Y8=rt;function X8(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-1);return e?o==6||o==9||r&&o==0&&t!=0?"many":"other":t==1?"one":"other"}const q8=se,Z8=se,J8=rt;function Q8(t,e){return e?"other":t>=0&&t<=1?"one":"other"}const e7=rt,t7=se,n7=se;function r7(t,e){return e?"other":t==0?"zero":t==1?"one":"other"}const o7=se;function i7(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-2),i=r&&n[0].slice(-3),s=r&&n[0].slice(-5),l=r&&n[0].slice(-6);return e?r&&t>=1&&t<=4||o>=1&&o<=4||o>=21&&o<=24||o>=41&&o<=44||o>=61&&o<=64||o>=81&&o<=84?"one":t==5||o==5?"many":"other":t==0?"zero":t==1?"one":o==2||o==22||o==42||o==62||o==82||r&&i==0&&(s>=1e3&&s<=2e4||s==4e4||s==6e4||s==8e4)||t!=0&&l==1e5?"two":o==3||o==23||o==43||o==63||o==83?"few":t!=1&&(o==1||o==21||o==41||o==61||o==81)?"many":"other"}const s7=se;function a7(t,e){var n=String(t).split("."),r=n[0];return e?"other":t==0?"zero":(r==0||r==1)&&t!=0?"one":"other"}const l7=se,c7=se,u7=rt,d7=Ni;function h7(t,e){return e&&t==1?"one":"other"}function p7(t,e){var n=String(t).split("."),r=n[1]||"",o=Number(n[0])==t,i=o&&n[0].slice(-1),s=o&&n[0].slice(-2);return e?"other":i==1&&(s<11||s>19)?"one":i>=2&&i<=9&&(s<11||s>19)?"few":r!=0?"many":"other"}function f7(t,e){var n=String(t).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==t,s=i&&n[0].slice(-1),l=i&&n[0].slice(-2),a=r.slice(-2),u=r.slice(-1);return e?"other":i&&s==0||l>=11&&l<=19||o==2&&a>=11&&a<=19?"zero":s==1&&l!=11||o==2&&u==1&&a!=11||o!=2&&u==1?"one":"other"}const g7=se,m7=Ni,v7=se;function y7(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),l=r.slice(-2),a=o.slice(-1),u=o.slice(-2);return e?s==1&&l!=11?"one":s==2&&l!=12?"two":(s==7||s==8)&&l!=17&&l!=18?"many":"other":i&&s==1&&l!=11||a==1&&u!=11?"one":"other"}const b7=se,x7=se;function w7(t,e){var n=String(t).split("."),r=!n[1],o=Number(n[0])==t,i=o&&n[0].slice(-2);return e?t==1?"one":"other":t==1&&r?"one":!r||t==0||i>=2&&i<=19?"few":"other"}function k7(t,e){return e?t==1?"one":t==2||t==3?"two":t==4?"few":"other":t==1?"one":"other"}function E7(t,e){return e&&t==1?"one":"other"}function S7(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-2);return e?"other":t==1?"one":t==0||o>=2&&o<=10?"few":o>=11&&o<=19?"many":"other"}const C7=rt,T7=se,A7=Os,_7=se,R7=se;function M7(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?r&&t>=1&&t<=4?"one":"other":t==1?"one":"other"}const O7=wr,I7=se,L7=se,N7=se,$7=rt,D7=se,P7=Ni,z7=se,F7=se,B7=se;function H7(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?t==1||t==5||r&&t>=7&&t<=9?"one":t==2||t==3?"two":t==4?"few":t==6?"many":"other":t==1?"one":"other"}const U7=se,W7=rt,V7=Ni,j7=se;function G7(t,e){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-1),s=r.slice(-2);return e?"other":t==1&&o?"one":o&&i>=2&&i<=4&&(s<12||s>14)?"few":o&&r!=1&&(i==0||i==1)||o&&i>=5&&i<=9||o&&s>=12&&s<=14?"many":"other"}function K7(t,e){var n=String(t).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==t,s=i&&n[0].slice(-1),l=i&&n[0].slice(-2),a=r.slice(-2),u=r.slice(-1);return e?"other":i&&s==0||l>=11&&l<=19||o==2&&a>=11&&a<=19?"zero":s==1&&l!=11||o==2&&u==1&&a!=11||o!=2&&u==1?"one":"other"}const Y7=se;function X7(t,e){var n=String(t).split("."),r=n[0];return e?"other":r==0||r==1?"one":"other"}const q7=wr,Z7=se;function J7(t,e){var n=String(t).split("."),r=!n[1],o=Number(n[0])==t,i=o&&n[0].slice(-2);return e?t==1?"one":"other":t==1&&r?"one":!r||t==0||i>=2&&i<=19?"few":"other"}const Q7=se,eW=rt;function tW(t,e){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-1),s=r.slice(-2);return e?"other":o&&i==1&&s!=11?"one":o&&i>=2&&i<=4&&(s<12||s>14)?"few":o&&i==0||o&&i>=5&&i<=9||o&&s>=11&&s<=14?"many":"other"}const nW=se,rW=rt,oW=se;function iW(t,e){var n=String(t).split("."),r=!n[1];return e?t==11||t==8||t==80||t==800?"many":"other":t==1&&r?"one":"other"}function sW(t,e){var n=String(t).split("."),r=!n[1];return e?t==11||t==8||t==80||t==800?"many":"other":t==1&&r?"one":"other"}const aW=se,lW=se,cW=Os,uW=se,dW=rt,hW=rt;function pW(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),l=r.slice(-2),a=o.slice(-1),u=o.slice(-2);return e?"other":i&&s==1&&l!=11||a==1&&u!=11?"one":i&&s>=2&&s<=4&&(l<12||l>14)||a>=2&&a<=4&&(u<12||u>14)?"few":"other"}function fW(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?"other":t>=0&&t<=1?"one":r&&t>=2&&t<=10?"few":"other"}function gW(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"";return e?"other":t==0||t==1||r==0&&o==1?"one":"other"}function mW(t,e){var n=String(t).split("."),r=n[0],o=!n[1];return e?"other":t==1&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"}function vW(t,e){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-2);return e?"other":o&&i==1?"one":o&&i==2?"two":o&&(i==3||i==4)||!o?"few":"other"}const yW=Os,bW=Os,xW=Os,wW=Os,kW=Os,EW=se,SW=se;function CW(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return e?t==1?"one":o==4&&i!=14?"many":"other":t==1?"one":"other"}function TW(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),l=r.slice(-2),a=o.slice(-1),u=o.slice(-2);return e?"other":i&&s==1&&l!=11||a==1&&u!=11?"one":i&&s>=2&&s<=4&&(l<12||l>14)||a>=2&&a<=4&&(u<12||u>14)?"few":"other"}const AW=se,_W=se,RW=se,MW=rt;function OW(t,e){var n=String(t).split("."),r=!n[1],o=Number(n[0])==t,i=o&&n[0].slice(-1),s=o&&n[0].slice(-2);return e?(i==1||i==2)&&s!=11&&s!=12?"one":"other":t==1&&r?"one":"other"}const IW=wr,LW=se,NW=se,$W=se,DW=se,PW=rt,zW=Ni,FW=se;function BW(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-1);return e?o==6||o==9||t==10?"few":"other":t==1?"one":"other"}function HW(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),l=o.slice(-1);return e?t==1?"one":"other":i&&(r==1||r==2||r==3)||i&&s!=4&&s!=6&&s!=9||!i&&l!=4&&l!=6&&l!=9?"one":"other"}const UW=se,WW=rt,VW=se,jW=se;function GW(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?"other":t==0||t==1||r&&t>=11&&t<=99?"one":"other"}const KW=se;function YW(t,e){var n=String(t).split("."),r=n[0],o=!n[1],i=Number(n[0])==t,s=i&&n[0].slice(-1),l=i&&n[0].slice(-2),a=r.slice(-1),u=r.slice(-2);return e?s==3&&l!=13?"few":"other":o&&a==1&&u!=11?"one":o&&a>=2&&a<=4&&(u<12||u>14)?"few":o&&a==0||o&&a>=5&&a<=9||o&&u>=11&&u<=14?"many":"other"}const XW=wr,qW=se,ZW=se;function JW(t,e){return e&&t==1?"one":"other"}const QW=se,eV=se,tV=Ni,nV=se,rV=rt,oV=se,iV=se,sV=wr,aV=rt,lV=rt,cV=rt;function uV(t,e){return e?"other":t>=0&&t<=1?"one":"other"}const dV=Object.freeze(Object.defineProperty({__proto__:null,_in:m9,af:v9,ak:y9,am:b9,an:x9,ar:w9,ars:k9,as:E9,asa:S9,ast:C9,az:T9,be:A9,bem:_9,bez:R9,bg:M9,bho:O9,bm:I9,bn:L9,bo:N9,br:$9,brx:D9,bs:P9,ca:z9,ce:F9,ceb:B9,cgg:H9,chr:U9,ckb:W9,cs:V9,cy:j9,da:G9,de:K9,dsb:Y9,dv:X9,dz:q9,ee:Z9,el:J9,en:Q9,eo:e8,es:t8,et:n8,eu:r8,fa:o8,ff:i8,fi:s8,fil:a8,fo:l8,fr:c8,fur:u8,fy:d8,ga:h8,gd:p8,gl:f8,gsw:g8,gu:m8,guw:v8,gv:y8,ha:b8,haw:x8,he:w8,hi:k8,hr:E8,hsb:S8,hu:C8,hy:T8,ia:A8,id:_8,ig:R8,ii:M8,io:O8,is:I8,it:L8,iu:N8,iw:$8,ja:D8,jbo:P8,jgo:z8,ji:F8,jmc:B8,jv:H8,jw:U8,ka:W8,kab:V8,kaj:j8,kcg:G8,kde:K8,kea:Y8,kk:X8,kkj:q8,kl:Z8,km:J8,kn:Q8,ko:e7,ks:t7,ksb:n7,ksh:r7,ku:o7,kw:i7,ky:s7,lag:a7,lb:l7,lg:c7,lkt:u7,ln:d7,lo:h7,lt:p7,lv:f7,mas:g7,mg:m7,mgo:v7,mk:y7,ml:b7,mn:x7,mo:w7,mr:k7,ms:E7,mt:S7,my:C7,nah:T7,naq:A7,nb:_7,nd:R7,ne:M7,nl:O7,nn:I7,nnh:L7,no:N7,nqo:$7,nr:D7,nso:P7,ny:z7,nyn:F7,om:B7,or:H7,os:U7,osa:W7,pa:V7,pap:j7,pl:G7,prg:K7,ps:Y7,pt:X7,pt_PT:q7,rm:Z7,ro:J7,rof:Q7,root:eW,ru:tW,rwk:nW,sah:rW,saq:oW,sc:iW,scn:sW,sd:aW,sdh:lW,se:cW,seh:uW,ses:dW,sg:hW,sh:pW,shi:fW,si:gW,sk:mW,sl:vW,sma:yW,smi:bW,smj:xW,smn:wW,sms:kW,sn:EW,so:SW,sq:CW,sr:TW,ss:AW,ssy:_W,st:RW,su:MW,sv:OW,sw:IW,syr:LW,ta:NW,te:$W,teo:DW,th:PW,ti:zW,tig:FW,tk:BW,tl:HW,tn:UW,to:WW,tr:VW,ts:jW,tzm:GW,ug:KW,uk:YW,ur:XW,uz:qW,ve:ZW,vi:JW,vo:QW,vun:eV,wa:tV,wae:nV,wo:rV,xh:oV,xog:iV,yi:sV,yo:aV,yue:lV,zh:cV,zu:uV},Symbol.toStringTag,{value:"Module"}));var hV=Object.defineProperty,pV=Object.getOwnPropertyDescriptor,fV=Object.getOwnPropertyNames,gV=Object.prototype.hasOwnProperty,hR=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of fV(e))!gV.call(t,o)&&o!==n&&hV(t,o,{get:()=>e[o],enumerable:!(r=pV(e,o))||r.enumerable});return t},mV=(t,e,n)=>(hR(t,e,"default"),n&&hR(n,e,"default")),vV=JSON.parse('{"extension.command.toggle-upper-case.label":[["case","select",{"upper":"Uppercase","lower":"Lowercase","capitalize":"Sentence case","smallCaps":"Small caps","other":"Text case"}]],"extension.table.column_count":[["count","plural",{"one":["#"," column"],"other":["#"," columns"]}]],"extension.table.row_count":[["count","plural",{"one":["#"," row"],"other":["#"," rows"]}]],"extension.command.toggle-columns.description":[["count","select",{"2":"Split the block into two columns","3":"Split the current block into three columns","4":"Split the current block into four columns","other":"Split the current block into multiple columns"}]],"extension.command.toggle-columns.label":[["count","select",{"2":"Two Column Block","3":"Three Column Block","4":"Four Column Block","other":"Multi Column Block"}]],"extension.command.set-text-direction.label":[["dir","select",{"ltr":"Left-To-Right","rtl":"Right-To-Left","other":"Reset Direction"}]],"extension.command.set-text-direction.description":[["dir","select",{"ltr":"Set the text direction from left to right","rtl":"Set the text direction from right to left","other":"Reset text direction"}]],"extension.command.toggle-heading.label":[["level","select",{"1":"Heading 1","2":"Heading 2","3":"Heading 3","4":"Heading 4","5":"Heading 5","6":"Heading 6","other":"Heading"}]],"extension.command.toggle-callout.description":[["type","select",{"info":"Create an information callout block","warning":"Create a warning callout block","error":"Create an error callout block","success":"Create a success callout block","other":"Create a callout block"}]],"extension.command.toggle-callout.label":[["type","select",{"info":"Information Callout","warning":"Warning Callout","error":"Error Callout","success":"Success Callout","other":"Callout"}]],"extension.command.toggle-code-block.description":"Add a code block","extension.command.add-annotation.label":"Add annotation","extension.command.toggle-blockquote.description":"Add blockquote formatting to the selected text","extension.command.toggle-bold.description":"Add bold formatting to the selected text","extension.command.toggle-code.description":"Add inline code formatting to the selected text","keyboard.shortcut.alt":"Alt","keyboard.shortcut.arrowDown":"Arrow Down","keyboard.shortcut.arrowLeft":"Arrow Left","keyboard.shortcut.arrowRight":"Arrow Right","keyboard.shortcut.arrowUp":"Arrow Up","keyboard.shortcut.backspace":"Backspace","ui.text-color.black":"Black","extension.command.toggle-blockquote.label":"Blockquote","ui.text-color.blue":"Blue","ui.text-color.blue.hue":["Blue ",["hue"]],"extension.command.toggle-bold.label":"Bold","extension.command.toggle-bullet-list.description":"Bulleted list","keyboard.shortcut.capsLock":"Caps Lock","extension.command.center-align.label":"Center align","extension.command.toggle-code.label":"Code","extension.command.toggle-code-block.label":"Codeblock","keyboard.shortcut.command":"Command","QcPNd6":"Image description","ogrUzJ":"Add a short description here.","yqdyzr":"Image","6/02F4":"Image source","X8H91v":"Image","zhQ7Zt":"Italic","ZL7E7l":"Underline","keyboard.shortcut.control":"Control","extension.command.convert-paragraph.description":"Convert current block into a paragraph block.","extension.command.convert-paragraph.label":"Convert Paragraph","extension.command.copy.label":"Copy","extension.command.copy.description":"Copy the selected text","extension.command.create-table.description":"Create a table with set number of rows and columns.","extension.command.create-table.label":"Create table","extension.command.cut.label":"Cut","extension.command.cut.description":"Cut the selected text","ui.text-color.cyan":"Cyan","ui.text-color.cyan.hue":["Cyan ",["hue"]],"extension.command.decrease-font-size.label":"Decrease","extension.command.decrease-indent.label":"Decrease indentation","extension.command.decrease-font-size.description":"Decrease the font size.","keyboard.shortcut.delete":"Delete","extension.command.insert-horizontal-rule.label":"Divider","keyboard.shortcut.end":"End","keyboard.shortcut.escape":"Enter","keyboard.shortcut.enter":"Enter","6PjrOF":"Add annotation","OTq5WC":"Center align","oeZ3ox":"Convert current block into a paragraph block.","m1khs+":"Convert Paragraph","w/1U+3":"Copy the selected text","kdodi0":"Copy","k0KR/u":"Create a table with set number of rows and columns.","zrwMyD":"Create table","D/nWxh":"Cut the selected text","jHPv5m":"Cut","5cNgRx":"Decrease the font size.","vyRNWx":"Decrease","Jgiol4":"Decrease indentation","1gJSHH":"Increase the font size","OQXJXz":"Increase","72TLhr":"Increase indentation","HFlfzJ":"Insert Emoji","RPq9fY":"Separate content with a diving horizontal line","OKQF+e":"Divider","zjYb9C":"Insert a new paragraph","4M4sXC":"Insert Paragraph","1Q+eVc":"Justify","ejWWtP":"Left align","wVqrpS":"Paste content into the editor","07v9aw":"Paste","zUYfou":"Redo the most recent action","9Nq9zr":"Redo","0uxaZe":"Remove annotation","iJWZAz":"Right align","g5WpPn":"Select all content within the editor","2+pZDT":"Select all","yChCR1":"Set text case","GMzAC/":"Set the font size for the selected text.","vzEyrv":"Font size","7VCkJ8":"Set the text color for the selected text.","qjWFaR":"Text color","LVWgFu":[["dir","select",{"ltr":"Set the text direction from left to right","rtl":"Set the text direction from right to left","other":"Reset text direction"}]],"WXwRy1":[["dir","select",{"ltr":"Left-To-Right","rtl":"Right-To-Left","other":"Reset Direction"}]],"G/o315":"Set the text highlight color for the selected text.","xtHg6d":"Text highlight","1p1W/p":"Add blockquote formatting to the selected text","6+rh6I":"Blockquote","0yB3LV":"Add bold formatting to the selected text","sFMo4Z":"Bold","SMKG/s":"Bulleted list","/BYCMi":[["type","select",{"info":"Create an information callout block","warning":"Create a warning callout block","error":"Create an error callout block","success":"Create a success callout block","other":"Create a callout block"}]],"V+3IBe":[["type","select",{"info":"Information Callout","warning":"Warning Callout","error":"Error Callout","success":"Success Callout","other":"Callout"}]],"hbIo4L":"Add a code block","7GkMcx":"Codeblock","2r4JYl":"Add inline code formatting to the selected text","Up8Tpe":"Code","ATHSPS":[["count","select",{"2":"Split the block into two columns","3":"Split the current block into three columns","4":"Split the current block into four columns","other":"Split the current block into multiple columns"}]],"7DC1VE":[["count","select",{"2":"Two Column Block","3":"Three Column Block","4":"Four Column Block","other":"Multi Column Block"}]],"hnrBeo":[["level","select",{"1":"Heading 1","2":"Heading 2","3":"Heading 3","4":"Heading 4","5":"Heading 5","6":"Heading 6","other":"Heading"}]],"NkZAcw":"Italicize the selected text","2fTW9e":"Italic","c759Ra":"Ordered list","uQwrZu":"Strikethrough the selected text","pT3qly":"Strikethrough","BHk+zu":"Subscript","18BVwM":"Superscript","tOIVCV":"Tasked list","4Janx3":"Underline the selected text","dCHt+D":"Underline","YYAprs":[["case","select",{"upper":"Uppercase","lower":"Lowercase","capitalize":"Sentence case","smallCaps":"Small caps","other":"Text case"}]],"tczyZL":"Show hidden whitespace characters in your editor.","0qAX23":"Toggle Whitespace","ezMADU":"Undo the most recent action","N3P7EC":"Undo","2nj/+s":"Update annotation","dWD7u4":[["count","plural",{"one":["#"," column"],"other":["#"," columns"]}]],"qXqgVT":[["count","plural",{"one":["#"," row"],"other":["#"," rows"]}]],"extension.command.set-font-size.label":"Font size","ui.text-color.grape":"Grape","ui.text-color.grape.hue":["Grape ",["hue"]],"ui.text-color.gray":"Gray","ui.text-color.gray.hue":["Gray ",["hue"]],"ui.text-color.green":"Green","ui.text-color.green.hue":["Green ",["hue"]],"keyboard.shortcut.home":"Home","extension.command.increase-font-size.label":"Increase","extension.command.increase-indent.label":"Increase indentation","extension.command.increase-font-size.description":"Increase the font size","ui.text-color.indigo":"Indigo","ui.text-color.indigo.hue":["Indigo ",["hue"]],"extension.command.insert-paragraph.description":"Insert a new paragraph","extension.command.insert-emoji.label":"Insert Emoji","extension.command.insert-paragraph.label":"Insert Paragraph","extension.command.toggle-italic.label":"Italic","extension.command.toggle-italic.description":"Italicize the selected text","extension.command.justify-align.label":"Justify","R7NlCw":"Alt","RbDiK5":"Arrow Down","Dgyd+E":"Arrow Left","8pdCk4":"Arrow Right","Gp/343":"Arrow Up","PFPV0A":"Backspace","0IRYvp":"Caps Lock","X7HX0D":"Command","zq0AdD":"Control","8SfToN":"Delete","Ys/uah":"End","3K5hww":"Enter","veQt1j":"Enter","ySv7i+":"Home","e6RUI1":"Page Down","EEJk31":"Page Up","7sbhAU":"Shift","Q4eplT":"Space","SUhVVC":"Tab","extension.command.left-align.label":"Left align","ui.text-color.lime":"Lime","ui.text-color.lime.hue":["Lime ",["hue"]],"react-components.mention-atom-component.zero-items":"No items available","ui.text-color.orange":"Orange","ui.text-color.orange.hue":["Orange ",["hue"]],"extension.command.toggle-ordered-list.label":"Ordered list","keyboard.shortcut.pageDown":"Page Down","keyboard.shortcut.pageUp":"Page Up","extension.command.paste.label":"Paste","extension.command.paste.description":"Paste content into the editor","ui.text-color.pink":"Pink","ui.text-color.pink.hue":["Pink ",["hue"]],"zvMfIA":"No items available","pEjhti":"Static Menu","ui.text-color.red":"Red","ui.text-color.red.hue":["Red ",["hue"]],"extension.command.redo.label":"Redo","extension.command.redo.description":"Redo the most recent action","extension.command.remove-annotation.label":"Remove annotation","extension.command.right-align.label":"Right align","extension.command.select-all.label":"Select all","extension.command.select-all.description":"Select all content within the editor","extension.command.insert-horizontal-rule.description":"Separate content with a diving horizontal line","extension.command.set-casing.label":"Set text case","extension.command.set-font-size.description":"Set the font size for the selected text.","extension.command.set-text-color.description":"Set the text color for the selected text.","extension.command.set-text-highlight.description":"Set the text highlight color for the selected text.","keyboard.shortcut.shift":"Shift","extension.command.toggle-whitespace.description":"Show hidden whitespace characters in your editor.","keyboard.shortcut.space":"Space","extension.command.toggle-strike.label":"Strikethrough","extension.command.toggle-strike.description":"Strikethrough the selected text","extension.command.toggle-subscript.label":"Subscript","extension.command.toggle-superscript.label":"Superscript","keyboard.shortcut.tab":"Tab","extension.command.toggle-task-list.description":"Tasked list","ui.text-color.teal":"Teal","ui.text-color.teal.hue":["Teal ",["hue"]],"extension.command.set-text-color.label":"Text color","extension.command.set-text-highlight.label":"Text highlight","extension.command.toggle-whitespace.label":"Toggle Whitespace","ui.text-color.transparent":"Transparent","slrB1c":"Black","6QML30":"Blue","xw+keN":["Blue ",["hue"]],"38RHqP":"Cyan","D89yPf":["Cyan ",["hue"]],"VjBLnd":"Grape","Rp40yv":["Grape ",["hue"]],"5Dm9D1":"Gray","HGjXjC":["Gray ",["hue"]],"b9fz+n":"Green","18jo3M":["Green ",["hue"]],"CFzqCV":"Indigo","aVlDku":["Indigo ",["hue"]],"04PfLc":"Lime","KRTK6Y":["Lime ",["hue"]],"pSnXFd":"Orange","ve/MJZ":["Orange ",["hue"]],"OvCgDa":"Pink","l7NqyT":["Pink ",["hue"]],"IT9k0j":"Red","AdyJ7/":["Red ",["hue"]],"3D2UWc":"Teal","Dcq0Y1":["Teal ",["hue"]],"bsi2ik":"Transparent","Tj3PRR":"Violet","xxMH5N":["Violet ",["hue"]],"Rum0ah":"White","4gaw/Q":"Yellow","hhauc3":["Yellow ",["hue"]],"extension.command.toggle-underline.label":"Underline","extension.command.toggle-underline.description":"Underline the selected text","extension.command.undo.label":"Undo","extension.command.undo.description":"Undo the most recent action","extension.command.update-annotation.label":"Update annotation","ui.text-color.violet":"Violet","ui.text-color.violet.hue":["Violet ",["hue"]],"ui.text-color.white":"White","ui.text-color.yellow":"Yellow","ui.text-color.yellow.hue":["Yellow ",["hue"]]}'),pR={};mV(pR,dV),Mf.loadLocaleData("en",{plurals:pR.en}),Mf.load("en",vV),Mf.activate("en");var yV=Object.defineProperty,bV=Object.getOwnPropertyDescriptor,ry=(t,e,n,r)=>{for(var o=r>1?void 0:r?bV(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&yV(e,n,o),o},fc=class extends Rn{get name(){return"doc"}createNodeSpec(t,e){const{docAttributes:n,content:r}=this.options,o=ye();if(ns(n))for(const[i,s]of nn(n))o[i]={default:s};else for(const i of n)o[i]={default:null};return{attrs:o,content:r,...e}}setDocAttributes(t){return({tr:e,dispatch:n})=>{if(n){for(const[r,o]of Object.entries(t))e.step(new Sd(r,o));n(e)}return!0}}isDefaultDocNode({state:t=this.store.getState(),options:e}={}){return n0(t.doc,e)}};ry([le()],fc.prototype,"setDocAttributes",1),ry([nt()],fc.prototype,"isDefaultDocNode",1),fc=ry([Ne({defaultOptions:{content:"block+",docAttributes:[]},defaultPriority:tt.Medium,staticKeys:["content","docAttributes"],disableExtraAttributes:!0})],fc);var fR="SetDocAttribute",gR="RevertSetDocAttribute",Sd=class extends rn{constructor(t,e,n=fR){super(),this.stepType=n,this.key=t,this.value=e}static fromJSON(t,e){return new Sd(e.key,e.value,e.stepType)}apply(t){this.previous=t.attrs[this.key];const e={...t.attrs,[this.key]:this.value};return jt.ok(t.type.create(e,t.content,t.marks))}invert(){return new Sd(this.key,this.previous,gR)}map(){return this}toJSON(){return{stepType:this.stepType,key:this.key,value:this.value}}};try{rn.jsonID(fR,Sd),rn.jsonID(gR,Sd)}catch(t){if(!t.message.startsWith("Duplicate use of step JSON ID"))throw t}var xV=Object.defineProperty,wV=Object.getOwnPropertyDescriptor,mR=(t,e,n,r)=>{for(var o=r>1?void 0:r?wV(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&xV(e,n,o),o};function kV(t,e,n,r){const o=t.docView.posFromDOM(e,n,r);return o===null||o<0?null:o}function EV(t,e){const n=e.target;if(n){const r=kV(t,n,0);if(r!==null){const o=t.state.doc.resolve(r),i=o.node().isLeaf?0:1,s=o.start()-i;return{pos:r,inside:s}}}return t.posAtCoords({left:e.clientX,top:e.clientY})??void 0}var Of=class extends ht{constructor(){super(...arguments),this.mousedown=!1,this.mouseover=!1,this.createMouseEventHandler=t=>(e,n)=>{const r=n,o=EV(e,r);if(!o)return!1;const i=[],s=[],{inside:l,pos:a}=o;if(l===-1)return!1;const u=e.state.doc.resolve(a),c=u.depth+1;for(const d of o1(c,1))i.push({node:d>u.depth&&u.nodeAfter?u.nodeAfter:u.node(d),pos:u.before(d)});for(const{type:d}of u.marksAcross(u)??[]){const h=Ti(u,d);h&&s.push(h)}return t(r,{view:e,nodes:i,marks:s,getMark:d=>{const h=ke(d)?e.state.schema.marks[d]:d;return be(h,{code:re.EXTENSION,message:`The mark ${d} being checked does not exist within the editor schema.`}),s.find(p=>p.mark.type===h)},getNode:d=>{var h;const p=ke(d)?e.state.schema.nodes[d]:d;be(p,{code:re.EXTENSION,message:"The node being checked does not exist"});const f=i.find(({node:g})=>g.type===p);if(f)return{...f,isRoot:!!((h=i[0])!=null&&h.node.eq(f.node))}}})}}get name(){return"events"}onView(){var t,e;if(!((t=this.store.managerSettings.exclude)!=null&&t.clickHandler))for(const n of this.store.extensions){if(!n.createEventHandlers||(e=n.options.exclude)!=null&&e.clickHandler)continue;const r=n.createEventHandlers();for(const[o,i]of nn(r))this.addHandler(o,i)}}createPlugin(){const t=new WeakMap,e=(n,r,o,i,s,l,a,u)=>{const c=this.store.currentState,{schema:d,doc:h}=c,p=h.resolve(i),f=t.has(a),g=SV({$pos:p,handled:f,view:o,state:c});let m=!1;f||(m=n(a,g)||m);const v={...g,pos:i,direct:u,nodeWithPosition:{node:s,pos:l},getNode:y=>{const b=ke(y)?d.nodes[y]:y;return be(b,{code:re.EXTENSION,message:"The node being checked does not exist"}),b===s.type?{node:s,pos:l}:void 0}};return t.set(a,!0),r(a,v)||m};return{props:{handleKeyPress:(n,r)=>this.options.keypress(r)||!1,handleKeyDown:(n,r)=>this.options.keydown(r)||!1,handleTextInput:(n,r,o,i)=>this.options.textInput({from:r,to:o,text:i})||!1,handleClickOn:(n,r,o,i,s,l)=>e(this.options.clickMark,this.options.click,n,r,o,i,s,l),handleDoubleClickOn:(n,r,o,i,s,l)=>e(this.options.doubleClickMark,this.options.doubleClick,n,r,o,i,s,l),handleTripleClickOn:(n,r,o,i,s,l)=>e(this.options.tripleClickMark,this.options.tripleClick,n,r,o,i,s,l),handleDOMEvents:{focus:(n,r)=>this.options.focus(r)||!1,blur:(n,r)=>this.options.blur(r)||!1,mousedown:(n,r)=>(this.startMouseover(),this.options.mousedown(r)||!1),mouseup:(n,r)=>(this.endMouseover(),this.options.mouseup(r)||!1),mouseleave:(n,r)=>(this.mouseover=!1,this.options.mouseleave(r)||!1),mouseenter:(n,r)=>(this.mouseover=!0,this.options.mouseenter(r)||!1),keyup:(n,r)=>this.options.keyup(r)||!1,mouseout:this.createMouseEventHandler((n,r)=>{const o={...r,hovering:!1};return this.options.hover(n,o)||!1}),mouseover:this.createMouseEventHandler((n,r)=>{const o={...r,hovering:!0};return this.options.hover(n,o)||!1}),contextmenu:this.createMouseEventHandler((n,r)=>this.options.contextmenu(n,r)||!1),scroll:(n,r)=>this.options.scroll(r)||!1,copy:(n,r)=>this.options.copy(r)||!1,cut:(n,r)=>this.options.cut(r)||!1,paste:(n,r)=>this.options.paste(r)||!1}},view:n=>{let r=n.editable;const o=this.options;return{update(i){const s=i.editable;s!==r&&(o.editable(s),r=s)}}}}}isInteracting(){return this.mousedown&&this.mouseover}startMouseover(){this.mouseover=!0,!this.mousedown&&(this.mousedown=!0,this.store.document.documentElement.addEventListener("mouseup",()=>{this.endMouseover()},{once:!0}))}endMouseover(){this.mousedown&&(this.mousedown=!1,this.store.commands.emptyUpdate())}};mR([nt()],Of.prototype,"isInteracting",1),Of=mR([Ne({handlerKeys:["blur","focus","mousedown","mouseup","mouseenter","mouseleave","textInput","keypress","keyup","keydown","click","clickMark","doubleClick","doubleClickMark","tripleClick","tripleClickMark","contextmenu","hover","scroll","copy","cut","paste","editable"],handlerKeyOptions:{blur:{earlyReturnValue:!0},focus:{earlyReturnValue:!0},mousedown:{earlyReturnValue:!0},mouseleave:{earlyReturnValue:!0},mouseup:{earlyReturnValue:!0},click:{earlyReturnValue:!0},doubleClick:{earlyReturnValue:!0},tripleClick:{earlyReturnValue:!0},hover:{earlyReturnValue:!0},contextmenu:{earlyReturnValue:!0},scroll:{earlyReturnValue:!0},copy:{earlyReturnValue:!0},cut:{earlyReturnValue:!0},paste:{earlyReturnValue:!0}},defaultPriority:tt.High})],Of);function SV(t){const{handled:e,view:n,$pos:r,state:o}=t,i={getMark:NS,markRanges:[],view:n,state:o};if(e)return i;for(const{type:s}of r.marksAcross(r)??[]){const l=Ti(r,s);l&&i.markRanges.push(l)}return i.getMark=s=>{const l=ke(s)?o.schema.marks[s]:s;return be(l,{code:re.EXTENSION,message:`The mark ${s} being checked does not exist within the editor schema.`}),i.markRanges.find(a=>a.mark.type===l)},i}class Bt extends He{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return Bt.valid(r)?new Bt(r):He.near(r)}content(){return ae.empty}eq(e){return e instanceof Bt&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Bt(e.resolve(n.pos))}getBookmark(){return new oy(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!CV(e)||!TV(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&Bt.valid(e))return e;let o=e.pos,i=null;for(let s=e.depth;;s--){let l=e.node(s);if(n>0?e.indexAfter(s)0){i=l.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;o+=n;let a=e.doc.resolve(o);if(Bt.valid(a))return a}for(;;){let s=n>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!Oe.isSelectable(i)){e=e.doc.resolve(o+i.nodeSize*n),r=!1;continue e}break}i=s,o+=n;let l=e.doc.resolve(o);if(Bt.valid(l))return l}return null}}}Bt.prototype.visible=!1,Bt.findFrom=Bt.findGapCursorFrom,He.jsonID("gapcursor",Bt);class oy{constructor(e){this.pos=e}map(e){return new oy(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return Bt.valid(n)?new Bt(n):He.near(n)}}function CV(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function TV(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function AV(){return new Xo({props:{decorations:OV,createSelectionBetween(t,e,n){return e.pos==n.pos&&Bt.valid(n)?new Bt(n):null},handleClick:RV,handleKeyDown:_V,handleDOMEvents:{beforeinput:MV}}})}const _V=d0({ArrowLeft:If("horiz",-1),ArrowRight:If("horiz",1),ArrowUp:If("vert",-1),ArrowDown:If("vert",1)});function If(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,o,i){let s=r.selection,l=e>0?s.$to:s.$from,a=s.empty;if(s instanceof Me){if(!i.endOfTextblock(n)||l.depth==0)return!1;a=!1,l=r.doc.resolve(e>0?l.after():l.before())}let u=Bt.findGapCursorFrom(l,e,a);return u?(o&&o(r.tr.setSelection(new Bt(u))),!0):!1}}function RV(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!Bt.valid(r))return!1;let o=t.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&Oe.isSelectable(t.state.doc.nodeAt(o.inside))?!1:(t.dispatch(t.state.tr.setSelection(new Bt(r))),!0)}function MV(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof Bt))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let o=J.empty;for(let s=r.length-1;s>=0;s--)o=J.from(r[s].createAndFill(null,o));let i=t.state.tr.replace(n.pos,n.pos,new ae(o,0,0));return i.setSelection(Me.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function OV(t){if(!(t.selection instanceof Bt))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Ue.create(t.doc,[mt.widget(t.selection.head,e,{key:"gapcursor"})])}var IV=Object.defineProperty,LV=Object.getOwnPropertyDescriptor,NV=(t,e,n,r)=>{for(var o=r>1?void 0:r?LV(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&IV(e,n,o),o},iy=class extends ht{get name(){return"gapCursor"}createExternalPlugins(){return[AV()]}};iy=NV([Ne({})],iy);var Lf=200,mn=function(){};mn.prototype.append=function(e){return e.length?(e=mn.from(e),!this.length&&e||e.length=n?mn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))},mn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},mn.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)},mn.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(i,s){return o.push(e(i,s))},n,r),o},mn.from=function(e){return e instanceof mn?e:e&&e.length?new vR(e):mn.empty};var vR=function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(o,i){return o==0&&i==this.length?this:new e(this.values.slice(o,i))},e.prototype.getInner=function(o){return this.values[o]},e.prototype.forEachInner=function(o,i,s,l){for(var a=i;a=s;a--)if(o(this.values[a],l+a)===!1)return!1},e.prototype.leafAppend=function(o){if(this.length+o.length<=Lf)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=Lf)return new e(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(mn);mn.empty=new vR([]);var $V=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return rl&&this.right.forEachInner(r,Math.max(o-l,0),Math.min(this.length,i)-l,s+l)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,i,s){var l=this.left.length;if(o>l&&this.right.forEachInvertedInner(r,o-l,Math.max(i,l)-l,s+l)===!1||i=i?this.right.slice(r-i,o-i):this.left.slice(r,i).append(this.right.slice(0,o-i))},e.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new e(this.left,o)},e.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new e(o,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(mn);const DV=500;class Do{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,i;n&&(o=this.remapping(r,this.items.length),i=o.maps.length);let s=e.tr,l,a,u=[],c=[];return this.items.forEach((d,h)=>{if(!d.step){o||(o=this.remapping(r,h+1),i=o.maps.length),i--,c.push(d);return}if(o){c.push(new ri(d.map));let p=d.step.map(o.slice(i)),f;p&&s.maybeStep(p).doc&&(f=s.mapping.maps[s.mapping.maps.length-1],u.push(new ri(f,void 0,void 0,u.length+c.length))),i--,f&&o.appendMap(f,i)}else s.maybeStep(d.step);if(d.selection)return l=o?d.selection.map(o.slice(i)):d.selection,a=new Do(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:a,transform:s,selection:l}}addTransform(e,n,r,o){let i=[],s=this.eventCount,l=this.items,a=!o&&l.length?l.get(l.length-1):null;for(let c=0;czV&&(l=PV(l,u),s-=u),new Do(l.append(i),s)}remapping(e,n){let r=new Dl;return this.items.forEach((o,i)=>{let s=o.mirrorOffset!=null&&i-o.mirrorOffset>=e?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new Do(this.items.append(e.map(n=>new ri(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),i=e.mapping,s=e.steps.length,l=this.eventCount;this.items.forEach(h=>{h.selection&&l--},o);let a=n;this.items.forEach(h=>{let p=i.getMirror(--a);if(p==null)return;s=Math.min(s,p);let f=i.maps[p];if(h.step){let g=e.steps[p].invert(e.docs[p]),m=h.selection&&h.selection.map(i.slice(a+1,p));m&&l++,r.push(new ri(f,g,m))}else r.push(new ri(f))},o);let u=[];for(let h=n;hDV&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,o=[],i=0;return this.items.forEach((s,l)=>{if(l>=e)o.push(s),s.selection&&i++;else if(s.step){let a=s.step.map(n.slice(r)),u=a&&a.getMap();if(r--,u&&n.appendMap(u,r),a){let c=s.selection&&s.selection.map(n.slice(r));c&&i++;let d=new ri(u.invert(),a,c),h,p=o.length-1;(h=o.length&&o[p].merge(d))?o[p]=h:o.push(d)}}else s.map&&r--},this.items.length,0),new Do(mn.from(o.reverse()),i)}}Do.empty=new Do(mn.empty,0);function PV(t,e){let n;return t.forEach((r,o)=>{if(r.selection&&e--==0)return n=o,!1}),t.slice(n)}class ri{constructor(e,n,r,o){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=o}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new ri(n.getMap().invert(),n,this.selection)}}}class Is{constructor(e,n,r,o,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=i}}const zV=20;function FV(t,e,n,r){let o=n.getMeta(oi),i;if(o)return o.historyState;n.getMeta(HV)&&(t=new Is(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(oi))return s.getMeta(oi).redo?new Is(t.done.addTransform(n,void 0,r,Nf(e)),t.undone,yR(n.mapping.maps[n.steps.length-1]),t.prevTime,t.prevComposition):new Is(t.done,t.undone.addTransform(n,void 0,r,Nf(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let l=n.getMeta("composition"),a=t.prevTime==0||!s&&t.prevComposition!=l&&(t.prevTime<(n.time||0)-r.newGroupDelay||!BV(n,t.prevRanges)),u=s?sy(t.prevRanges,n.mapping):yR(n.mapping.maps[n.steps.length-1]);return new Is(t.done.addTransform(n,a?e.selection.getBookmark():void 0,r,Nf(e)),Do.empty,u,n.time,l??t.prevComposition)}else return(i=n.getMeta("rebased"))?new Is(t.done.rebased(n,i),t.undone.rebased(n,i),sy(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Is(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),sy(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function BV(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,o)=>{for(let i=0;i=e[i]&&(n=!0)}),n}function yR(t){let e=[];return t.forEach((n,r,o,i)=>e.push(o,i)),e}function sy(t,e){if(!t)return null;let n=[];for(let r=0;r{let n=oi.getState(t);return!n||n.done.eventCount==0?!1:(e&&bR(n,t,e,!1),!0)},Cd=(t,e)=>{let n=oi.getState(t);return!n||n.undone.eventCount==0?!1:(e&&bR(n,t,e,!0),!0)};function ly(t){let e=oi.getState(t);return e?e.done.eventCount:0}function WV(t){let e=oi.getState(t);return e?e.undone.eventCount:0}var VV=Object.defineProperty,jV=Object.getOwnPropertyDescriptor,Pa=(t,e,n,r)=>{for(var o=r>1?void 0:r?jV(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&VV(e,n,o),o},ii=class extends ht{constructor(){super(...arguments),this.wrapMethod=(t,e)=>({state:n,dispatch:r,view:o})=>{const{getState:i,getDispatch:s}=this.options,l=Xe(i)?i():n,a=Xe(s)&&r?s():r,u=t(l,a,o);return e==null||e(u),u}}get name(){return"history"}createKeymap(){return{"Mod-y":br.isMac?()=>!1:this.wrapMethod(Cd,this.options.onRedo),"Mod-z":this.wrapMethod($f,this.options.onUndo),"Shift-Mod-z":this.wrapMethod(Cd,this.options.onRedo)}}undoShortcut(t){return this.wrapMethod($f,this.options.onUndo)(t)}redoShortcut(t){return this.wrapMethod(Cd,this.options.onRedo)(t)}createExternalPlugins(){const{depth:t,newGroupDelay:e}=this.options;return[UV({depth:t,newGroupDelay:e})]}undo(){return lA(this.wrapMethod($f,this.options.onUndo))}redo(){return lA(this.wrapMethod(Cd,this.options.onRedo))}undoDepth(t=this.store.getState()){return ly(t)}redoDepth(t=this.store.getState()){return WV(t)}};Pa([Zt({shortcut:oe.Undo,command:"undo"})],ii.prototype,"undoShortcut",1),Pa([Zt({shortcut:oe.Redo,command:"redo"})],ii.prototype,"redoShortcut",1),Pa([le({disableChaining:!0,description:({t})=>t(Fp.UNDO_DESCRIPTION),label:({t})=>t(Fp.UNDO_LABEL),icon:"arrowGoBackFill"})],ii.prototype,"undo",1),Pa([le({disableChaining:!0,description:({t})=>t(Fp.REDO_DESCRIPTION),label:({t})=>t(Fp.REDO_LABEL),icon:"arrowGoForwardFill"})],ii.prototype,"redo",1),Pa([nt()],ii.prototype,"undoDepth",1),Pa([nt()],ii.prototype,"redoDepth",1),ii=Pa([Ne({defaultOptions:{depth:100,newGroupDelay:500,getDispatch:void 0,getState:void 0},staticKeys:["depth","newGroupDelay"],handlerKeys:["onUndo","onRedo"]})],ii);var GV=Object.defineProperty,KV=Object.getOwnPropertyDescriptor,Df=(t,e,n,r)=>{for(var o=r>1?void 0:r?KV(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&GV(e,n,o),o},YV={icon:"paragraph",label:({t})=>t(Bp.INSERT_LABEL),description:({t})=>t(Bp.INSERT_DESCRIPTION)},XV={icon:"paragraph",label:({t})=>t(Bp.CONVERT_LABEL),description:({t})=>t(Bp.CONVERT_DESCRIPTION)},za=class extends Rn{get name(){return"paragraph"}createTags(){return[we.LastNodeCompatible,we.TextBlock,we.Block,we.FormattingNode]}createNodeSpec(t,e){return{content:"inline*",draggable:!1,...e,attrs:{...t.defaults()},parseDOM:[{tag:"p",getAttrs:n=>({...t.parse(n)})},...e.parseDOM??[]],toDOM:n=>["p",t.dom(n),0]}}convertParagraph(t={}){const{attrs:e,selection:n,preserveAttrs:r}=t;return this.store.commands.setBlockNodeType.original(this.type,e,n,r)}insertParagraph(t,e={}){const{selection:n,attrs:r}=e;return this.store.commands.insertNode.original(this.type,{content:t,selection:n,attrs:r})}shortcut(t){return this.convertParagraph()(t)}};Df([le(XV)],za.prototype,"convertParagraph",1),Df([le(YV)],za.prototype,"insertParagraph",1),Df([Zt({shortcut:oe.Paragraph,command:"convertParagraph"})],za.prototype,"shortcut",1),za=Df([Ne({defaultPriority:tt.Medium})],za);var qV=Object.defineProperty,ZV=Object.getOwnPropertyDescriptor,JV=(t,e,n,r)=>{for(var o=r>1?void 0:r?ZV(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&qV(e,n,o),o},cy=class extends Rn{get name(){return"text"}createTags(){return[we.InlineNode]}createNodeSpec(){return{}}};cy=JV([Ne({disableExtraAttributes:!0,defaultPriority:tt.Medium})],cy);var QV={...fc.defaultOptions,...za.defaultOptions,...ii.defaultOptions,excludeExtensions:[]};function ej(t={}){t={...QV,...t};const{content:e,depth:n,getDispatch:r,getState:o,newGroupDelay:i,excludeExtensions:s}=t,l={};for(const u of s??[])l[u]=!0;const a=[];if(!l.history){const u=new ii({depth:n,getDispatch:r,getState:o,newGroupDelay:i});a.push(u)}return l.doc||a.push(new fc({content:e})),l.text||a.push(new cy),l.paragraph||a.push(new za),l.positioner||a.push(new hc),l.gapCursor||a.push(new iy),l.events||a.push(new Of),a}var tj=Object.defineProperty,nj=Object.getOwnPropertyDescriptor,rj=(t,e,n,r)=>{for(var o=r>1?void 0:r?nj(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&tj(e,n,o),o},Fa=class extends ht{get name(){return"placeholder"}createAttributes(){return{"aria-placeholder":this.options.placeholder}}createPlugin(){return{state:{init:(t,e)=>({...this.options,empty:n0(e.doc,{ignoreAttributes:!0})}),apply:(t,e,n,r)=>oj({pluginState:e,tr:t,extension:this,state:r})},props:{decorations:t=>ij({state:t,extension:this})}}}onSetOptions(t){const{changes:e}=t;e.placeholder.changed&&this.store.phase>=mr.EditorView&&this.store.updateAttributes()}};Fa=rj([Ne({defaultOptions:{emptyNodeClass:xU.IS_EMPTY,placeholder:""}})],Fa);function oj(t){const{pluginState:e,extension:n,tr:r,state:o}=t;return r.docChanged?{...n.options,empty:n0(o.doc)}:e}function ij(t){const{extension:e,state:n}=t,{empty:r}=e.pluginKey.getState(n),{emptyNodeClass:o,placeholder:i}=e.options;if(!r)return null;const s=[];return n.doc.descendants((l,a)=>{const u=mt.node(a,a+l.nodeSize,{class:o,"data-placeholder":i});s.push(u)}),Ue.create(n.doc,s)}var wR={exports:{}},Hr={},kR={exports:{}},ER={};/** + */var n=function(r){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,s={},l={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function y(b){return b instanceof a?new a(b.type,y(b.content),b.alias):Array.isArray(b)?b.map(y):b.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(k){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack)||[])[1];if(y){var b=document.getElementsByTagName("script");for(var x in b)if(b[x].src==y)return b[x]}return null}},isActive:function(y,b,x){for(var k="no-"+b;y;){var w=y.classList;if(w.contains(b))return!0;if(w.contains(k))return!1;y=y.parentElement}return!!x}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(y,b){var x=l.util.clone(l.languages[y]);for(var k in b)x[k]=b[k];return x},insertBefore:function(y,b,x,k){k=k||l.languages;var w=k[y],S={};for(var T in w)if(w.hasOwnProperty(T)){if(T==b)for(var C in x)x.hasOwnProperty(C)&&(S[C]=x[C]);x.hasOwnProperty(T)||(S[T]=w[T])}var O=k[y];return k[y]=S,l.languages.DFS(l.languages,function(R,_){_===O&&R!=y&&(this[R]=S)}),S},DFS:function y(b,x,k,w){w=w||{};var S=l.util.objId;for(var T in b)if(b.hasOwnProperty(T)){x.call(b,T,b[T],k||T);var C=b[T],O=l.util.type(C);O==="Object"&&!w[S(C)]?(w[S(C)]=!0,y(C,x,null,w)):O==="Array"&&!w[S(C)]&&(w[S(C)]=!0,y(C,x,T,w))}}},plugins:{},highlightAll:function(y,b){l.highlightAllUnder(document,y,b)},highlightAllUnder:function(y,b,x){var k={callback:x,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",k),k.elements=Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)),l.hooks.run("before-all-elements-highlight",k);for(var w=0,S;S=k.elements[w++];)l.highlightElement(S,b===!0,k.callback)},highlightElement:function(y,b,x){var k=l.util.getLanguage(y),w=l.languages[k];l.util.setLanguage(y,k);var S=y.parentElement;S&&S.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(S,k);var T=y.textContent,C={element:y,language:k,grammar:w,code:T};function O(_){C.highlightedCode=_,l.hooks.run("before-insert",C),C.element.innerHTML=C.highlightedCode,l.hooks.run("after-highlight",C),l.hooks.run("complete",C),x&&x.call(C.element)}if(l.hooks.run("before-sanity-check",C),S=C.element.parentElement,S&&S.nodeName.toLowerCase()==="pre"&&!S.hasAttribute("tabindex")&&S.setAttribute("tabindex","0"),!C.code){l.hooks.run("complete",C),x&&x.call(C.element);return}if(l.hooks.run("before-highlight",C),!C.grammar){O(l.util.encode(C.code));return}if(b&&r.Worker){var R=new Worker(l.filename);R.onmessage=function(_){O(_.data)},R.postMessage(JSON.stringify({language:C.language,code:C.code,immediateClose:!0}))}else O(l.highlight(C.code,C.grammar,C.language))},highlight:function(y,b,x){var k={code:y,grammar:b,language:x};if(l.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=l.tokenize(k.code,k.grammar),l.hooks.run("after-tokenize",k),a.stringify(l.util.encode(k.tokens),k.language)},tokenize:function(y,b){var x=b.rest;if(x){for(var k in x)b[k]=x[k];delete b.rest}var w=new d;return h(w,w.head,y),c(y,w,b,w.head,0),f(w)},hooks:{all:{},add:function(y,b){var x=l.hooks.all;x[y]=x[y]||[],x[y].push(b)},run:function(y,b){var x=l.hooks.all[y];if(!(!x||!x.length))for(var k=0,w;w=x[k++];)w(b)}},Token:a};r.Prism=l;function a(y,b,x,k){this.type=y,this.content=b,this.alias=x,this.length=(k||"").length|0}a.stringify=function y(b,x){if(typeof b=="string")return b;if(Array.isArray(b)){var k="";return b.forEach(function(O){k+=y(O,x)}),k}var w={type:b.type,content:y(b.content,x),tag:"span",classes:["token",b.type],attributes:{},language:x},S=b.alias;S&&(Array.isArray(S)?Array.prototype.push.apply(w.classes,S):w.classes.push(S)),l.hooks.run("wrap",w);var T="";for(var C in w.attributes)T+=" "+C+'="'+(w.attributes[C]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+T+">"+w.content+""};function u(y,b,x,k){y.lastIndex=b;var w=y.exec(x);if(w&&k&&w[1]){var S=w[1].length;w.index+=S,w[0]=w[0].slice(S)}return w}function c(y,b,x,k,w,S){for(var T in x)if(!(!x.hasOwnProperty(T)||!x[T])){var C=x[T];C=Array.isArray(C)?C:[C];for(var O=0;O=S.reach);$+=L.value.length,L=L.next){var P=L.value;if(b.length>y.length)return;if(!(P instanceof a)){var F=1,H;if(E){if(H=u(N,$,y,A),!H||H.index>=y.length)break;var G=H.index,W=H.index+H[0].length,B=$;for(B+=L.value.length;G>=B;)L=L.next,B+=L.value.length;if(B-=L.value.length,$=B,L.value instanceof a)continue;for(var U=L;U!==b.tail&&(BS.reach&&(S.reach=ne);var de=L.prev;X&&(de=h(b,de,X),$+=X.length),p(b,de,F);var Ie=new a(T,_?l.tokenize(Y,_):Y,M,Y);if(L=h(b,de,Ie),Z&&h(b,L,Z),F>1){var ve={cause:T+","+O,reach:ne};c(y,b,x,L.prev,$,ve),S&&ve.reach>S.reach&&(S.reach=ve.reach)}}}}}}function d(){var y={value:null,prev:null,next:null},b={value:null,prev:y,next:null};y.next=b,this.head=y,this.tail=b,this.length=0}function h(y,b,x){var k=b.next,w={value:x,prev:b,next:k};return b.next=w,k.prev=w,y.length++,w}function p(y,b,x){for(var k=b.next,w=0;w/,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(e){e.type==="entity"&&(e.attributes.title=e.content.value.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:t.languages[r]},o.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[n,"language-"+n],inside:t.languages[n]},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}var rU=F0;F0.displayName="css",F0.aliases=[];function F0(t){(function(e){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.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\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(t)}var oU=B0;B0.displayName="clike",B0.aliases=[];function B0(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:/[{}[\];(),.:]/}}var iU=H0;H0.displayName="javascript",H0.aliases=["js"];function H0(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}var pd=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof $e=="object"?$e:{},sU=kU();pd.Prism={manual:!0,disableWorkerMessageHandler:!0};var aU=x6,lU=z6,Q_=tU,cU=nU,uU=rU,dU=oU,hU=iU;sU();var U0={}.hasOwnProperty;function eR(){}eR.prototype=Q_;var Jt=new eR,pU=Jt;Jt.highlight=gU,Jt.register=fd,Jt.alias=fU,Jt.registered=mU,Jt.listLanguages=vU,fd(cU),fd(uU),fd(dU),fd(hU),Jt.util.encode=xU,Jt.Token.stringify=yU;function fd(t){if(typeof t!="function"||!t.displayName)throw new Error("Expected `function` for `grammar`, got `"+t+"`");Jt.languages[t.displayName]===void 0&&t(Jt)}function fU(t,e){var n=Jt.languages,r=t,o,i,s,l;e&&(r={},r[t]=e);for(o in r)for(i=r[o],i=typeof i=="string"?[i]:i,s=i.length,l=-1;++lparseInt(md(l,2),16)),parseInt(md(s[3]||"f",2),16)/255]}const r=_U.exec(e);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(l=>parseInt(l,16)),parseInt(s[3]||"ff",16)/255]}const o=RU.exec(e);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(l=>parseInt(l,10)),parseFloat(s[3]||"1")]}const i=MU.exec(e);if(i){const[s,l,a,u]=Array.from(i).slice(1).map(parseFloat);if(Ri(0,100,l)!==l)throw new gd(t);if(Ri(0,100,a)!==a)throw new gd(t);return[...IU(s,l,a),Number.isNaN(u)?1:u]}throw new gd(t)}function SU(t){let e=5381,n=t.length;for(;n;)e=e*33^t.charCodeAt(--n);return(e>>>0)%2341}const tR=t=>parseInt(t.replace(/_/g,""),36),CU="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((t,e)=>{const n=tR(e.substring(0,3)),r=tR(e.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return t[n]=`${o}${r}`,t},{});function TU(t){const e=t.toLowerCase().trim(),n=CU[SU(e)];if(!n)throw new gd(t);return`#${n}`}const md=(t,e)=>Array.from(Array(e)).map(()=>t).join(""),AU=new RegExp(`^#${md("([a-f0-9])",3)}([a-f0-9])?$`,"i"),_U=new RegExp(`^#${md("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),RU=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${md(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),MU=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,OU=/^[a-z]+$/i,nR=t=>Math.round(t*255),IU=(t,e,n)=>{let r=n/100;if(e===0)return[r,r,r].map(nR);const o=(t%360+360)%360/60,i=(1-Math.abs(2*r-1))*(e/100),s=i*(1-Math.abs(o%2-1));let l=0,a=0,u=0;o>=0&&o<1?(l=i,a=s):o>=1&&o<2?(l=s,a=i):o>=2&&o<3?(a=i,u=s):o>=3&&o<4?(a=s,u=i):o>=4&&o<5?(l=s,u=i):o>=5&&o<6&&(l=i,u=s);const c=r-i/2,d=l+c,h=a+c,p=u+c;return[d,h,p].map(nR)};function LU(t){const[e,n,r,o]=V0(t).map((d,h)=>h===3?d:d/255),i=Math.max(e,n,r),s=Math.min(e,n,r),l=(i+s)/2;if(i===s)return[0,0,l,o];const a=i-s,u=l>.5?a/(2-i-s):a/(i+s);return[60*(e===i?(n-r)/a+(n.179}function cc(t){return PU(t)?"#000":"#fff"}var zU=Object.freeze({__proto__:null,ANIMATED_POPOVER:"remirror-animated-popover",BUTTON:"remirror-button",BUTTON_ACTIVE:"remirror-button-active",COLOR_PICKER:"remirror-color-picker",COLOR_PICKER_CELL:"remirror-color-picker-cell",COLOR_PICKER_CELL_SELECTED:"remirror-color-picker-cell-selected",COMPOSITE:"remirror-composite",DIALOG:"remirror-dialog",DIALOG_BACKDROP:"remirror-dialog-backdrop",EDITOR_WRAPPER:"remirror-editor-wrapper",FLEX_COLUMN:"remirror-flex-column",FLEX_ROW:"remirror-flex-row",FLOATING_POPOVER:"remirror-floating-popover",FORM:"remirror-form",FORM_GROUP:"remirror-form-group",FORM_LABEL:"remirror-form-label",FORM_MESSAGE:"remirror-form-message",GROUP:"remirror-group",INPUT:"remirror-input",MENU:"remirror-menu",MENU_BAR:"remirror-menu-bar",MENU_BUTTON:"remirror-menu-button",MENU_BUTTON_LEFT:"remirror-menu-button-left",MENU_BUTTON_NESTED_LEFT:"remirror-menu-button-nested-left",MENU_BUTTON_NESTED_RIGHT:"remirror-menu-button-nested-right",MENU_BUTTON_RIGHT:"remirror-menu-button-right",MENU_DROPDOWN_LABEL:"remirror-menu-dropdown-label",MENU_GROUP:"remirror-menu-group",MENU_ITEM:"remirror-menu-item",MENU_ITEM_CHECKBOX:"remirror-menu-item-checkbox",MENU_ITEM_COLUMN:"remirror-menu-item-column",MENU_ITEM_RADIO:"remirror-menu-item-radio",MENU_ITEM_ROW:"remirror-menu-item-row",MENU_PANE:"remirror-menu-pane",MENU_PANE_ACTIVE:"remirror-menu-pane-active",MENU_PANE_ICON:"remirror-menu-pane-icon",MENU_PANE_LABEL:"remirror-menu-pane-label",MENU_PANE_SHORTCUT:"remirror-menu-pane-shortcut",POPOVER:"remirror-popover",ROLE:"remirror-role",SEPARATOR:"remirror-separator",TAB:"remirror-tab",TABBABLE:"remirror-tabbable",TABLE_SIZE_EDITOR:"remirror-table-size-editor",TABLE_SIZE_EDITOR_BODY:"remirror-table-size-editor-body",TABLE_SIZE_EDITOR_CELL:"remirror-table-size-editor-cell",TABLE_SIZE_EDITOR_CELL_SELECTED:"remirror-table-size-editor-cell-selected",TABLE_SIZE_EDITOR_FOOTER:"remirror-table-size-editor-footer",TAB_LIST:"remirror-tab-list",TOOLBAR:"remirror-toolbar",TOOLTIP:"remirror-tooltip"}),j0=Object.freeze({__proto__:null,A11Y_DARK:"remirror-a11y-dark",ATOM_DARK:"remirror-atom-dark",BASE16_ATELIERSULPHURPOOL_LIGHT:"remirror-base16-ateliersulphurpool-light",CB:"remirror-cb",DARCULA:"remirror-darcula",DRACULA:"remirror-dracula",DUOTONE_DARK:"remirror-duotone-dark",DUOTONE_EARTH:"remirror-duotone-earth",DUOTONE_FOREST:"remirror-duotone-forest",DUOTONE_LIGHT:"remirror-duotone-light",DUOTONE_SEA:"remirror-duotone-sea",DUOTONE_SPACE:"remirror-duotone-space",GH_COLORS:"remirror-gh-colors",HOPSCOTCH:"remirror-hopscotch",LANGUAGE_SELECT_POSITIONER:"remirror-language-select-positioner",LANGUAGE_SELECT_WIDTH:"remirror-language-select-width",POJOAQUE:"remirror-pojoaque",VS:"remirror-vs",WRAP:"remirror-wrap",XONOKAI:"remirror-xonokai"}),FU=Object.freeze({__proto__:null,IMAGE_LOADER:"remirror-image-loader"}),Rs=Object.freeze({__proto__:null,COLLAPSIBLE_LIST_ITEM_BUTTON:"remirror-collapsible-list-item-button",COLLAPSIBLE_LIST_ITEM_CLOSED:"remirror-collapsible-list-item-closed",EDITOR:"remirror-editor",LIST_ITEM_CHECKBOX:"remirror-list-item-checkbox",LIST_ITEM_MARKER_CONTAINER:"remirror-list-item-marker-container",LIST_ITEM_WITH_CUSTOM_MARKER:"remirror-list-item-with-custom-mark",LIST_SPINE:"remirror-list-spine",UL_LIST_CONTENT:"remirror-ul-list-content"}),BU=Object.freeze({__proto__:null,IS_EMPTY:"remirror-is-empty"}),HU=Object.freeze({__proto__:null,EDITOR:"remirror-editor",POSITIONER:"remirror-positioner",POSITIONER_WIDGET:"remirror-positioner-widget"});const UU="remirror-theme";function WU(t={}){const e=[],n={};function r(o,i){if(typeof i=="string"||typeof i=="number"){e.push(`${rR(o)}: ${i};`),n[rR(o)]=i;return}if(!(typeof i!="object"||!i))for(const[s,l]of Object.entries(i))r([...o,s],l)}for(const[o,i]of Object.entries(t))r([o],i);return{css:e.join(` +`),styles:n}}function VU(t){return t.replace(/([a-z])([\dA-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function rR(t){return`--rmr-${t.map(VU).join("-")}`}const $o={gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},Mi="#000000",G0="#ffffff",jU="#252103",K0=Sf(Mi,.75),Cf="#7963d2",Y0="#bcd263",GU="#fff",KU="#fff",X0=$o.gray[1],oR="rgba(10,31,68,0.08)",iR="rgba(10,31,68,0.10)",sR="rgba(10,31,68,0.12)",YU=Ef(Sf(Mi,.1),.13),q0={background:G0,border:K0,foreground:Mi,muted:X0,primary:Cf,secondary:Y0,primaryText:GU,secondaryText:KU,text:jU,faded:YU},XU={...q0,background:Br(G0,.15),border:Br(K0,.15),foreground:Br(Mi,.15),muted:Br(X0,.15),primary:Br(Cf,.15),secondary:Br(Y0,.15),get text(){return cc(this.background)},get primaryText(){return cc(this.primary)},get secondaryText(){return cc(this.secondary)}},qU={...q0,background:Br(G0,.075),border:Br(K0,.075),foreground:Br(Mi,.075),muted:Br(X0,.075),primary:Br(Cf,.075),secondary:Br(Y0,.075),get text(){return cc(this.background)},get primaryText(){return cc(this.primary)},get secondaryText(){return cc(this.secondary)}},Da={color:{...q0,active:XU,hover:qU,shadow1:oR,shadow2:iR,shadow3:sR,backdrop:Sf(Mi,.1),outline:Sf(Cf,.6),table:{default:{border:Ef(Mi,.8),cell:Ef(Mi,.4),controller:$o.gray[3]},selected:{border:$o.blue[7],cell:$o.blue[1],controller:$o.blue[5]},preselect:{border:$o.blue[7],cell:Ef(Mi,.4),controller:$o.blue[5]},predelete:{border:$o.red[7],cell:$o.red[1],controller:$o.red[5]},mark:"#91919196"}},hue:$o,radius:{border:"0.25rem",extra:"0.5rem",circle:"50%"},fontFamily:{default:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',heading:"inherit",mono:"Menlo, monospace"},fontSize:{0:"12px",1:"14px",2:"16px",3:"20px",4:"24px",5:"32px",6:"48px",7:"64px",8:"96px",default:"16px"},space:{1:"4px",2:"8px",3:"16px",4:"32px",5:"64px",6:"128px",7:"256px",8:"512px"},fontWeight:{bold:"700",default:"400",heading:"700"},letterSpacing:{tight:"-1px",default:"normal",loose:"1px",wide:"3px"},lineHeight:{heading:"1.25em",default:"1.5em"},boxShadow:{1:`0 1px 1px ${oR}`,2:`0 1px 1px ${iR}`,3:`0 1px 1px ${sR}`}};var ZU=Object.defineProperty,JU=Object.getOwnPropertyDescriptor,Oi=(t,e,n,r)=>{for(var o=r>1?void 0:r?JU(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&ZU(e,n,o),o},aR=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Ms=(t,e,n)=>(aR(t,e,"read from private field"),n?n.call(t):e.get(t)),Z0=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},J0=(t,e,n,r)=>(aR(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),lR="data-code-block-language";function cR(t,e,n=[]){return t.map(r=>{const o=[...n];return r.type==="element"&&r.properties.className?o.push(...r.properties.className):r.type==="text"&&o.length===0&&e&&o.push(e),r.type==="element"?cR(r.children,e,o):{text:r.value,classes:o}})}function QU(t,e){var n;const{node:r,pos:o}=t,i=Tf({language:(n=r.attrs.language)==null?void 0:n.replace("language-",""),fallback:"markup"}),s=W0.highlight(r.textContent??"",i),l=cR(s,e);let a=o+1;function u(c){const d=a,h=d+c.text.length;return a=h,{...c,from:d,to:h}}return PS(l).map(u)}function uR(t){const{blocks:e,skipLast:n,plainTextClassName:r}=t,o=[];for(const i of e){const s=QU(i,r),l=n?s.length-1:s.length;for(const a of s1(l)){const u=s[a],c=u==null?void 0:u.classes;if(!u||!(c!=null&&c.length))continue;const d=mt.inline(u.from,u.to,{class:c.join(" ")});o.push(d)}}return o}function e9(t){return!!(t&&Tn(t)&&ke(t.language)&&t.language.length>0)}function t9(t){return e=>({state:{tr:n,selection:r},dispatch:o})=>{if(!e9(e))throw new Error("Invalid attrs passed to the updateAttributes method");const i=ti({types:t,selection:r});return!i||DS(e,i.node.attrs)?!1:(n.setNodeMarkup(i.pos,t,{...i.node.attrs,...e}),o&&o(n),!0)}}function Tf(t){const{language:e,fallback:n}=t;if(!e)return n;const r=W0.listLanguages();for(const o of r)if(o.toLowerCase()===e.toLowerCase())return o;return n}function n9(t,e){const{language:n,wrap:r}=of(t.attrs,e),{style:o,...i}=e.dom(t);let s=i.style;return r&&(s=Az({whiteSpace:"pre-wrap",wordBreak:"break-all"},s)),["pre",{spellcheck:"false",...i,class:ec(i.class,`language-${n}`)},["code",{[lR]:n,style:s},0]]}function r9(t){return({pos:e}=ye())=>({tr:n,dispatch:r})=>{const{type:o,formatter:i,defaultLanguage:s}=t,{from:l,to:a}=e?{from:e,to:e}:n.selection,u=ti({types:o,selection:n.selection});if(!u)return!1;const{node:{attrs:c,textContent:d},start:h}=u,p=l-h,f=a-h,g=Tf({language:c.language,fallback:s}),m=i({source:d,language:g,cursorOffset:p});let v;if(p!==f&&(v=i({source:d,language:g,cursorOffset:f})),!m)return!1;const{cursorOffset:y,formatted:b}=m;if(b===d)return!1;const x=h+d.length;n.insertText(b,h,x);const k=h+y,w=v?h+v.cursorOffset:void 0;return n.setSelection(Oe.between(n.doc.resolve(k),n.doc.resolve(w??k))),r&&r(n),!0}}function o9(t){var e;return(e=t.getAttribute(lR)??t.classList[0])==null?void 0:e.replace("language-","")}var{DESCRIPTION:i9,LABEL:s9}=NP,a9={icon:"bracesLine",description:({t})=>t(i9),label:({t})=>t(s9)},Pa,vd,yd,l9=class{constructor(t,e){Z0(this,Pa,void 0),Z0(this,vd,void 0),Z0(this,yd,!1),J0(this,vd,t),J0(this,Pa,e)}init(t){const e=Bz({node:t.doc,type:Ms(this,vd)});return this.refreshDecorationSet(t.doc,e),this}refreshDecorationSet(t,e){const n=uR({blocks:e,skipLast:Ms(this,yd),defaultLanguage:Ms(this,Pa).options.defaultLanguage,plainTextClassName:Ms(this,Pa).options.plainTextClassName??void 0});this.decorationSet=Ue.create(t,n)}apply(t,e){if(!t.docChanged)return this;this.decorationSet=this.decorationSet.map(t.mapping,t.doc);const n=Hz(t,{descend:!0,predicate:r=>r.type===Ms(this,vd),StepTypes:[]});return this.updateDecorationSet(t,n),this}updateDecorationSet(t,e){if(e.length===0)return;let n=this.decorationSet;for(const{node:r,pos:o}of e)n=this.decorationSet.remove(this.decorationSet.find(o,o+r.nodeSize));this.decorationSet=n.add(t.doc,uR({blocks:e,skipLast:Ms(this,yd),defaultLanguage:Ms(this,Pa).options.defaultLanguage,plainTextClassName:Ms(this,Pa).options.plainTextClassName??void 0}))}setDeleted(t){J0(this,yd,t)}};Pa=new WeakMap,vd=new WeakMap,yd=new WeakMap;var po=class extends Mn{get name(){return"codeBlock"}createTags(){return[we.Block,we.Code]}init(){this.registerLanguages()}createNodeSpec(t,e){const n=/highlight-(?:text|source)-([\da-z]+)/;return{content:"text*",marks:"",defining:!0,draggable:!1,...e,code:!0,attrs:{...t.defaults(),language:{default:this.options.defaultLanguage},wrap:{default:this.options.defaultWrap}},parseDOM:[{tag:"div.highlight",preserveWhitespace:"full",getAttrs:r=>{var o,i;if(!Ft(r))return!1;const s=r.querySelector("pre.code");if(!Ft(s))return!1;const l=ei(s,"white-space")==="pre-wrap",a=(i=(o=r.className.match(n))==null?void 0:o[1])==null?void 0:i.replace("language-","");return{...t.parse(r),language:a,wrap:l}}},{tag:"pre",preserveWhitespace:"full",getAttrs:r=>{if(!Ft(r))return!1;const o=r.querySelector("code");if(!Ft(o))return!1;const i=ei(o,"white-space")==="pre-wrap",s=this.options.getLanguageFromDom(o,r);return{...t.parse(r),language:s,wrap:i}}},...e.parseDOM??[]],toDOM:r=>n9(r,t)}}createAttributes(){return{class:j0[this.options.syntaxTheme.toUpperCase()]}}createInputRules(){const t=/^```([\dA-Za-z]*) $/,e=n=>({language:Tf({language:Jl(n,1),fallback:this.options.defaultLanguage})});return[BA({regexp:t,type:this.type,beforeDispatch:({tr:n,start:r})=>{const o=n.doc.resolve(r);n.setSelection(Oe.near(o))},getAttributes:e})]}onSetOptions(t){const{changes:e}=t;e.supportedLanguages.changed&&this.registerLanguages(),e.syntaxTheme.changed&&this.store.updateAttributes()}createPlugin(){const t=new l9(this.type,this),e=()=>(t.setDeleted(!0),!1);return{state:{init(n,r){return t.init(r)},apply(n,r,o,i){return t.apply(n,i)}},props:{handleKeyDown:g0({Backspace:e,"Mod-Backspace":e,Delete:e,"Mod-Delete":e,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e}),decorations(){return t.setDeleted(!1),t.decorationSet}}}}toggleCodeBlock(t={}){return c0({type:this.type,toggleType:this.options.toggleName,attrs:{language:this.options.defaultLanguage,...t}})}createCodeBlock(t){return Qu(this.type,t)}updateCodeBlock(t){return t9(this.type)(t)}formatCodeBlock(t){return r9({type:this.type,formatter:this.options.formatter,defaultLanguage:this.options.defaultLanguage})(t)}tabKey({state:t,dispatch:e}){const{selection:n,tr:r,schema:o}=t,{node:i}=Q3(n);if(!Jp({node:i,types:this.type}))return!1;if(n.empty)r.insertText(" ");else{const{from:s,to:l}=n;r.replaceWith(s,l,o.text(" "))}return e&&e(r),!0}backspaceKey({dispatch:t,tr:e,state:n}){if(!e.selection.empty)return!1;const r=ti({types:this.type,selection:e.selection});if((r==null?void 0:r.start)!==e.selection.from)return!1;const{pos:o,node:i,start:s}=r,l=_t(n.schema.nodes,this.options.toggleName);return i.textContent.trim()===""?e.doc.lastChild===i&&e.doc.firstChild===i?Z3({pos:o,tr:e,content:l.create()}):q3({pos:o,tr:e}):s>2?e.setSelection(Oe.near(e.doc.resolve(s-2))):(e.insert(0,l.create()),e.setSelection(Oe.near(e.doc.resolve(1)))),t&&t(e),!0}enterKey({dispatch:t,tr:e}){if(!(ws(e.selection)&&e.selection.empty))return!1;const{nodeBefore:n,parent:r}=e.selection.$anchor;if(!(n!=null&&n.isText)||!r.type.isTextblock)return!1;const o=/^```([A-Za-z]*)?$/,{text:i,nodeSize:s}=n,{textContent:l}=r;if(!i)return!1;const a=i.match(o),u=l.match(o);if(!a||!u)return!1;const[,c]=a,d=Tf({language:c,fallback:this.options.defaultLanguage}),h=e.selection.$from.before(),p=h+s+1;return e.replaceWith(h,p,this.type.create({language:d})),e.setSelection(Oe.near(e.doc.resolve(h+1))),t&&t(e),!0}formatShortcut({tr:t}){const e=this.store.commands;if(!EA({type:this.type,state:t}))return!1;const n=e.formatCodeBlock.isEnabled();return n&&e.formatCodeBlock(),n}registerLanguages(){for(const t of this.options.supportedLanguages)W0.register(t)}};Oi([le(a9)],po.prototype,"toggleCodeBlock",1),Oi([le()],po.prototype,"createCodeBlock",1),Oi([le()],po.prototype,"updateCodeBlock",1),Oi([le()],po.prototype,"formatCodeBlock",1),Oi([Zt({shortcut:"Tab"})],po.prototype,"tabKey",1),Oi([Zt({shortcut:"Backspace"})],po.prototype,"backspaceKey",1),Oi([Zt({shortcut:"Enter"})],po.prototype,"enterKey",1),Oi([Zt({shortcut:oe.Format})],po.prototype,"formatShortcut",1),po=Oi([Ne({defaultOptions:{supportedLanguages:[],toggleName:"paragraph",formatter:({source:t})=>({cursorOffset:0,formatted:t}),syntaxTheme:"a11y_dark",defaultLanguage:"markup",defaultWrap:!1,plainTextClassName:"",getLanguageFromDom:o9},staticKeys:["getLanguageFromDom"]})],po);var c9=Object.defineProperty,u9=Object.getOwnPropertyDescriptor,Q0=(t,e,n,r)=>{for(var o=r>1?void 0:r?u9(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&c9(e,n,o),o},dR=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},an=(t,e,n)=>(dR(t,e,"read from private field"),n?n.call(t):e.get(t)),Ii=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Os=(t,e,n,r)=>(dR(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),bd,xd,uc,wd,Af,kd,Ed,Sd,Cd,_f=class{constructor(t){Ii(this,bd,lf()),Ii(this,xd,[]),Ii(this,uc,new Map),Ii(this,wd,[]),Ii(this,Af,!1),Ii(this,kd,void 0),Ii(this,Ed,void 0),Ii(this,Sd,void 0),Ii(this,Cd,void 0),this.addListener=(e,n)=>an(this,bd).on(e,n),Os(this,kd,t),Os(this,Ed,t.getActive),Os(this,Cd,t.getPosition),Os(this,Sd,t.getID),this.hasChanged=t.hasChanged,this.events=t.events??["state","scroll"]}static create(t){return new _f(t)}static fromPositioner(t,e){return _f.create({...t.basePositioner,...e})}get basePositioner(){return{getActive:an(this,Ed),getPosition:an(this,Cd),hasChanged:this.hasChanged,events:this.events,getID:an(this,Sd)}}onActiveChanged(t){this.recentUpdate=t;const e=an(this,Ed).call(this,t);Os(this,xd,e),Os(this,uc,new Map),Os(this,Af,!1),Os(this,wd,[]);const n=[];for(const[r,o]of e.entries()){const i=this.getID(o,r);an(this,wd).push(i),n.push({setElement:s=>this.addProps({...t,data:o,element:s},r),id:i,data:o})}an(this,bd).emit("update",n)}getID(t,e){var n;return((n=an(this,Sd))==null?void 0:n.call(this,t,e))??e.toString()}addProps(t,e){if(an(this,Af)||(an(this,uc).set(e,t),an(this,uc).sizet;return this.clone(n=>({getActive:r=>n.getActive(r).filter(e)}))}},Hr=_f;bd=new WeakMap,xd=new WeakMap,uc=new WeakMap,wd=new WeakMap,Af=new WeakMap,kd=new WeakMap,Ed=new WeakMap,Sd=new WeakMap,Cd=new WeakMap,Hr.EMPTY=[];function d9(t,e=pR){const{key:n}=(t==null?void 0:t.getMeta(hR))??{};return n===e}function ey(t){const{tr:e,state:n,previousState:r}=t;return!r||e&&d9(e)?!0:e?tz(e):!n.doc.eq(r.doc)||!n.selection.eq(r.selection)}function ty(t,e,n={}){const r=e.getBoundingClientRect(),{accountForPadding:o=!1}=n;let i=0,s=0,l=0,a=0;if(Ft(e)&&o){const c=Number.parseFloat(ei(e,"padding-left").replace("px","")),d=Number.parseFloat(ei(e,"padding-right").replace("px","")),h=Number.parseFloat(ei(e,"padding-top").replace("px","")),p=Number.parseFloat(ei(e,"padding-bottom").replace("px","")),f=Number.parseFloat(ei(e,"border-left").replace("px","")),g=Number.parseFloat(ei(e,"border-right").replace("px","")),m=Number.parseFloat(ei(e,"border-top").replace("px","")),v=Number.parseFloat(ei(e,"border-bottom").replace("px","")),y=e.offsetWidth-e.clientWidth,b=e.offsetHeight-e.clientHeight;i+=c+f+(e.dir==="rtl"?y:0),s+=d+g+(e.dir==="rtl"?0:y),l+=h+m,a+=p+v+b}const u=new DOMRect(r.left+i,r.top+l,r.width-s,r.height-a);for(const[c,d]of[[t.top,t.left],[t.top,t.right],[t.bottom,t.left],[t.bottom,t.right]])if(Yo(c,u.top,u.bottom)&&Yo(d,u.left,u.right))return!0;return!1}var h9="remirror-positioner-widget",hR="positionerUpdate",pR="__all_positioners__",fR={y:-999999,x:-999999,width:0,height:0},gR={...fR,left:-999999,top:-999999,bottom:-999999,right:-999999},Rf={...fR,rect:{...gR,toJSON:()=>gR},visible:!1},mR=Hr.create({hasChanged:ey,getActive(t){const{state:e}=t;if(!r0(e)||e.selection.$anchor.depth>2)return Hr.EMPTY;const n=Xu({predicate:r=>r.type.isBlock,selection:e});return n?[n]:Hr.EMPTY},getPosition(t){const{view:e,data:n}=t,r=e.nodeDOM(n.pos);if(!Ft(r))return Rf;const o=r.getBoundingClientRect(),i=e.dom.getBoundingClientRect(),s=o.height,l=o.width,a=e.dom.scrollLeft+o.left-i.left,u=e.dom.scrollTop+o.top-i.top,c=ty(o,e.dom);return{y:u,x:a,height:s,width:l,rect:o,visible:c}}}),ny=mR.clone(({getActive:t})=>({getActive:e=>{const[n]=t(e);return n&&nf(n.node)&&n.node.type===tf(e.state.schema)?[n]:Hr.EMPTY}})),p9=ny.clone(({getPosition:t})=>({getPosition:e=>({...t(e),width:1})})),f9=ny.clone(({getPosition:t})=>({getPosition:e=>{const{width:n,x:r,y:o,height:i}=t(e);return{...t(e),width:1,x:n+r,rect:new DOMRect(n+r,o,1,i)}}}));function ry(t){return Hr.create({hasChanged:ey,getActive:e=>{const{state:n,view:r}=e;if(!t(n)||!ws(n.selection))return Hr.EMPTY;try{const{head:o,anchor:i}=n.selection;return[{from:r.coordsAtPos(i),to:r.coordsAtPos(o)}]}catch{return Hr.EMPTY}},getPosition(e){const{element:n,data:r,view:o}=e,{from:i,to:s}=r,l=n.offsetParent??o.dom,a=l.getBoundingClientRect(),u=Math.abs(s.bottom-i.top),c=u>i.bottom-i.top,d=Math.min(i.left,s.left),h=Math.min(i.top,s.top),p=l.scrollLeft+(c?s.left-a.left:d-a.left),f=l.scrollTop+h-a.top,g=c?1:Math.abs(i.left-s.right),m=new DOMRect(c?s.left:d,h,g,u),v=ty(m,o.dom);return{rect:m,y:f,x:p,height:u,width:g,visible:v}}})}var vR=ry(t=>!t.selection.empty),g9=ry(t=>t.selection.empty),m9=ry(()=>!0),v9=vR.clone(()=>({getActive:t=>{const{state:e,view:n}=t;if(!e.selection.empty)return Hr.EMPTY;const r=MA(e);if(!r)return Hr.EMPTY;try{return[{from:n.coordsAtPos(r.from),to:n.coordsAtPos(r.to)}]}catch{return Hr.EMPTY}}})),y9={selection:vR,cursor:g9,always:m9,block:mR,emptyBlock:ny,emptyBlockStart:p9,emptyBlockEnd:f9,nearestWord:v9},dc=class extends ct{constructor(){super(...arguments),this.positioners=[],this.onAddCustomHandler=({positioner:t})=>{if(t)return this.positioners=[...this.positioners,t],this.store.commands.forceUpdate(),()=>{this.positioners=this.positioners.filter(e=>e!==t)}}}get name(){return"positioner"}createAttributes(){return{class:HU.EDITOR}}init(){this.onScroll=OS(this.options.scrollDebounce,this.onScroll.bind(this))}createEventHandlers(){return{scroll:()=>(this.onScroll(),!1),hover:(t,e)=>(this.positioner(this.getBaseProps("hover",{hover:e})),!1),contextmenu:(t,e)=>(this.positioner(this.getBaseProps("contextmenu",{contextmenu:e})),!1)}}onStateUpdate(t){this.positioner({...t,previousState:t.firstUpdate?void 0:t.previousState,event:"state",helpers:this.store.helpers})}createDecorations(t){if(this.element??(this.element=this.createElement()),!this.element.hasChildNodes())return Ue.empty;const e=mt.widget(0,this.element,{key:"positioner-widget",side:-1,stopEvent:()=>!0});return Ue.create(t.doc,[e])}forceUpdatePositioners(t=pR){return({tr:e,dispatch:n})=>(n==null||n(e.setMeta(hR,{key:t})),!0)}getPositionerWidget(){return this.element??(this.element=this.createElement())}createElement(){const t=document.createElement("span");return t.dataset.id=h9,t.setAttribute("role","presentation"),t}triggerPositioner(t,e){t.hasChanged(e)&&t.onActiveChanged({...e,view:this.store.view})}positioner(t){for(const e of this.positioners)e.events.includes(t.event)&&this.triggerPositioner(e,t)}getBaseProps(t,e){const n=this.store.getState(),r=this.store.previousState;return{helpers:this.store.helpers,event:t,firstUpdate:!1,previousState:r,state:n,...e}}onScroll(){this.positioner(this.getBaseProps("scroll",{scroll:{scrollTop:this.store.view.dom.scrollTop}}))}};Q0([le()],dc.prototype,"forceUpdatePositioners",1),Q0([nt()],dc.prototype,"getPositionerWidget",1),dc=Q0([Ne({defaultOptions:{scrollDebounce:100},customHandlerKeys:["positioner"],staticKeys:["scrollDebounce"]})],dc);function oy(t){return ke(t)?y9[t].clone():Xe(t)?t().clone():t.clone()}function b9(t){const e=D.createContext(null),n=x9(e);return[o=>{const i=t(o);return ee.createElement(e.Provider,{value:i},o.children)},n,e]}function x9(t){return(e,n)=>{const r=D.useContext(t),o=w9(r);if(!r)throw new Error("`useContextHook` must be placed inside the `Provider` returned by the `createContextState` method");if(!e)return r;if(typeof e!="function")throw new TypeError("invalid arguments passed to `useContextHook`. This hook must be called with zero arguments, a getter function or a path string.");const i=e(r);if(!o||!n)return i;const s=e(o);return n(s,i)?s:i}}function w9(t){const e=D.useRef();return k9(()=>{e.current=t}),e.current}var k9=typeof document<"u"?D.useLayoutEffect:D.useEffect;function E9(t,e){return b9(n=>{const r=D.useRef(null),o=D.useRef(),i=e==null?void 0:e(n),[s,l]=D.useState(()=>t({get:yR(r),set:bR(o),previousContext:void 0,props:n,state:i})),a=[...Object.values(n),i];return D.useEffect(()=>{a.length!==0&&l(u=>t({get:yR(r),set:bR(o),previousContext:u,props:n,state:i}))},a),r.current=s,o.current=l,s})}function yR(t){return e=>{if(!t.current)throw new Error("`get` called outside of function scope. `get` can only be called within a function.");if(!e)return t.current;if(typeof e!="function")throw new TypeError("Invalid arguments passed to `useContextHook`. The hook must be called with zero arguments, a getter function or a path string.");return e(t.current)}}function bR(t){return e=>{if(!t.current)throw new Error("`set` called outside of function scope. `set` can only be called within a function.");t.current(n=>({...n,...typeof e=="function"?e(n):e}))}}var xR={},wR={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0;var e;(function(n){n.MalformedUnicode="MALFORMED_UNICODE",n.MalformedHexadecimal="MALFORMED_HEXADECIMAL",n.CodePointLimit="CODE_POINT_LIMIT",n.OctalDeprecation="OCTAL_DEPRECATION",n.EndOfString="END_OF_STRING"})(e=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[e.MalformedUnicode,"malformed Unicode character escape sequence"],[e.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[e.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[e.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[e.EndOfString,"malformed escape sequence at end of string"]])})(wR),function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.unraw=t.errorMessages=t.ErrorType=void 0;const e=wR;Object.defineProperty(t,"ErrorType",{enumerable:!0,get:function(){return e.ErrorType}}),Object.defineProperty(t,"errorMessages",{enumerable:!0,get:function(){return e.errorMessages}});function n(p){return!p.match(/[^a-f0-9]/i)?parseInt(p,16):NaN}function r(p,f,g){const m=n(p);if(Number.isNaN(m)||g!==void 0&&g!==p.length)throw new SyntaxError(e.errorMessages.get(f));return m}function o(p){const f=r(p,e.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(f)}function i(p,f){const g=r(p,e.ErrorType.MalformedUnicode,4);if(f!==void 0){const m=r(f,e.ErrorType.MalformedUnicode,4);return String.fromCharCode(g,m)}return String.fromCharCode(g)}function s(p){return p.charAt(0)==="{"&&p.charAt(p.length-1)==="}"}function l(p){if(!s(p))throw new SyntaxError(e.errorMessages.get(e.ErrorType.MalformedUnicode));const f=p.slice(1,-1),g=r(f,e.ErrorType.MalformedUnicode);try{return String.fromCodePoint(g)}catch(m){throw m instanceof RangeError?new SyntaxError(e.errorMessages.get(e.ErrorType.CodePointLimit)):m}}function a(p,f=!1){if(f)throw new SyntaxError(e.errorMessages.get(e.ErrorType.OctalDeprecation));const g=parseInt(p,8);return String.fromCharCode(g)}const u=new Map([["b","\b"],["f","\f"],["n",` +`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function c(p){return u.get(p)||p}const d=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function h(p,f=!1){return p.replace(d,function(g,m,v,y,b,x,k,w,S){if(m!==void 0)return"\\";if(v!==void 0)return o(v);if(y!==void 0)return l(y);if(b!==void 0)return i(b,x);if(k!==void 0)return i(k);if(w==="0")return"\0";if(w!==void 0)return a(w,!f);if(S!==void 0)return c(S);throw new SyntaxError(e.errorMessages.get(e.ErrorType.EndOfString))})}t.unraw=h,t.default=h}(xR);const S9=io(xR),Li=t=>typeof t=="string",C9=t=>typeof t=="function",kR=new Map;function iy(t){return[...Array.isArray(t)?t:[t],"en"]}function ER(t,e,n){const r=iy(t);return Mf(()=>Of("date",r,n),()=>new Intl.DateTimeFormat(r,n)).format(Li(e)?new Date(e):e)}function sy(t,e,n){const r=iy(t);return Mf(()=>Of("number",r,n),()=>new Intl.NumberFormat(r,n)).format(e)}function SR(t,e,n,{offset:r=0,...o}){const i=iy(t),s=e?Mf(()=>Of("plural-ordinal",i),()=>new Intl.PluralRules(i,{type:"ordinal"})):Mf(()=>Of("plural-cardinal",i),()=>new Intl.PluralRules(i,{type:"cardinal"}));return o[n]??o[s.select(n-r)]??o.other}function Mf(t,e){const n=t();let r=kR.get(n);return r||(r=e(),kR.set(n,r)),r}function Of(t,e,n){const r=e.join("-");return`${t}-${r}-${JSON.stringify(n)}`}const CR=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,T9=(t,e,n={})=>{e=e||t;const r=i=>Li(i)?n[i]||{style:i}:i,o=(i,s)=>{const l=Object.keys(n).length?r("number"):{},a=sy(e,i,l);return s.replace("#",a)};return{plural:(i,s)=>{const{offset:l=0}=s,a=SR(e,!1,i,s);return o(i-l,a)},selectordinal:(i,s)=>{const{offset:l=0}=s,a=SR(e,!0,i,s);return o(i-l,a)},select:(i,s)=>s[i]??s.other,number:(i,s)=>sy(e,i,r(s)),date:(i,s)=>ER(e,i,r(s)),undefined:i=>i}};function A9(t,e,n){return(r,o={})=>{const i=T9(e,n,o),s=a=>Array.isArray(a)?a.reduce((u,c)=>{if(Li(c))return u+c;const[d,h,p]=c;let f={};p!=null&&!Li(p)?Object.keys(p).forEach(m=>{f[m]=s(p[m])}):f=p;const g=i[h](r[d],f);return g==null?u:u+g},""):a,l=s(t);return Li(l)&&CR.test(l)?S9(l.trim()):Li(l)?l.trim():l}}var _9=Object.defineProperty,R9=(t,e,n)=>e in t?_9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,M9=(t,e,n)=>(R9(t,typeof e!="symbol"?e+"":e,n),n);class O9{constructor(){M9(this,"_events",{})}on(e,n){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(n),()=>this.removeListener(e,n)}removeListener(e,n){if(!this._hasEvent(e))return;const r=this._events[e].indexOf(n);~r&&this._events[e].splice(r,1)}emit(e,...n){this._hasEvent(e)&&this._events[e].map(r=>r.apply(this,n))}_hasEvent(e){return Array.isArray(this._events[e])}}var I9=Object.defineProperty,L9=(t,e,n)=>e in t?I9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hc=(t,e,n)=>(L9(t,typeof e!="symbol"?e+"":e,n),n);class N9 extends O9{constructor(e){super(),hc(this,"_locale"),hc(this,"_locales"),hc(this,"_localeData"),hc(this,"_messages"),hc(this,"_missing"),hc(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}get localeData(){return this._localeData[this._locale]??{}}_loadLocaleData(e,n){this._localeData[e]==null?this._localeData[e]=n:Object.assign(this._localeData[e],n)}loadLocaleData(e,n){n!=null?this._loadLocaleData(e,n):Object.keys(e).forEach(r=>this._loadLocaleData(r,e[r])),this.emit("change")}_load(e,n){this._messages[e]==null?this._messages[e]=n:Object.assign(this._messages[e],n)}load(e,n){n!=null?this._load(e,n):Object.keys(e).forEach(r=>this._load(r,e[r])),this.emit("change")}loadAndActivate({locale:e,locales:n,messages:r}){this._locale=e,this._locales=n||void 0,this._messages[this._locale]=r,this.emit("change")}activate(e,n){this._locale=e,this._locales=n,this.emit("change")}_(e,n={},{message:r,formats:o}={}){Li(e)||(n=e.values||n,r=e.message,e=e.id);const i=!this.messages[e],s=this._missing;if(s&&i)return C9(s)?s(this._locale,e):s;i&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||r||e;return Li(l)&&CR.test(l)?JSON.parse(`"${l}"`):Li(l)?l:A9(l,this._locale,this._locales)(n,o)}date(e,n){return ER(this._locales||this._locale,e,n)}number(e,n){return sy(this._locales||this._locale,e,n)}}function $9(t={}){return new N9(t)}const If=$9();function se(t,e){return e?"other":t==1?"one":"other"}function Ni(t,e){return e?"other":t==0||t==1?"one":"other"}function kr(t,e){var n=String(t).split("."),r=!n[1];return e?"other":t==1&&r?"one":"other"}function rt(t,e){return"other"}function Is(t,e){return e?"other":t==1?"one":t==2?"two":"other"}const D9=rt,P9=se,z9=Ni;function F9(t,e){return e?"other":t>=0&&t<=1?"one":"other"}const B9=se;function H9(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-2);return e?"other":t==0?"zero":t==1?"one":t==2?"two":o>=3&&o<=10?"few":o>=11&&o<=99?"many":"other"}function U9(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-2);return e?"other":t==0?"zero":t==1?"one":t==2?"two":o>=3&&o<=10?"few":o>=11&&o<=99?"many":"other"}function W9(t,e){return e?t==1||t==5||t==7||t==8||t==9||t==10?"one":t==2||t==3?"two":t==4?"few":t==6?"many":"other":t>=0&&t<=1?"one":"other"}const V9=se,j9=kr;function G9(t,e){var n=String(t).split("."),r=n[0],o=r.slice(-1),i=r.slice(-2),s=r.slice(-3);return e?o==1||o==2||o==5||o==7||o==8||i==20||i==50||i==70||i==80?"one":o==3||o==4||s==100||s==200||s==300||s==400||s==500||s==600||s==700||s==800||s==900?"few":r==0||o==6||i==40||i==60||i==90?"many":"other":t==1?"one":"other"}function K9(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return e?(o==2||o==3)&&i!=12&&i!=13?"few":"other":o==1&&i!=11?"one":o>=2&&o<=4&&(i<12||i>14)?"few":r&&o==0||o>=5&&o<=9||i>=11&&i<=14?"many":"other"}const Y9=se,X9=se,q9=se,Z9=Ni,J9=rt;function Q9(t,e){return e?t==1||t==5||t==7||t==8||t==9||t==10?"one":t==2||t==3?"two":t==4?"few":t==6?"many":"other":t>=0&&t<=1?"one":"other"}const e8=rt;function t8(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),s=r&&n[0].slice(-6);return e?"other":o==1&&i!=11&&i!=71&&i!=91?"one":o==2&&i!=12&&i!=72&&i!=92?"two":(o==3||o==4||o==9)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":t!=0&&r&&s==0?"many":"other"}const n8=se;function r8(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),l=r.slice(-2),a=o.slice(-1),u=o.slice(-2);return e?"other":i&&s==1&&l!=11||a==1&&u!=11?"one":i&&s>=2&&s<=4&&(l<12||l>14)||a>=2&&a<=4&&(u<12||u>14)?"few":"other"}function o8(t,e){var n=String(t).split("."),r=!n[1];return e?t==1||t==3?"one":t==2?"two":t==4?"few":"other":t==1&&r?"one":"other"}const i8=se;function s8(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),l=o.slice(-1);return e?"other":i&&(r==1||r==2||r==3)||i&&s!=4&&s!=6&&s!=9||!i&&l!=4&&l!=6&&l!=9?"one":"other"}const a8=se,l8=se,c8=se;function u8(t,e){var n=String(t).split("."),r=n[0],o=!n[1];return e?"other":t==1&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"}function d8(t,e){return e?t==0||t==7||t==8||t==9?"zero":t==1?"one":t==2?"two":t==3||t==4?"few":t==5||t==6?"many":"other":t==0?"zero":t==1?"one":t==2?"two":t==3?"few":t==6?"many":"other"}function h8(t,e){var n=String(t).split("."),r=n[0],o=Number(n[0])==t;return e?"other":t==1||!o&&(r==0||r==1)?"one":"other"}const p8=kr;function f8(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-2),l=o.slice(-2);return e?"other":i&&s==1||l==1?"one":i&&s==2||l==2?"two":i&&(s==3||s==4)||l==3||l==4?"few":"other"}const g8=se,m8=rt,v8=se,y8=se;function b8(t,e){var n=String(t).split("."),r=!n[1],o=Number(n[0])==t,i=o&&n[0].slice(-1),s=o&&n[0].slice(-2);return e?i==1&&s!=11?"one":i==2&&s!=12?"two":i==3&&s!=13?"few":"other":t==1&&r?"one":"other"}const x8=se,w8=se,k8=kr,E8=se;function S8(t,e){return e?"other":t>=0&&t<=1?"one":"other"}function C8(t,e){return e?"other":t>=0&&t<2?"one":"other"}const T8=kr;function A8(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),l=o.slice(-1);return e?t==1?"one":"other":i&&(r==1||r==2||r==3)||i&&s!=4&&s!=6&&s!=9||!i&&l!=4&&l!=6&&l!=9?"one":"other"}const _8=se;function R8(t,e){return e?t==1?"one":"other":t>=0&&t<2?"one":"other"}const M8=se,O8=kr;function I8(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?t==1?"one":"other":t==1?"one":t==2?"two":r&&t>=3&&t<=6?"few":r&&t>=7&&t<=10?"many":"other"}function L8(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?t==1||t==11?"one":t==2||t==12?"two":t==3||t==13?"few":"other":t==1||t==11?"one":t==2||t==12?"two":r&&t>=3&&t<=10||r&&t>=13&&t<=19?"few":"other"}const N8=kr,$8=se;function D8(t,e){return e?t==1?"one":t==2||t==3?"two":t==4?"few":t==6?"many":"other":t>=0&&t<=1?"one":"other"}const P8=Ni;function z8(t,e){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-1),s=r.slice(-2);return e?"other":o&&i==1?"one":o&&i==2?"two":o&&(s==0||s==20||s==40||s==60||s==80)?"few":o?"other":"many"}const F8=se,B8=se;function H8(t,e){var n=String(t).split("."),r=n[0],o=!n[1],i=Number(n[0])==t,s=i&&n[0].slice(-1);return e?"other":t==1&&o?"one":r==2&&o?"two":o&&(t<0||t>10)&&i&&s==0?"many":"other"}function U8(t,e){return e?t==1?"one":t==2||t==3?"two":t==4?"few":t==6?"many":"other":t>=0&&t<=1?"one":"other"}function W8(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),l=r.slice(-2),a=o.slice(-1),u=o.slice(-2);return e?"other":i&&s==1&&l!=11||a==1&&u!=11?"one":i&&s>=2&&s<=4&&(l<12||l>14)||a>=2&&a<=4&&(u<12||u>14)?"few":"other"}function V8(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-2),l=o.slice(-2);return e?"other":i&&s==1||l==1?"one":i&&s==2||l==2?"two":i&&(s==3||s==4)||l==3||l==4?"few":"other"}function j8(t,e){return e?t==1||t==5?"one":"other":t==1?"one":"other"}function G8(t,e){return e?t==1?"one":"other":t>=0&&t<2?"one":"other"}const K8=kr,Y8=rt,X8=rt,q8=rt,Z8=kr;function J8(t,e){var n=String(t).split("."),r=n[0],o=Number(n[0])==t,i=r.slice(-1),s=r.slice(-2);return e?"other":o&&i==1&&s!=11||!o?"one":"other"}function Q8(t,e){var n=String(t).split("."),r=!n[1];return e?t==11||t==8||t==80||t==800?"many":"other":t==1&&r?"one":"other"}const e7=Is;function t7(t,e){var n=String(t).split("."),r=n[0],o=!n[1],i=Number(n[0])==t,s=i&&n[0].slice(-1);return e?"other":t==1&&o?"one":r==2&&o?"two":o&&(t<0||t>10)&&i&&s==0?"many":"other"}const n7=rt,r7=rt,o7=se,i7=kr,s7=se,a7=rt,l7=rt;function c7(t,e){var n=String(t).split("."),r=n[0],o=r.slice(-2);return e?r==1?"one":r==0||o>=2&&o<=20||o==40||o==60||o==80?"many":"other":t==1?"one":"other"}function u7(t,e){return e?"other":t>=0&&t<2?"one":"other"}const d7=se,h7=se,p7=rt,f7=rt;function g7(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-1);return e?o==6||o==9||r&&o==0&&t!=0?"many":"other":t==1?"one":"other"}const m7=se,v7=se,y7=rt;function b7(t,e){return e?"other":t>=0&&t<=1?"one":"other"}const x7=rt,w7=se,k7=se;function E7(t,e){return e?"other":t==0?"zero":t==1?"one":"other"}const S7=se;function C7(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-2),i=r&&n[0].slice(-3),s=r&&n[0].slice(-5),l=r&&n[0].slice(-6);return e?r&&t>=1&&t<=4||o>=1&&o<=4||o>=21&&o<=24||o>=41&&o<=44||o>=61&&o<=64||o>=81&&o<=84?"one":t==5||o==5?"many":"other":t==0?"zero":t==1?"one":o==2||o==22||o==42||o==62||o==82||r&&i==0&&(s>=1e3&&s<=2e4||s==4e4||s==6e4||s==8e4)||t!=0&&l==1e5?"two":o==3||o==23||o==43||o==63||o==83?"few":t!=1&&(o==1||o==21||o==41||o==61||o==81)?"many":"other"}const T7=se;function A7(t,e){var n=String(t).split("."),r=n[0];return e?"other":t==0?"zero":(r==0||r==1)&&t!=0?"one":"other"}const _7=se,R7=se,M7=rt,O7=Ni;function I7(t,e){return e&&t==1?"one":"other"}function L7(t,e){var n=String(t).split("."),r=n[1]||"",o=Number(n[0])==t,i=o&&n[0].slice(-1),s=o&&n[0].slice(-2);return e?"other":i==1&&(s<11||s>19)?"one":i>=2&&i<=9&&(s<11||s>19)?"few":r!=0?"many":"other"}function N7(t,e){var n=String(t).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==t,s=i&&n[0].slice(-1),l=i&&n[0].slice(-2),a=r.slice(-2),u=r.slice(-1);return e?"other":i&&s==0||l>=11&&l<=19||o==2&&a>=11&&a<=19?"zero":s==1&&l!=11||o==2&&u==1&&a!=11||o!=2&&u==1?"one":"other"}const $7=se,D7=Ni,P7=se;function z7(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),l=r.slice(-2),a=o.slice(-1),u=o.slice(-2);return e?s==1&&l!=11?"one":s==2&&l!=12?"two":(s==7||s==8)&&l!=17&&l!=18?"many":"other":i&&s==1&&l!=11||a==1&&u!=11?"one":"other"}const F7=se,B7=se;function H7(t,e){var n=String(t).split("."),r=!n[1],o=Number(n[0])==t,i=o&&n[0].slice(-2);return e?t==1?"one":"other":t==1&&r?"one":!r||t==0||i>=2&&i<=19?"few":"other"}function U7(t,e){return e?t==1?"one":t==2||t==3?"two":t==4?"few":"other":t==1?"one":"other"}function W7(t,e){return e&&t==1?"one":"other"}function V7(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-2);return e?"other":t==1?"one":t==0||o>=2&&o<=10?"few":o>=11&&o<=19?"many":"other"}const j7=rt,G7=se,K7=Is,Y7=se,X7=se;function q7(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?r&&t>=1&&t<=4?"one":"other":t==1?"one":"other"}const Z7=kr,J7=se,Q7=se,eW=se,tW=rt,nW=se,rW=Ni,oW=se,iW=se,sW=se;function aW(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?t==1||t==5||r&&t>=7&&t<=9?"one":t==2||t==3?"two":t==4?"few":t==6?"many":"other":t==1?"one":"other"}const lW=se,cW=rt,uW=Ni,dW=se;function hW(t,e){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-1),s=r.slice(-2);return e?"other":t==1&&o?"one":o&&i>=2&&i<=4&&(s<12||s>14)?"few":o&&r!=1&&(i==0||i==1)||o&&i>=5&&i<=9||o&&s>=12&&s<=14?"many":"other"}function pW(t,e){var n=String(t).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==t,s=i&&n[0].slice(-1),l=i&&n[0].slice(-2),a=r.slice(-2),u=r.slice(-1);return e?"other":i&&s==0||l>=11&&l<=19||o==2&&a>=11&&a<=19?"zero":s==1&&l!=11||o==2&&u==1&&a!=11||o!=2&&u==1?"one":"other"}const fW=se;function gW(t,e){var n=String(t).split("."),r=n[0];return e?"other":r==0||r==1?"one":"other"}const mW=kr,vW=se;function yW(t,e){var n=String(t).split("."),r=!n[1],o=Number(n[0])==t,i=o&&n[0].slice(-2);return e?t==1?"one":"other":t==1&&r?"one":!r||t==0||i>=2&&i<=19?"few":"other"}const bW=se,xW=rt;function wW(t,e){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-1),s=r.slice(-2);return e?"other":o&&i==1&&s!=11?"one":o&&i>=2&&i<=4&&(s<12||s>14)?"few":o&&i==0||o&&i>=5&&i<=9||o&&s>=11&&s<=14?"many":"other"}const kW=se,EW=rt,SW=se;function CW(t,e){var n=String(t).split("."),r=!n[1];return e?t==11||t==8||t==80||t==800?"many":"other":t==1&&r?"one":"other"}function TW(t,e){var n=String(t).split("."),r=!n[1];return e?t==11||t==8||t==80||t==800?"many":"other":t==1&&r?"one":"other"}const AW=se,_W=se,RW=Is,MW=se,OW=rt,IW=rt;function LW(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),l=r.slice(-2),a=o.slice(-1),u=o.slice(-2);return e?"other":i&&s==1&&l!=11||a==1&&u!=11?"one":i&&s>=2&&s<=4&&(l<12||l>14)||a>=2&&a<=4&&(u<12||u>14)?"few":"other"}function NW(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?"other":t>=0&&t<=1?"one":r&&t>=2&&t<=10?"few":"other"}function $W(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"";return e?"other":t==0||t==1||r==0&&o==1?"one":"other"}function DW(t,e){var n=String(t).split("."),r=n[0],o=!n[1];return e?"other":t==1&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"}function PW(t,e){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-2);return e?"other":o&&i==1?"one":o&&i==2?"two":o&&(i==3||i==4)||!o?"few":"other"}const zW=Is,FW=Is,BW=Is,HW=Is,UW=Is,WW=se,VW=se;function jW(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return e?t==1?"one":o==4&&i!=14?"many":"other":t==1?"one":"other"}function GW(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),l=r.slice(-2),a=o.slice(-1),u=o.slice(-2);return e?"other":i&&s==1&&l!=11||a==1&&u!=11?"one":i&&s>=2&&s<=4&&(l<12||l>14)||a>=2&&a<=4&&(u<12||u>14)?"few":"other"}const KW=se,YW=se,XW=se,qW=rt;function ZW(t,e){var n=String(t).split("."),r=!n[1],o=Number(n[0])==t,i=o&&n[0].slice(-1),s=o&&n[0].slice(-2);return e?(i==1||i==2)&&s!=11&&s!=12?"one":"other":t==1&&r?"one":"other"}const JW=kr,QW=se,eV=se,tV=se,nV=se,rV=rt,oV=Ni,iV=se;function sV(t,e){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-1);return e?o==6||o==9||t==10?"few":"other":t==1?"one":"other"}function aV(t,e){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),l=o.slice(-1);return e?t==1?"one":"other":i&&(r==1||r==2||r==3)||i&&s!=4&&s!=6&&s!=9||!i&&l!=4&&l!=6&&l!=9?"one":"other"}const lV=se,cV=rt,uV=se,dV=se;function hV(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?"other":t==0||t==1||r&&t>=11&&t<=99?"one":"other"}const pV=se;function fV(t,e){var n=String(t).split("."),r=n[0],o=!n[1],i=Number(n[0])==t,s=i&&n[0].slice(-1),l=i&&n[0].slice(-2),a=r.slice(-1),u=r.slice(-2);return e?s==3&&l!=13?"few":"other":o&&a==1&&u!=11?"one":o&&a>=2&&a<=4&&(u<12||u>14)?"few":o&&a==0||o&&a>=5&&a<=9||o&&u>=11&&u<=14?"many":"other"}const gV=kr,mV=se,vV=se;function yV(t,e){return e&&t==1?"one":"other"}const bV=se,xV=se,wV=Ni,kV=se,EV=rt,SV=se,CV=se,TV=kr,AV=rt,_V=rt,RV=rt;function MV(t,e){return e?"other":t>=0&&t<=1?"one":"other"}const OV=Object.freeze(Object.defineProperty({__proto__:null,_in:D9,af:P9,ak:z9,am:F9,an:B9,ar:H9,ars:U9,as:W9,asa:V9,ast:j9,az:G9,be:K9,bem:Y9,bez:X9,bg:q9,bho:Z9,bm:J9,bn:Q9,bo:e8,br:t8,brx:n8,bs:r8,ca:o8,ce:i8,ceb:s8,cgg:a8,chr:l8,ckb:c8,cs:u8,cy:d8,da:h8,de:p8,dsb:f8,dv:g8,dz:m8,ee:v8,el:y8,en:b8,eo:x8,es:w8,et:k8,eu:E8,fa:S8,ff:C8,fi:T8,fil:A8,fo:_8,fr:R8,fur:M8,fy:O8,ga:I8,gd:L8,gl:N8,gsw:$8,gu:D8,guw:P8,gv:z8,ha:F8,haw:B8,he:H8,hi:U8,hr:W8,hsb:V8,hu:j8,hy:G8,ia:K8,id:Y8,ig:X8,ii:q8,io:Z8,is:J8,it:Q8,iu:e7,iw:t7,ja:n7,jbo:r7,jgo:o7,ji:i7,jmc:s7,jv:a7,jw:l7,ka:c7,kab:u7,kaj:d7,kcg:h7,kde:p7,kea:f7,kk:g7,kkj:m7,kl:v7,km:y7,kn:b7,ko:x7,ks:w7,ksb:k7,ksh:E7,ku:S7,kw:C7,ky:T7,lag:A7,lb:_7,lg:R7,lkt:M7,ln:O7,lo:I7,lt:L7,lv:N7,mas:$7,mg:D7,mgo:P7,mk:z7,ml:F7,mn:B7,mo:H7,mr:U7,ms:W7,mt:V7,my:j7,nah:G7,naq:K7,nb:Y7,nd:X7,ne:q7,nl:Z7,nn:J7,nnh:Q7,no:eW,nqo:tW,nr:nW,nso:rW,ny:oW,nyn:iW,om:sW,or:aW,os:lW,osa:cW,pa:uW,pap:dW,pl:hW,prg:pW,ps:fW,pt:gW,pt_PT:mW,rm:vW,ro:yW,rof:bW,root:xW,ru:wW,rwk:kW,sah:EW,saq:SW,sc:CW,scn:TW,sd:AW,sdh:_W,se:RW,seh:MW,ses:OW,sg:IW,sh:LW,shi:NW,si:$W,sk:DW,sl:PW,sma:zW,smi:FW,smj:BW,smn:HW,sms:UW,sn:WW,so:VW,sq:jW,sr:GW,ss:KW,ssy:YW,st:XW,su:qW,sv:ZW,sw:JW,syr:QW,ta:eV,te:tV,teo:nV,th:rV,ti:oV,tig:iV,tk:sV,tl:aV,tn:lV,to:cV,tr:uV,ts:dV,tzm:hV,ug:pV,uk:fV,ur:gV,uz:mV,ve:vV,vi:yV,vo:bV,vun:xV,wa:wV,wae:kV,wo:EV,xh:SV,xog:CV,yi:TV,yo:AV,yue:_V,zh:RV,zu:MV},Symbol.toStringTag,{value:"Module"}));var IV=Object.defineProperty,LV=Object.getOwnPropertyDescriptor,NV=Object.getOwnPropertyNames,$V=Object.prototype.hasOwnProperty,TR=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of NV(e))!$V.call(t,o)&&o!==n&&IV(t,o,{get:()=>e[o],enumerable:!(r=LV(e,o))||r.enumerable});return t},DV=(t,e,n)=>(TR(t,e,"default"),n&&TR(n,e,"default")),PV=JSON.parse('{"extension.command.toggle-upper-case.label":[["case","select",{"upper":"Uppercase","lower":"Lowercase","capitalize":"Sentence case","smallCaps":"Small caps","other":"Text case"}]],"extension.table.column_count":[["count","plural",{"one":["#"," column"],"other":["#"," columns"]}]],"extension.table.row_count":[["count","plural",{"one":["#"," row"],"other":["#"," rows"]}]],"extension.command.toggle-columns.description":[["count","select",{"2":"Split the block into two columns","3":"Split the current block into three columns","4":"Split the current block into four columns","other":"Split the current block into multiple columns"}]],"extension.command.toggle-columns.label":[["count","select",{"2":"Two Column Block","3":"Three Column Block","4":"Four Column Block","other":"Multi Column Block"}]],"extension.command.set-text-direction.label":[["dir","select",{"ltr":"Left-To-Right","rtl":"Right-To-Left","other":"Reset Direction"}]],"extension.command.set-text-direction.description":[["dir","select",{"ltr":"Set the text direction from left to right","rtl":"Set the text direction from right to left","other":"Reset text direction"}]],"extension.command.toggle-heading.label":[["level","select",{"1":"Heading 1","2":"Heading 2","3":"Heading 3","4":"Heading 4","5":"Heading 5","6":"Heading 6","other":"Heading"}]],"extension.command.toggle-callout.description":[["type","select",{"info":"Create an information callout block","warning":"Create a warning callout block","error":"Create an error callout block","success":"Create a success callout block","other":"Create a callout block"}]],"extension.command.toggle-callout.label":[["type","select",{"info":"Information Callout","warning":"Warning Callout","error":"Error Callout","success":"Success Callout","other":"Callout"}]],"extension.command.toggle-code-block.description":"Add a code block","extension.command.add-annotation.label":"Add annotation","extension.command.toggle-blockquote.description":"Add blockquote formatting to the selected text","extension.command.toggle-bold.description":"Add bold formatting to the selected text","extension.command.toggle-code.description":"Add inline code formatting to the selected text","keyboard.shortcut.alt":"Alt","keyboard.shortcut.arrowDown":"Arrow Down","keyboard.shortcut.arrowLeft":"Arrow Left","keyboard.shortcut.arrowRight":"Arrow Right","keyboard.shortcut.arrowUp":"Arrow Up","keyboard.shortcut.backspace":"Backspace","ui.text-color.black":"Black","extension.command.toggle-blockquote.label":"Blockquote","ui.text-color.blue":"Blue","ui.text-color.blue.hue":["Blue ",["hue"]],"extension.command.toggle-bold.label":"Bold","extension.command.toggle-bullet-list.description":"Bulleted list","keyboard.shortcut.capsLock":"Caps Lock","extension.command.center-align.label":"Center align","extension.command.toggle-code.label":"Code","extension.command.toggle-code-block.label":"Codeblock","keyboard.shortcut.command":"Command","QcPNd6":"Image description","ogrUzJ":"Add a short description here.","yqdyzr":"Image","6/02F4":"Image source","X8H91v":"Image","zhQ7Zt":"Italic","ZL7E7l":"Underline","keyboard.shortcut.control":"Control","extension.command.convert-paragraph.description":"Convert current block into a paragraph block.","extension.command.convert-paragraph.label":"Convert Paragraph","extension.command.copy.label":"Copy","extension.command.copy.description":"Copy the selected text","extension.command.create-table.description":"Create a table with set number of rows and columns.","extension.command.create-table.label":"Create table","extension.command.cut.label":"Cut","extension.command.cut.description":"Cut the selected text","ui.text-color.cyan":"Cyan","ui.text-color.cyan.hue":["Cyan ",["hue"]],"extension.command.decrease-font-size.label":"Decrease","extension.command.decrease-indent.label":"Decrease indentation","extension.command.decrease-font-size.description":"Decrease the font size.","keyboard.shortcut.delete":"Delete","extension.command.insert-horizontal-rule.label":"Divider","keyboard.shortcut.end":"End","keyboard.shortcut.escape":"Enter","keyboard.shortcut.enter":"Enter","6PjrOF":"Add annotation","OTq5WC":"Center align","oeZ3ox":"Convert current block into a paragraph block.","m1khs+":"Convert Paragraph","w/1U+3":"Copy the selected text","kdodi0":"Copy","k0KR/u":"Create a table with set number of rows and columns.","zrwMyD":"Create table","D/nWxh":"Cut the selected text","jHPv5m":"Cut","5cNgRx":"Decrease the font size.","vyRNWx":"Decrease","Jgiol4":"Decrease indentation","1gJSHH":"Increase the font size","OQXJXz":"Increase","72TLhr":"Increase indentation","HFlfzJ":"Insert Emoji","RPq9fY":"Separate content with a diving horizontal line","OKQF+e":"Divider","zjYb9C":"Insert a new paragraph","4M4sXC":"Insert Paragraph","1Q+eVc":"Justify","ejWWtP":"Left align","wVqrpS":"Paste content into the editor","07v9aw":"Paste","zUYfou":"Redo the most recent action","9Nq9zr":"Redo","0uxaZe":"Remove annotation","iJWZAz":"Right align","g5WpPn":"Select all content within the editor","2+pZDT":"Select all","yChCR1":"Set text case","GMzAC/":"Set the font size for the selected text.","vzEyrv":"Font size","7VCkJ8":"Set the text color for the selected text.","qjWFaR":"Text color","LVWgFu":[["dir","select",{"ltr":"Set the text direction from left to right","rtl":"Set the text direction from right to left","other":"Reset text direction"}]],"WXwRy1":[["dir","select",{"ltr":"Left-To-Right","rtl":"Right-To-Left","other":"Reset Direction"}]],"G/o315":"Set the text highlight color for the selected text.","xtHg6d":"Text highlight","1p1W/p":"Add blockquote formatting to the selected text","6+rh6I":"Blockquote","0yB3LV":"Add bold formatting to the selected text","sFMo4Z":"Bold","SMKG/s":"Bulleted list","/BYCMi":[["type","select",{"info":"Create an information callout block","warning":"Create a warning callout block","error":"Create an error callout block","success":"Create a success callout block","other":"Create a callout block"}]],"V+3IBe":[["type","select",{"info":"Information Callout","warning":"Warning Callout","error":"Error Callout","success":"Success Callout","other":"Callout"}]],"hbIo4L":"Add a code block","7GkMcx":"Codeblock","2r4JYl":"Add inline code formatting to the selected text","Up8Tpe":"Code","ATHSPS":[["count","select",{"2":"Split the block into two columns","3":"Split the current block into three columns","4":"Split the current block into four columns","other":"Split the current block into multiple columns"}]],"7DC1VE":[["count","select",{"2":"Two Column Block","3":"Three Column Block","4":"Four Column Block","other":"Multi Column Block"}]],"hnrBeo":[["level","select",{"1":"Heading 1","2":"Heading 2","3":"Heading 3","4":"Heading 4","5":"Heading 5","6":"Heading 6","other":"Heading"}]],"NkZAcw":"Italicize the selected text","2fTW9e":"Italic","c759Ra":"Ordered list","uQwrZu":"Strikethrough the selected text","pT3qly":"Strikethrough","BHk+zu":"Subscript","18BVwM":"Superscript","tOIVCV":"Tasked list","4Janx3":"Underline the selected text","dCHt+D":"Underline","YYAprs":[["case","select",{"upper":"Uppercase","lower":"Lowercase","capitalize":"Sentence case","smallCaps":"Small caps","other":"Text case"}]],"tczyZL":"Show hidden whitespace characters in your editor.","0qAX23":"Toggle Whitespace","ezMADU":"Undo the most recent action","N3P7EC":"Undo","2nj/+s":"Update annotation","dWD7u4":[["count","plural",{"one":["#"," column"],"other":["#"," columns"]}]],"qXqgVT":[["count","plural",{"one":["#"," row"],"other":["#"," rows"]}]],"extension.command.set-font-size.label":"Font size","ui.text-color.grape":"Grape","ui.text-color.grape.hue":["Grape ",["hue"]],"ui.text-color.gray":"Gray","ui.text-color.gray.hue":["Gray ",["hue"]],"ui.text-color.green":"Green","ui.text-color.green.hue":["Green ",["hue"]],"keyboard.shortcut.home":"Home","extension.command.increase-font-size.label":"Increase","extension.command.increase-indent.label":"Increase indentation","extension.command.increase-font-size.description":"Increase the font size","ui.text-color.indigo":"Indigo","ui.text-color.indigo.hue":["Indigo ",["hue"]],"extension.command.insert-paragraph.description":"Insert a new paragraph","extension.command.insert-emoji.label":"Insert Emoji","extension.command.insert-paragraph.label":"Insert Paragraph","extension.command.toggle-italic.label":"Italic","extension.command.toggle-italic.description":"Italicize the selected text","extension.command.justify-align.label":"Justify","R7NlCw":"Alt","RbDiK5":"Arrow Down","Dgyd+E":"Arrow Left","8pdCk4":"Arrow Right","Gp/343":"Arrow Up","PFPV0A":"Backspace","0IRYvp":"Caps Lock","X7HX0D":"Command","zq0AdD":"Control","8SfToN":"Delete","Ys/uah":"End","3K5hww":"Enter","veQt1j":"Enter","ySv7i+":"Home","e6RUI1":"Page Down","EEJk31":"Page Up","7sbhAU":"Shift","Q4eplT":"Space","SUhVVC":"Tab","extension.command.left-align.label":"Left align","ui.text-color.lime":"Lime","ui.text-color.lime.hue":["Lime ",["hue"]],"react-components.mention-atom-component.zero-items":"No items available","ui.text-color.orange":"Orange","ui.text-color.orange.hue":["Orange ",["hue"]],"extension.command.toggle-ordered-list.label":"Ordered list","keyboard.shortcut.pageDown":"Page Down","keyboard.shortcut.pageUp":"Page Up","extension.command.paste.label":"Paste","extension.command.paste.description":"Paste content into the editor","ui.text-color.pink":"Pink","ui.text-color.pink.hue":["Pink ",["hue"]],"zvMfIA":"No items available","pEjhti":"Static Menu","ui.text-color.red":"Red","ui.text-color.red.hue":["Red ",["hue"]],"extension.command.redo.label":"Redo","extension.command.redo.description":"Redo the most recent action","extension.command.remove-annotation.label":"Remove annotation","extension.command.right-align.label":"Right align","extension.command.select-all.label":"Select all","extension.command.select-all.description":"Select all content within the editor","extension.command.insert-horizontal-rule.description":"Separate content with a diving horizontal line","extension.command.set-casing.label":"Set text case","extension.command.set-font-size.description":"Set the font size for the selected text.","extension.command.set-text-color.description":"Set the text color for the selected text.","extension.command.set-text-highlight.description":"Set the text highlight color for the selected text.","keyboard.shortcut.shift":"Shift","extension.command.toggle-whitespace.description":"Show hidden whitespace characters in your editor.","keyboard.shortcut.space":"Space","extension.command.toggle-strike.label":"Strikethrough","extension.command.toggle-strike.description":"Strikethrough the selected text","extension.command.toggle-subscript.label":"Subscript","extension.command.toggle-superscript.label":"Superscript","keyboard.shortcut.tab":"Tab","extension.command.toggle-task-list.description":"Tasked list","ui.text-color.teal":"Teal","ui.text-color.teal.hue":["Teal ",["hue"]],"extension.command.set-text-color.label":"Text color","extension.command.set-text-highlight.label":"Text highlight","extension.command.toggle-whitespace.label":"Toggle Whitespace","ui.text-color.transparent":"Transparent","slrB1c":"Black","6QML30":"Blue","xw+keN":["Blue ",["hue"]],"38RHqP":"Cyan","D89yPf":["Cyan ",["hue"]],"VjBLnd":"Grape","Rp40yv":["Grape ",["hue"]],"5Dm9D1":"Gray","HGjXjC":["Gray ",["hue"]],"b9fz+n":"Green","18jo3M":["Green ",["hue"]],"CFzqCV":"Indigo","aVlDku":["Indigo ",["hue"]],"04PfLc":"Lime","KRTK6Y":["Lime ",["hue"]],"pSnXFd":"Orange","ve/MJZ":["Orange ",["hue"]],"OvCgDa":"Pink","l7NqyT":["Pink ",["hue"]],"IT9k0j":"Red","AdyJ7/":["Red ",["hue"]],"3D2UWc":"Teal","Dcq0Y1":["Teal ",["hue"]],"bsi2ik":"Transparent","Tj3PRR":"Violet","xxMH5N":["Violet ",["hue"]],"Rum0ah":"White","4gaw/Q":"Yellow","hhauc3":["Yellow ",["hue"]],"extension.command.toggle-underline.label":"Underline","extension.command.toggle-underline.description":"Underline the selected text","extension.command.undo.label":"Undo","extension.command.undo.description":"Undo the most recent action","extension.command.update-annotation.label":"Update annotation","ui.text-color.violet":"Violet","ui.text-color.violet.hue":["Violet ",["hue"]],"ui.text-color.white":"White","ui.text-color.yellow":"Yellow","ui.text-color.yellow.hue":["Yellow ",["hue"]]}'),AR={};DV(AR,OV),If.loadLocaleData("en",{plurals:AR.en}),If.load("en",PV),If.activate("en");var zV=Object.defineProperty,FV=Object.getOwnPropertyDescriptor,ay=(t,e,n,r)=>{for(var o=r>1?void 0:r?FV(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&zV(e,n,o),o},pc=class extends Mn{get name(){return"doc"}createNodeSpec(t,e){const{docAttributes:n,content:r}=this.options,o=ye();if(rs(n))for(const[i,s]of nn(n))o[i]={default:s};else for(const i of n)o[i]={default:null};return{attrs:o,content:r,...e}}setDocAttributes(t){return({tr:e,dispatch:n})=>{if(n){for(const[r,o]of Object.entries(t))e.step(new Td(r,o));n(e)}return!0}}isDefaultDocNode({state:t=this.store.getState(),options:e}={}){return s0(t.doc,e)}};ay([le()],pc.prototype,"setDocAttributes",1),ay([nt()],pc.prototype,"isDefaultDocNode",1),pc=ay([Ne({defaultOptions:{content:"block+",docAttributes:[]},defaultPriority:tt.Medium,staticKeys:["content","docAttributes"],disableExtraAttributes:!0})],pc);var _R="SetDocAttribute",RR="RevertSetDocAttribute",Td=class extends rn{constructor(t,e,n=_R){super(),this.stepType=n,this.key=t,this.value=e}static fromJSON(t,e){return new Td(e.key,e.value,e.stepType)}apply(t){this.previous=t.attrs[this.key];const e={...t.attrs,[this.key]:this.value};return jt.ok(t.type.create(e,t.content,t.marks))}invert(){return new Td(this.key,this.previous,RR)}map(){return this}toJSON(){return{stepType:this.stepType,key:this.key,value:this.value}}};try{rn.jsonID(_R,Td),rn.jsonID(RR,Td)}catch(t){if(!t.message.startsWith("Duplicate use of step JSON ID"))throw t}var BV=Object.defineProperty,HV=Object.getOwnPropertyDescriptor,MR=(t,e,n,r)=>{for(var o=r>1?void 0:r?HV(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&BV(e,n,o),o};function UV(t,e,n,r){const o=t.docView.posFromDOM(e,n,r);return o===null||o<0?null:o}function WV(t,e){const n=e.target;if(n){const r=UV(t,n,0);if(r!==null){const o=t.state.doc.resolve(r),i=o.node().isLeaf?0:1,s=o.start()-i;return{pos:r,inside:s}}}return t.posAtCoords({left:e.clientX,top:e.clientY})??void 0}var Lf=class extends ct{constructor(){super(...arguments),this.mousedown=!1,this.mouseover=!1,this.createMouseEventHandler=t=>(e,n)=>{const r=n,o=WV(e,r);if(!o)return!1;const i=[],s=[],{inside:l,pos:a}=o;if(l===-1)return!1;const u=e.state.doc.resolve(a),c=u.depth+1;for(const d of s1(c,1))i.push({node:d>u.depth&&u.nodeAfter?u.nodeAfter:u.node(d),pos:u.before(d)});for(const{type:d}of u.marksAcross(u)??[]){const h=Ti(u,d);h&&s.push(h)}return t(r,{view:e,nodes:i,marks:s,getMark:d=>{const h=ke(d)?e.state.schema.marks[d]:d;return be(h,{code:re.EXTENSION,message:`The mark ${d} being checked does not exist within the editor schema.`}),s.find(p=>p.mark.type===h)},getNode:d=>{var h;const p=ke(d)?e.state.schema.nodes[d]:d;be(p,{code:re.EXTENSION,message:"The node being checked does not exist"});const f=i.find(({node:g})=>g.type===p);if(f)return{...f,isRoot:!!((h=i[0])!=null&&h.node.eq(f.node))}}})}}get name(){return"events"}onView(){var t,e;if(!((t=this.store.managerSettings.exclude)!=null&&t.clickHandler))for(const n of this.store.extensions){if(!n.createEventHandlers||(e=n.options.exclude)!=null&&e.clickHandler)continue;const r=n.createEventHandlers();for(const[o,i]of nn(r))this.addHandler(o,i)}}createPlugin(){const t=new WeakMap,e=(n,r,o,i,s,l,a,u)=>{const c=this.store.currentState,{schema:d,doc:h}=c,p=h.resolve(i),f=t.has(a),g=VV({$pos:p,handled:f,view:o,state:c});let m=!1;f||(m=n(a,g)||m);const v={...g,pos:i,direct:u,nodeWithPosition:{node:s,pos:l},getNode:y=>{const b=ke(y)?d.nodes[y]:y;return be(b,{code:re.EXTENSION,message:"The node being checked does not exist"}),b===s.type?{node:s,pos:l}:void 0}};return t.set(a,!0),r(a,v)||m};return{props:{handleKeyPress:(n,r)=>this.options.keypress(r)||!1,handleKeyDown:(n,r)=>this.options.keydown(r)||!1,handleTextInput:(n,r,o,i)=>this.options.textInput({from:r,to:o,text:i})||!1,handleClickOn:(n,r,o,i,s,l)=>e(this.options.clickMark,this.options.click,n,r,o,i,s,l),handleDoubleClickOn:(n,r,o,i,s,l)=>e(this.options.doubleClickMark,this.options.doubleClick,n,r,o,i,s,l),handleTripleClickOn:(n,r,o,i,s,l)=>e(this.options.tripleClickMark,this.options.tripleClick,n,r,o,i,s,l),handleDOMEvents:{focus:(n,r)=>this.options.focus(r)||!1,blur:(n,r)=>this.options.blur(r)||!1,mousedown:(n,r)=>(this.startMouseover(),this.options.mousedown(r)||!1),mouseup:(n,r)=>(this.endMouseover(),this.options.mouseup(r)||!1),mouseleave:(n,r)=>(this.mouseover=!1,this.options.mouseleave(r)||!1),mouseenter:(n,r)=>(this.mouseover=!0,this.options.mouseenter(r)||!1),keyup:(n,r)=>this.options.keyup(r)||!1,mouseout:this.createMouseEventHandler((n,r)=>{const o={...r,hovering:!1};return this.options.hover(n,o)||!1}),mouseover:this.createMouseEventHandler((n,r)=>{const o={...r,hovering:!0};return this.options.hover(n,o)||!1}),contextmenu:this.createMouseEventHandler((n,r)=>this.options.contextmenu(n,r)||!1),scroll:(n,r)=>this.options.scroll(r)||!1,copy:(n,r)=>this.options.copy(r)||!1,cut:(n,r)=>this.options.cut(r)||!1,paste:(n,r)=>this.options.paste(r)||!1}},view:n=>{let r=n.editable;const o=this.options;return{update(i){const s=i.editable;s!==r&&(o.editable(s),r=s)}}}}}isInteracting(){return this.mousedown&&this.mouseover}startMouseover(){this.mouseover=!0,!this.mousedown&&(this.mousedown=!0,this.store.document.documentElement.addEventListener("mouseup",()=>{this.endMouseover()},{once:!0}))}endMouseover(){this.mousedown&&(this.mousedown=!1,this.store.commands.emptyUpdate())}};MR([nt()],Lf.prototype,"isInteracting",1),Lf=MR([Ne({handlerKeys:["blur","focus","mousedown","mouseup","mouseenter","mouseleave","textInput","keypress","keyup","keydown","click","clickMark","doubleClick","doubleClickMark","tripleClick","tripleClickMark","contextmenu","hover","scroll","copy","cut","paste","editable"],handlerKeyOptions:{blur:{earlyReturnValue:!0},focus:{earlyReturnValue:!0},mousedown:{earlyReturnValue:!0},mouseleave:{earlyReturnValue:!0},mouseup:{earlyReturnValue:!0},click:{earlyReturnValue:!0},doubleClick:{earlyReturnValue:!0},tripleClick:{earlyReturnValue:!0},hover:{earlyReturnValue:!0},contextmenu:{earlyReturnValue:!0},scroll:{earlyReturnValue:!0},copy:{earlyReturnValue:!0},cut:{earlyReturnValue:!0},paste:{earlyReturnValue:!0}},defaultPriority:tt.High})],Lf);function VV(t){const{handled:e,view:n,$pos:r,state:o}=t,i={getMark:zS,markRanges:[],view:n,state:o};if(e)return i;for(const{type:s}of r.marksAcross(r)??[]){const l=Ti(r,s);l&&i.markRanges.push(l)}return i.getMark=s=>{const l=ke(s)?o.schema.marks[s]:s;return be(l,{code:re.EXTENSION,message:`The mark ${s} being checked does not exist within the editor schema.`}),i.markRanges.find(a=>a.mark.type===l)},i}class Bt extends He{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return Bt.valid(r)?new Bt(r):He.near(r)}content(){return ae.empty}eq(e){return e instanceof Bt&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Bt(e.resolve(n.pos))}getBookmark(){return new ly(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!jV(e)||!GV(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&Bt.valid(e))return e;let o=e.pos,i=null;for(let s=e.depth;;s--){let l=e.node(s);if(n>0?e.indexAfter(s)0){i=l.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;o+=n;let a=e.doc.resolve(o);if(Bt.valid(a))return a}for(;;){let s=n>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!_e.isSelectable(i)){e=e.doc.resolve(o+i.nodeSize*n),r=!1;continue e}break}i=s,o+=n;let l=e.doc.resolve(o);if(Bt.valid(l))return l}return null}}}Bt.prototype.visible=!1,Bt.findFrom=Bt.findGapCursorFrom,He.jsonID("gapcursor",Bt);class ly{constructor(e){this.pos=e}map(e){return new ly(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return Bt.valid(n)?new Bt(n):He.near(n)}}function jV(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function GV(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function KV(){return new qo({props:{decorations:ZV,createSelectionBetween(t,e,n){return e.pos==n.pos&&Bt.valid(n)?new Bt(n):null},handleClick:XV,handleKeyDown:YV,handleDOMEvents:{beforeinput:qV}}})}const YV=g0({ArrowLeft:Nf("horiz",-1),ArrowRight:Nf("horiz",1),ArrowUp:Nf("vert",-1),ArrowDown:Nf("vert",1)});function Nf(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,o,i){let s=r.selection,l=e>0?s.$to:s.$from,a=s.empty;if(s instanceof Oe){if(!i.endOfTextblock(n)||l.depth==0)return!1;a=!1,l=r.doc.resolve(e>0?l.after():l.before())}let u=Bt.findGapCursorFrom(l,e,a);return u?(o&&o(r.tr.setSelection(new Bt(u))),!0):!1}}function XV(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!Bt.valid(r))return!1;let o=t.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&_e.isSelectable(t.state.doc.nodeAt(o.inside))?!1:(t.dispatch(t.state.tr.setSelection(new Bt(r))),!0)}function qV(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof Bt))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let o=J.empty;for(let s=r.length-1;s>=0;s--)o=J.from(r[s].createAndFill(null,o));let i=t.state.tr.replace(n.pos,n.pos,new ae(o,0,0));return i.setSelection(Oe.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function ZV(t){if(!(t.selection instanceof Bt))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Ue.create(t.doc,[mt.widget(t.selection.head,e,{key:"gapcursor"})])}var JV=Object.defineProperty,QV=Object.getOwnPropertyDescriptor,ej=(t,e,n,r)=>{for(var o=r>1?void 0:r?QV(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&JV(e,n,o),o},cy=class extends ct{get name(){return"gapCursor"}createExternalPlugins(){return[KV()]}};cy=ej([Ne({})],cy);var $f=200,mn=function(){};mn.prototype.append=function(e){return e.length?(e=mn.from(e),!this.length&&e||e.length<$f&&this.leafAppend(e)||this.length<$f&&e.leafPrepend(this)||this.appendInner(e)):this},mn.prototype.prepend=function(e){return e.length?mn.from(e).append(this):this},mn.prototype.appendInner=function(e){return new tj(this,e)},mn.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?mn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))},mn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},mn.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)},mn.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(i,s){return o.push(e(i,s))},n,r),o},mn.from=function(e){return e instanceof mn?e:e&&e.length?new OR(e):mn.empty};var OR=function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(o,i){return o==0&&i==this.length?this:new e(this.values.slice(o,i))},e.prototype.getInner=function(o){return this.values[o]},e.prototype.forEachInner=function(o,i,s,l){for(var a=i;a=s;a--)if(o(this.values[a],l+a)===!1)return!1},e.prototype.leafAppend=function(o){if(this.length+o.length<=$f)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=$f)return new e(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(mn);mn.empty=new OR([]);var tj=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return rl&&this.right.forEachInner(r,Math.max(o-l,0),Math.min(this.length,i)-l,s+l)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,i,s){var l=this.left.length;if(o>l&&this.right.forEachInvertedInner(r,o-l,Math.max(i,l)-l,s+l)===!1||i=i?this.right.slice(r-i,o-i):this.left.slice(r,i).append(this.right.slice(0,o-i))},e.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new e(this.left,o)},e.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new e(o,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(mn);const nj=500;class Do{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,i;n&&(o=this.remapping(r,this.items.length),i=o.maps.length);let s=e.tr,l,a,u=[],c=[];return this.items.forEach((d,h)=>{if(!d.step){o||(o=this.remapping(r,h+1),i=o.maps.length),i--,c.push(d);return}if(o){c.push(new ri(d.map));let p=d.step.map(o.slice(i)),f;p&&s.maybeStep(p).doc&&(f=s.mapping.maps[s.mapping.maps.length-1],u.push(new ri(f,void 0,void 0,u.length+c.length))),i--,f&&o.appendMap(f,i)}else s.maybeStep(d.step);if(d.selection)return l=o?d.selection.map(o.slice(i)):d.selection,a=new Do(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:a,transform:s,selection:l}}addTransform(e,n,r,o){let i=[],s=this.eventCount,l=this.items,a=!o&&l.length?l.get(l.length-1):null;for(let c=0;coj&&(l=rj(l,u),s-=u),new Do(l.append(i),s)}remapping(e,n){let r=new Iu;return this.items.forEach((o,i)=>{let s=o.mirrorOffset!=null&&i-o.mirrorOffset>=e?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new Do(this.items.append(e.map(n=>new ri(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),i=e.mapping,s=e.steps.length,l=this.eventCount;this.items.forEach(h=>{h.selection&&l--},o);let a=n;this.items.forEach(h=>{let p=i.getMirror(--a);if(p==null)return;s=Math.min(s,p);let f=i.maps[p];if(h.step){let g=e.steps[p].invert(e.docs[p]),m=h.selection&&h.selection.map(i.slice(a+1,p));m&&l++,r.push(new ri(f,g,m))}else r.push(new ri(f))},o);let u=[];for(let h=n;hnj&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,o=[],i=0;return this.items.forEach((s,l)=>{if(l>=e)o.push(s),s.selection&&i++;else if(s.step){let a=s.step.map(n.slice(r)),u=a&&a.getMap();if(r--,u&&n.appendMap(u,r),a){let c=s.selection&&s.selection.map(n.slice(r));c&&i++;let d=new ri(u.invert(),a,c),h,p=o.length-1;(h=o.length&&o[p].merge(d))?o[p]=h:o.push(d)}}else s.map&&r--},this.items.length,0),new Do(mn.from(o.reverse()),i)}}Do.empty=new Do(mn.empty,0);function rj(t,e){let n;return t.forEach((r,o)=>{if(r.selection&&e--==0)return n=o,!1}),t.slice(n)}class ri{constructor(e,n,r,o){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=o}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new ri(n.getMap().invert(),n,this.selection)}}}class Ls{constructor(e,n,r,o,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=i}}const oj=20;function ij(t,e,n,r){let o=n.getMeta($i),i;if(o)return o.historyState;n.getMeta(lj)&&(t=new Ls(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta($i))return s.getMeta($i).redo?new Ls(t.done.addTransform(n,void 0,r,Df(e)),t.undone,IR(n.mapping.maps),t.prevTime,t.prevComposition):new Ls(t.done,t.undone.addTransform(n,void 0,r,Df(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let l=n.getMeta("composition"),a=t.prevTime==0||!s&&t.prevComposition!=l&&(t.prevTime<(n.time||0)-r.newGroupDelay||!sj(n,t.prevRanges)),u=s?uy(t.prevRanges,n.mapping):IR(n.mapping.maps);return new Ls(t.done.addTransform(n,a?e.selection.getBookmark():void 0,r,Df(e)),Do.empty,u,n.time,l??t.prevComposition)}else return(i=n.getMeta("rebased"))?new Ls(t.done.rebased(n,i),t.undone.rebased(n,i),uy(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Ls(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),uy(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function sj(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,o)=>{for(let i=0;i=e[i]&&(n=!0)}),n}function IR(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,o,i,s)=>e.push(i,s));return e}function uy(t,e){if(!t)return null;let n=[];for(let r=0;r{let o=$i.getState(n);if(!o||(t?o.undone:o.done).eventCount==0)return!1;if(r){let i=aj(o,n,t);i&&r(e?i.scrollIntoView():i)}return!0}}const Pf=NR(!1,!0),Ad=NR(!0,!0);function hy(t){let e=$i.getState(t);return e?e.done.eventCount:0}function uj(t){let e=$i.getState(t);return e?e.undone.eventCount:0}var dj=Object.defineProperty,hj=Object.getOwnPropertyDescriptor,za=(t,e,n,r)=>{for(var o=r>1?void 0:r?hj(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&dj(e,n,o),o},oi=class extends ct{constructor(){super(...arguments),this.wrapMethod=(t,e)=>({state:n,dispatch:r,view:o})=>{const{getState:i,getDispatch:s}=this.options,l=Xe(i)?i():n,a=Xe(s)&&r?s():r,u=t(l,a,o);return e==null||e(u),u}}get name(){return"history"}createKeymap(){return{"Mod-y":xr.isMac?()=>!1:this.wrapMethod(Ad,this.options.onRedo),"Mod-z":this.wrapMethod(Pf,this.options.onUndo),"Shift-Mod-z":this.wrapMethod(Ad,this.options.onRedo)}}undoShortcut(t){return this.wrapMethod(Pf,this.options.onUndo)(t)}redoShortcut(t){return this.wrapMethod(Ad,this.options.onRedo)(t)}createExternalPlugins(){const{depth:t,newGroupDelay:e}=this.options;return[cj({depth:t,newGroupDelay:e})]}undo(){return kA(this.wrapMethod(Pf,this.options.onUndo))}redo(){return kA(this.wrapMethod(Ad,this.options.onRedo))}undoDepth(t=this.store.getState()){return hy(t)}redoDepth(t=this.store.getState()){return uj(t)}};za([Zt({shortcut:oe.Undo,command:"undo"})],oi.prototype,"undoShortcut",1),za([Zt({shortcut:oe.Redo,command:"redo"})],oi.prototype,"redoShortcut",1),za([le({disableChaining:!0,description:({t})=>t(Bp.UNDO_DESCRIPTION),label:({t})=>t(Bp.UNDO_LABEL),icon:"arrowGoBackFill"})],oi.prototype,"undo",1),za([le({disableChaining:!0,description:({t})=>t(Bp.REDO_DESCRIPTION),label:({t})=>t(Bp.REDO_LABEL),icon:"arrowGoForwardFill"})],oi.prototype,"redo",1),za([nt()],oi.prototype,"undoDepth",1),za([nt()],oi.prototype,"redoDepth",1),oi=za([Ne({defaultOptions:{depth:100,newGroupDelay:500,getDispatch:void 0,getState:void 0},staticKeys:["depth","newGroupDelay"],handlerKeys:["onUndo","onRedo"]})],oi);var pj=Object.defineProperty,fj=Object.getOwnPropertyDescriptor,zf=(t,e,n,r)=>{for(var o=r>1?void 0:r?fj(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&pj(e,n,o),o},gj={icon:"paragraph",label:({t})=>t(Hp.INSERT_LABEL),description:({t})=>t(Hp.INSERT_DESCRIPTION)},mj={icon:"paragraph",label:({t})=>t(Hp.CONVERT_LABEL),description:({t})=>t(Hp.CONVERT_DESCRIPTION)},Fa=class extends Mn{get name(){return"paragraph"}createTags(){return[we.LastNodeCompatible,we.TextBlock,we.Block,we.FormattingNode]}createNodeSpec(t,e){return{content:"inline*",draggable:!1,...e,attrs:{...t.defaults()},parseDOM:[{tag:"p",getAttrs:n=>({...t.parse(n)})},...e.parseDOM??[]],toDOM:n=>["p",t.dom(n),0]}}convertParagraph(t={}){const{attrs:e,selection:n,preserveAttrs:r}=t;return this.store.commands.setBlockNodeType.original(this.type,e,n,r)}insertParagraph(t,e={}){const{selection:n,attrs:r}=e;return this.store.commands.insertNode.original(this.type,{content:t,selection:n,attrs:r})}shortcut(t){return this.convertParagraph()(t)}};zf([le(mj)],Fa.prototype,"convertParagraph",1),zf([le(gj)],Fa.prototype,"insertParagraph",1),zf([Zt({shortcut:oe.Paragraph,command:"convertParagraph"})],Fa.prototype,"shortcut",1),Fa=zf([Ne({defaultPriority:tt.Medium})],Fa);var vj=Object.defineProperty,yj=Object.getOwnPropertyDescriptor,bj=(t,e,n,r)=>{for(var o=r>1?void 0:r?yj(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&vj(e,n,o),o},py=class extends Mn{get name(){return"text"}createTags(){return[we.InlineNode]}createNodeSpec(){return{}}};py=bj([Ne({disableExtraAttributes:!0,defaultPriority:tt.Medium})],py);var xj={...pc.defaultOptions,...Fa.defaultOptions,...oi.defaultOptions,excludeExtensions:[]};function wj(t={}){t={...xj,...t};const{content:e,depth:n,getDispatch:r,getState:o,newGroupDelay:i,excludeExtensions:s}=t,l={};for(const u of s??[])l[u]=!0;const a=[];if(!l.history){const u=new oi({depth:n,getDispatch:r,getState:o,newGroupDelay:i});a.push(u)}return l.doc||a.push(new pc({content:e})),l.text||a.push(new py),l.paragraph||a.push(new Fa),l.positioner||a.push(new dc),l.gapCursor||a.push(new cy),l.events||a.push(new Lf),a}var kj=Object.defineProperty,Ej=Object.getOwnPropertyDescriptor,Sj=(t,e,n,r)=>{for(var o=r>1?void 0:r?Ej(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&kj(e,n,o),o},Ba=class extends ct{get name(){return"placeholder"}createAttributes(){return{"aria-placeholder":this.options.placeholder}}createPlugin(){return{state:{init:(t,e)=>({...this.options,empty:s0(e.doc,{ignoreAttributes:!0})}),apply:(t,e,n,r)=>Cj({pluginState:e,tr:t,extension:this,state:r})},props:{decorations:t=>Tj({state:t,extension:this})}}}onSetOptions(t){const{changes:e}=t;e.placeholder.changed&&this.store.phase>=vr.EditorView&&this.store.updateAttributes()}};Ba=Sj([Ne({defaultOptions:{emptyNodeClass:BU.IS_EMPTY,placeholder:""}})],Ba);function Cj(t){const{pluginState:e,extension:n,tr:r,state:o}=t;return r.docChanged?{...n.options,empty:s0(o.doc)}:e}function Tj(t){const{extension:e,state:n}=t,{empty:r}=e.pluginKey.getState(n),{emptyNodeClass:o,placeholder:i}=e.options;if(!r)return null;const s=[];return n.doc.descendants((l,a)=>{const u=mt.node(a,a+l.nodeSize,{class:o,"data-placeholder":i});s.push(u)}),Ue.create(n.doc,s)}var $R={exports:{}},Ur={},DR={exports:{}},PR={};/** * @license React * scheduler.production.min.js * @@ -90,7 +91,7 @@ If you are using Node.js, you can install JSDOM and Remirror will try to use it * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(t){function e(L,$){var P=L.length;L.push($);e:for(;0>>1,H=L[F];if(0>>1;Fo(U,P))Go(Y,U)?(L[F]=Y,L[G]=P,F=G):(L[F]=U,L[B]=P,F=B);else if(Go(Y,P))L[F]=Y,L[G]=P,F=G;else break e}}return $}function o(L,$){var P=L.sortIndex-$.sortIndex;return P!==0?P:L.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,d=null,h=3,p=!1,f=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(L){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=L)r(u),$.sortIndex=$.expirationTime,e(a,$);else break;$=n(u)}}function x(L){if(g=!1,b(L),!f)if(n(a)!==null)f=!0,I(k);else{var $=n(u);$!==null&&N(x,$.startTime-L)}}function k(L,$){f=!1,g&&(g=!1,v(A),A=-1),p=!0;var P=h;try{for(b($),d=n(a);d!==null&&(!(d.expirationTime>$)||L&&!R());){var F=d.callback;if(typeof F=="function"){d.callback=null,h=d.priorityLevel;var H=F(d.expirationTime<=$);$=t.unstable_now(),typeof H=="function"?d.callback=H:d===n(a)&&r(a),b($)}else r(a);d=n(a)}if(d!==null)var W=!0;else{var B=n(u);B!==null&&N(x,B.startTime-$),W=!1}return W}finally{d=null,h=P,p=!1}}var w=!1,S=null,A=-1,C=5,O=-1;function R(){return!(t.unstable_now()-OL||125F?(L.sortIndex=P,e(u,L),n(a)===null&&L===n(u)&&(g?(v(A),A=-1):g=!0,N(x,P-F))):(L.sortIndex=H,e(a,L),f||p||(f=!0,I(k))),L},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(L){var $=h;return function(){var P=h;h=$;try{return L.apply(this,arguments)}finally{h=P}}}})(ER),kR.exports=ER;var sj=kR.exports;/** + */(function(t){function e(L,$){var P=L.length;L.push($);e:for(;0>>1,H=L[F];if(0>>1;Fo(U,P))Go(Y,U)?(L[F]=Y,L[G]=P,F=G):(L[F]=U,L[B]=P,F=B);else if(Go(Y,P))L[F]=Y,L[G]=P,F=G;else break e}}return $}function o(L,$){var P=L.sortIndex-$.sortIndex;return P!==0?P:L.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,d=null,h=3,p=!1,f=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(L){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=L)r(u),$.sortIndex=$.expirationTime,e(a,$);else break;$=n(u)}}function x(L){if(g=!1,b(L),!f)if(n(a)!==null)f=!0,I(k);else{var $=n(u);$!==null&&N(x,$.startTime-L)}}function k(L,$){f=!1,g&&(g=!1,v(T),T=-1),p=!0;var P=h;try{for(b($),d=n(a);d!==null&&(!(d.expirationTime>$)||L&&!R());){var F=d.callback;if(typeof F=="function"){d.callback=null,h=d.priorityLevel;var H=F(d.expirationTime<=$);$=t.unstable_now(),typeof H=="function"?d.callback=H:d===n(a)&&r(a),b($)}else r(a);d=n(a)}if(d!==null)var W=!0;else{var B=n(u);B!==null&&N(x,B.startTime-$),W=!1}return W}finally{d=null,h=P,p=!1}}var w=!1,S=null,T=-1,C=5,O=-1;function R(){return!(t.unstable_now()-OL||125F?(L.sortIndex=P,e(u,L),n(a)===null&&L===n(u)&&(g?(v(T),T=-1):g=!0,N(x,P-F))):(L.sortIndex=H,e(a,L),f||p||(f=!0,I(k))),L},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(L){var $=h;return function(){var P=h;h=$;try{return L.apply(this,arguments)}finally{h=P}}}})(PR),DR.exports=PR;var Aj=DR.exports;/** * @license React * react-dom.production.min.js * @@ -98,14 +99,14 @@ If you are using Node.js, you can install JSDOM and Remirror will try to use it * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var SR=D,Ur=sj;function te(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uy=Object.prototype.hasOwnProperty,aj=/^[: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]*$/,TR={},AR={};function lj(t){return uy.call(AR,t)?!0:uy.call(TR,t)?!1:aj.test(t)?AR[t]=!0:(TR[t]=!0,!1)}function cj(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function uj(t,e,n,r){if(e===null||typeof e>"u"||cj(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function sr(t,e,n,r,o,i,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=s}var Mn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Mn[t]=new sr(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Mn[e]=new sr(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Mn[t]=new sr(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Mn[t]=new sr(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Mn[t]=new sr(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Mn[t]=new sr(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Mn[t]=new sr(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Mn[t]=new sr(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Mn[t]=new sr(t,5,!1,t.toLowerCase(),null,!1,!1)});var dy=/[\-:]([a-z])/g;function hy(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(dy,hy);Mn[e]=new sr(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(dy,hy);Mn[e]=new sr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(dy,hy);Mn[e]=new sr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Mn[t]=new sr(t,1,!1,t.toLowerCase(),null,!1,!1)}),Mn.xlinkHref=new sr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Mn[t]=new sr(t,1,!1,t.toLowerCase(),null,!0,!0)});function py(t,e,n,r){var o=Mn.hasOwnProperty(e)?Mn[e]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fy=Object.prototype.hasOwnProperty,_j=/^[: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]*$/,BR={},HR={};function Rj(t){return fy.call(HR,t)?!0:fy.call(BR,t)?!1:_j.test(t)?HR[t]=!0:(BR[t]=!0,!1)}function Mj(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Oj(t,e,n,r){if(e===null||typeof e>"u"||Mj(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function sr(t,e,n,r,o,i,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=s}var On={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){On[t]=new sr(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];On[e]=new sr(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){On[t]=new sr(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){On[t]=new sr(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){On[t]=new sr(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){On[t]=new sr(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){On[t]=new sr(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){On[t]=new sr(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){On[t]=new sr(t,5,!1,t.toLowerCase(),null,!1,!1)});var gy=/[\-:]([a-z])/g;function my(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(gy,my);On[e]=new sr(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(gy,my);On[e]=new sr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(gy,my);On[e]=new sr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){On[t]=new sr(t,1,!1,t.toLowerCase(),null,!1,!1)}),On.xlinkHref=new sr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){On[t]=new sr(t,1,!1,t.toLowerCase(),null,!0,!0)});function vy(t,e,n,r){var o=On.hasOwnProperty(e)?On[e]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` -`+o[s].replace(" at new "," at ");return t.displayName&&a.includes("")&&(a=a.replace("",t.displayName)),a}while(1<=s&&0<=l);break}}}finally{wy=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?_d(t):""}function dj(t){switch(t.tag){case 5:return _d(t.type);case 16:return _d("Lazy");case 13:return _d("Suspense");case 19:return _d("SuspenseList");case 0:case 2:case 15:return t=ky(t.type,!1),t;case 11:return t=ky(t.type.render,!1),t;case 1:return t=ky(t.type,!0),t;default:return""}}function Ey(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case vc:return"Fragment";case mc:return"Portal";case gy:return"Profiler";case fy:return"StrictMode";case vy:return"Suspense";case yy:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case RR:return(t.displayName||"Context")+".Consumer";case _R:return(t._context.displayName||"Context")+".Provider";case my:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case by:return e=t.displayName||null,e!==null?e:Ey(t.type)||"Memo";case Ls:e=t._payload,t=t._init;try{return Ey(t(e))}catch{}}return null}function hj(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ey(e);case 8:return e===fy?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ns(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function IR(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function pj(t){var e=IR(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function zf(t){t._valueTracker||(t._valueTracker=pj(t))}function LR(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=IR(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Ff(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Sy(t,e){var n=e.checked;return It({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function NR(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Ns(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function $R(t,e){e=e.checked,e!=null&&py(t,"checked",e,!1)}function Cy(t,e){$R(t,e);var n=Ns(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Ty(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ty(t,e.type,Ns(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function DR(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Ty(t,e,n){(e!=="number"||Ff(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Rd=Array.isArray;function yc(t,e,n,r){if(t=t.options,e){e={};for(var o=0;o"+e.valueOf().toString()+"",e=Bf.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Md(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Od={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fj=["Webkit","ms","Moz","O"];Object.keys(Od).forEach(function(t){fj.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Od[e]=Od[t]})});function UR(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Od.hasOwnProperty(t)&&Od[t]?(""+e).trim():e+"px"}function WR(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=UR(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,o):t[n]=o}}var gj=It({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ry(t,e){if(e){if(gj[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(te(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(te(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(te(61))}if(e.style!=null&&typeof e.style!="object")throw Error(te(62))}}function My(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Oy=null;function Iy(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ly=null,bc=null,xc=null;function VR(t){if(t=Qd(t)){if(typeof Ly!="function")throw Error(te(280));var e=t.stateNode;e&&(e=cg(e),Ly(t.stateNode,t.type,e))}}function jR(t){bc?xc?xc.push(t):xc=[t]:bc=t}function GR(){if(bc){var t=bc,e=xc;if(xc=bc=null,VR(t),e)for(t=0;t>>=0,t===0?32:31-(Tj(t)/Aj|0)|0}var jf=64,Gf=4194304;function $d(t){switch(t&-t){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: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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Kf(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,o=t.suspendedLanes,i=t.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=$d(l):(i&=s,i!==0&&(r=$d(i)))}else s=n&~o,s!==0?r=$d(s):i!==0&&(r=$d(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&o)&&(o=r&-r,i=e&-e,o>=i||o===16&&(i&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function Dd(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Po(e),t[e]=n}function Oj(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=Vd),x2=" ",w2=!1;function k2(t,e){switch(t){case"keyup":return iG.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E2(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ec=!1;function aG(t,e){switch(t){case"compositionend":return E2(e);case"keypress":return e.which!==32?null:(w2=!0,x2);case"textInput":return t=e.data,t===x2&&w2?null:t;default:return null}}function lG(t,e){if(Ec)return t==="compositionend"||!Zy&&k2(t,e)?(t=f2(),Jf=jy=Fs=null,Ec=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=M2(n)}}function I2(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?I2(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function L2(){for(var t=window,e=Ff();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Ff(t.document)}return e}function eb(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function vG(t){var e=L2(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&I2(n.ownerDocument.documentElement,n)){if(r!==null&&eb(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!t.extend&&i>r&&(o=r,r=i,i=o),o=O2(n,i);var s=O2(n,r);o&&s&&(t.rangeCount!==1||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(o.node,o.offset),t.removeAllRanges(),i>r?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Sc=null,tb=null,Yd=null,nb=!1;function N2(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;nb||Sc==null||Sc!==Ff(r)||(r=Sc,"selectionStart"in r&&eb(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yd&&Kd(Yd,r)||(Yd=r,r=sg(tb,"onSelect"),0Rc||(t.current=fb[Rc],fb[Rc]=null,Rc--)}function xt(t,e){Rc++,fb[Rc]=t.current,t.current=e}var Ws={},Wn=Us(Ws),kr=Us(!1),Wa=Ws;function Mc(t,e){var n=t.type.contextTypes;if(!n)return Ws;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Er(t){return t=t.childContextTypes,t!=null}function ug(){Tt(kr),Tt(Wn)}function X2(t,e,n){if(Wn.current!==Ws)throw Error(te(168));xt(Wn,e),xt(kr,n)}function q2(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in e))throw Error(te(108,hj(t)||"Unknown",o));return It({},n,r)}function dg(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ws,Wa=Wn.current,xt(Wn,t),xt(kr,kr.current),!0}function Z2(t,e,n){var r=t.stateNode;if(!r)throw Error(te(169));n?(t=q2(t,e,Wa),r.__reactInternalMemoizedMergedChildContext=t,Tt(kr),Tt(Wn),xt(Wn,t)):Tt(kr),xt(kr,n)}var zi=null,hg=!1,gb=!1;function J2(t){zi===null?zi=[t]:zi.push(t)}function RG(t){hg=!0,J2(t)}function Vs(){if(!gb&&zi!==null){gb=!0;var t=0,e=ct;try{var n=zi;for(ct=1;t>=s,o-=s,Fi=1<<32-Po(e)+o|n<A?(C=S,S=null):C=S.sibling;var O=h(v,S,b[A],x);if(O===null){S===null&&(S=C);break}t&&S&&O.alternate===null&&e(v,S),y=i(O,y,A),w===null?k=O:w.sibling=O,w=O,S=C}if(A===b.length)return n(v,S),Rt&&ja(v,A),k;if(S===null){for(;AA?(C=S,S=null):C=S.sibling;var R=h(v,S,O.value,x);if(R===null){S===null&&(S=C);break}t&&S&&R.alternate===null&&e(v,S),y=i(R,y,A),w===null?k=R:w.sibling=R,w=R,S=C}if(O.done)return n(v,S),Rt&&ja(v,A),k;if(S===null){for(;!O.done;A++,O=b.next())O=d(v,O.value,x),O!==null&&(y=i(O,y,A),w===null?k=O:w.sibling=O,w=O);return Rt&&ja(v,A),k}for(S=r(v,S);!O.done;A++,O=b.next())O=p(S,v,A,O.value,x),O!==null&&(t&&O.alternate!==null&&S.delete(O.key===null?A:O.key),y=i(O,y,A),w===null?k=O:w.sibling=O,w=O);return t&&S.forEach(function(_){return e(v,_)}),Rt&&ja(v,A),k}function m(v,y,b,x){if(typeof b=="object"&&b!==null&&b.type===vc&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Pf:e:{for(var k=b.key,w=y;w!==null;){if(w.key===k){if(k=b.type,k===vc){if(w.tag===7){n(v,w.sibling),y=o(w,b.props.children),y.return=v,v=y;break e}}else if(w.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ls&&hM(k)===w.type){n(v,w.sibling),y=o(w,b.props),y.ref=eh(v,w,b),y.return=v,v=y;break e}n(v,w);break}else e(v,w);w=w.sibling}b.type===vc?(y=Qa(b.props.children,v.mode,x,b.key),y.return=v,v=y):(x=Bg(b.type,b.key,b.props,null,v.mode,x),x.ref=eh(v,y,b),x.return=v,v=x)}return s(v);case mc:e:{for(w=b.key;y!==null;){if(y.key===w)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(v,y.sibling),y=o(y,b.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else e(v,y);y=y.sibling}y=hx(b,v.mode,x),y.return=v,v=y}return s(v);case Ls:return w=b._init,m(v,y,w(b._payload),x)}if(Rd(b))return f(v,y,b,x);if(Ad(b))return g(v,y,b,x);wg(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(n(v,y.sibling),y=o(y,b),y.return=v,v=y):(n(v,y),y=dx(b,v.mode,x),y.return=v,v=y),s(v)):n(v,y)}return m}var Dc=pM(!0),fM=pM(!1),th={},li=Us(th),nh=Us(th),rh=Us(th);function Ka(t){if(t===th)throw Error(te(174));return t}function Rb(t,e){switch(xt(rh,e),xt(nh,t),xt(li,th),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:_y(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=_y(e,t)}Tt(li),xt(li,e)}function Pc(){Tt(li),Tt(nh),Tt(rh)}function gM(t){Ka(rh.current);var e=Ka(li.current),n=_y(e,t.type);e!==n&&(xt(nh,t),xt(li,n))}function Mb(t){nh.current===t&&(Tt(li),Tt(nh))}var Lt=Us(0);function kg(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ob=[];function Ib(){for(var t=0;tn?n:4,t(!0);var r=Lb.transition;Lb.transition={};try{t(!1),e()}finally{ct=n,Lb.transition=r}}function LM(){return mo().memoizedState}function LG(t,e,n){var r=qs(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},NM(t))$M(e,n);else if(n=oM(t,e,n,r),n!==null){var o=lr();Wo(n,t,r,o),DM(n,e,r)}}function NG(t,e,n){var r=qs(t),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(NM(t))$M(e,o);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var s=e.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,zo(l,s)){var a=e.interleaved;a===null?(o.next=o,Cb(e)):(o.next=a.next,a.next=o),e.interleaved=o;return}}catch{}finally{}n=oM(t,e,o,r),n!==null&&(o=lr(),Wo(n,t,r,o),DM(n,e,r))}}function NM(t){var e=t.alternate;return t===Nt||e!==null&&e===Nt}function $M(t,e){oh=Sg=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function DM(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,By(t,n)}}var Ag={readContext:go,useCallback:Vn,useContext:Vn,useEffect:Vn,useImperativeHandle:Vn,useInsertionEffect:Vn,useLayoutEffect:Vn,useMemo:Vn,useReducer:Vn,useRef:Vn,useState:Vn,useDebugValue:Vn,useDeferredValue:Vn,useTransition:Vn,useMutableSource:Vn,useSyncExternalStore:Vn,useId:Vn,unstable_isNewReconciler:!1},$G={readContext:go,useCallback:function(t,e){return ci().memoizedState=[t,e===void 0?null:e],t},useContext:go,useEffect:CM,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Cg(4194308,4,_M.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Cg(4194308,4,t,e)},useInsertionEffect:function(t,e){return Cg(4,2,t,e)},useMemo:function(t,e){var n=ci();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=ci();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=LG.bind(null,Nt,t),[r.memoizedState,t]},useRef:function(t){var e=ci();return t={current:t},e.memoizedState=t},useState:EM,useDebugValue:Bb,useDeferredValue:function(t){return ci().memoizedState=t},useTransition:function(){var t=EM(!1),e=t[0];return t=IG.bind(null,t[1]),ci().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Nt,o=ci();if(Rt){if(n===void 0)throw Error(te(407));n=n()}else{if(n=e(),yn===null)throw Error(te(349));Ya&30||yM(r,e,n)}o.memoizedState=n;var i={value:n,getSnapshot:e};return o.queue=i,CM(xM.bind(null,r,i,t),[t]),r.flags|=2048,ah(9,bM.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=ci(),e=yn.identifierPrefix;if(Rt){var n=Bi,r=Fi;n=(r&~(1<<32-Po(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=ih++,0")&&(a=a.replace("",t.displayName)),a}while(1<=s&&0<=l);break}}}finally{Cy=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Md(t):""}function Ij(t){switch(t.tag){case 5:return Md(t.type);case 16:return Md("Lazy");case 13:return Md("Suspense");case 19:return Md("SuspenseList");case 0:case 2:case 15:return t=Ty(t.type,!1),t;case 11:return t=Ty(t.type.render,!1),t;case 1:return t=Ty(t.type,!0),t;default:return""}}function Ay(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case mc:return"Fragment";case gc:return"Portal";case by:return"Profiler";case yy:return"StrictMode";case wy:return"Suspense";case ky:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case WR:return(t.displayName||"Context")+".Consumer";case UR:return(t._context.displayName||"Context")+".Provider";case xy:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ey:return e=t.displayName||null,e!==null?e:Ay(t.type)||"Memo";case Ns:e=t._payload,t=t._init;try{return Ay(t(e))}catch{}}return null}function Lj(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ay(e);case 8:return e===yy?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function $s(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function GR(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Nj(t){var e=GR(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Bf(t){t._valueTracker||(t._valueTracker=Nj(t))}function KR(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=GR(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Hf(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function _y(t,e){var n=e.checked;return It({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function YR(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=$s(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function XR(t,e){e=e.checked,e!=null&&vy(t,"checked",e,!1)}function Ry(t,e){XR(t,e);var n=$s(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?My(t,e.type,n):e.hasOwnProperty("defaultValue")&&My(t,e.type,$s(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function qR(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function My(t,e,n){(e!=="number"||Hf(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Od=Array.isArray;function vc(t,e,n,r){if(t=t.options,e){e={};for(var o=0;o"+e.valueOf().toString()+"",e=Uf.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Id(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Ld={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$j=["Webkit","ms","Moz","O"];Object.keys(Ld).forEach(function(t){$j.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Ld[e]=Ld[t]})});function n2(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Ld.hasOwnProperty(t)&&Ld[t]?(""+e).trim():e+"px"}function r2(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=n2(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,o):t[n]=o}}var Dj=It({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ly(t,e){if(e){if(Dj[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(te(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(te(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(te(61))}if(e.style!=null&&typeof e.style!="object")throw Error(te(62))}}function Ny(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $y=null;function Dy(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Py=null,yc=null,bc=null;function o2(t){if(t=th(t)){if(typeof Py!="function")throw Error(te(280));var e=t.stateNode;e&&(e=dg(e),Py(t.stateNode,t.type,e))}}function i2(t){yc?bc?bc.push(t):bc=[t]:yc=t}function s2(){if(yc){var t=yc,e=bc;if(bc=yc=null,o2(t),e)for(t=0;t>>=0,t===0?32:31-(Kj(t)/Yj|0)|0}var Kf=64,Yf=4194304;function Pd(t){switch(t&-t){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: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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Xf(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,o=t.suspendedLanes,i=t.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Pd(l):(i&=s,i!==0&&(r=Pd(i)))}else s=n&~o,s!==0?r=Pd(s):i!==0&&(r=Pd(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&o)&&(o=r&-r,i=e&-e,o>=i||o===16&&(i&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function zd(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Po(e),t[e]=n}function Jj(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=Gd),N2=" ",$2=!1;function D2(t,e){switch(t){case"keyup":return TG.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function P2(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var kc=!1;function _G(t,e){switch(t){case"compositionend":return P2(e);case"keypress":return e.which!==32?null:($2=!0,N2);case"textInput":return t=e.data,t===N2&&$2?null:t;default:return null}}function RG(t,e){if(kc)return t==="compositionend"||!tb&&D2(t,e)?(t=_2(),eg=Xy=Bs=null,kc=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=V2(n)}}function G2(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?G2(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function K2(){for(var t=window,e=Hf();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Hf(t.document)}return e}function ob(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function zG(t){var e=K2(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&G2(n.ownerDocument.documentElement,n)){if(r!==null&&ob(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!t.extend&&i>r&&(o=r,r=i,i=o),o=j2(n,i);var s=j2(n,r);o&&s&&(t.rangeCount!==1||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(o.node,o.offset),t.removeAllRanges(),i>r?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ec=null,ib=null,qd=null,sb=!1;function Y2(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;sb||Ec==null||Ec!==Hf(r)||(r=Ec,"selectionStart"in r&&ob(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qd&&Xd(qd,r)||(qd=r,r=lg(ib,"onSelect"),0_c||(t.current=yb[_c],yb[_c]=null,_c--)}function xt(t,e){_c++,yb[_c]=t.current,t.current=e}var Vs={},Vn=Ws(Vs),Er=Ws(!1),Va=Vs;function Rc(t,e){var n=t.type.contextTypes;if(!n)return Vs;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Sr(t){return t=t.childContextTypes,t!=null}function hg(){Tt(Er),Tt(Vn)}function cM(t,e,n){if(Vn.current!==Vs)throw Error(te(168));xt(Vn,e),xt(Er,n)}function uM(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in e))throw Error(te(108,Lj(t)||"Unknown",o));return It({},n,r)}function pg(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Vs,Va=Vn.current,xt(Vn,t),xt(Er,Er.current),!0}function dM(t,e,n){var r=t.stateNode;if(!r)throw Error(te(169));n?(t=uM(t,e,Va),r.__reactInternalMemoizedMergedChildContext=t,Tt(Er),Tt(Vn),xt(Vn,t)):Tt(Er),xt(Er,n)}var Fi=null,fg=!1,bb=!1;function hM(t){Fi===null?Fi=[t]:Fi.push(t)}function qG(t){fg=!0,hM(t)}function js(){if(!bb&&Fi!==null){bb=!0;var t=0,e=ut;try{var n=Fi;for(ut=1;t>=s,o-=s,Bi=1<<32-Po(e)+o|n<T?(C=S,S=null):C=S.sibling;var O=h(v,S,b[T],x);if(O===null){S===null&&(S=C);break}t&&S&&O.alternate===null&&e(v,S),y=i(O,y,T),w===null?k=O:w.sibling=O,w=O,S=C}if(T===b.length)return n(v,S),Rt&&Ga(v,T),k;if(S===null){for(;TT?(C=S,S=null):C=S.sibling;var R=h(v,S,O.value,x);if(R===null){S===null&&(S=C);break}t&&S&&R.alternate===null&&e(v,S),y=i(R,y,T),w===null?k=R:w.sibling=R,w=R,S=C}if(O.done)return n(v,S),Rt&&Ga(v,T),k;if(S===null){for(;!O.done;T++,O=b.next())O=d(v,O.value,x),O!==null&&(y=i(O,y,T),w===null?k=O:w.sibling=O,w=O);return Rt&&Ga(v,T),k}for(S=r(v,S);!O.done;T++,O=b.next())O=p(S,v,T,O.value,x),O!==null&&(t&&O.alternate!==null&&S.delete(O.key===null?T:O.key),y=i(O,y,T),w===null?k=O:w.sibling=O,w=O);return t&&S.forEach(function(_){return e(v,_)}),Rt&&Ga(v,T),k}function m(v,y,b,x){if(typeof b=="object"&&b!==null&&b.type===mc&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ff:e:{for(var k=b.key,w=y;w!==null;){if(w.key===k){if(k=b.type,k===mc){if(w.tag===7){n(v,w.sibling),y=o(w,b.props.children),y.return=v,v=y;break e}}else if(w.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ns&&TM(k)===w.type){n(v,w.sibling),y=o(w,b.props),y.ref=nh(v,w,b),y.return=v,v=y;break e}n(v,w);break}else e(v,w);w=w.sibling}b.type===mc?(y=el(b.props.children,v.mode,x,b.key),y.return=v,v=y):(x=Ug(b.type,b.key,b.props,null,v.mode,x),x.ref=nh(v,y,b),x.return=v,v=x)}return s(v);case gc:e:{for(w=b.key;y!==null;){if(y.key===w)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(v,y.sibling),y=o(y,b.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else e(v,y);y=y.sibling}y=mx(b,v.mode,x),y.return=v,v=y}return s(v);case Ns:return w=b._init,m(v,y,w(b._payload),x)}if(Od(b))return f(v,y,b,x);if(Rd(b))return g(v,y,b,x);Eg(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(n(v,y.sibling),y=o(y,b),y.return=v,v=y):(n(v,y),y=gx(b,v.mode,x),y.return=v,v=y),s(v)):n(v,y)}return m}var $c=AM(!0),_M=AM(!1),rh={},ai=Ws(rh),oh=Ws(rh),ih=Ws(rh);function Ya(t){if(t===rh)throw Error(te(174));return t}function Lb(t,e){switch(xt(ih,e),xt(oh,t),xt(ai,rh),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Iy(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Iy(e,t)}Tt(ai),xt(ai,e)}function Dc(){Tt(ai),Tt(oh),Tt(ih)}function RM(t){Ya(ih.current);var e=Ya(ai.current),n=Iy(e,t.type);e!==n&&(xt(oh,t),xt(ai,n))}function Nb(t){oh.current===t&&(Tt(ai),Tt(oh))}var Lt=Ws(0);function Sg(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var $b=[];function Db(){for(var t=0;t<$b.length;t++)$b[t]._workInProgressVersionPrimary=null;$b.length=0}var Cg=Pi.ReactCurrentDispatcher,Pb=Pi.ReactCurrentBatchConfig,Xa=0,Nt=null,ln=null,vn=null,Tg=!1,sh=!1,ah=0,JG=0;function jn(){throw Error(te(321))}function zb(t,e){if(e===null)return!1;for(var n=0;nn?n:4,t(!0);var r=Pb.transition;Pb.transition={};try{t(!1),e()}finally{ut=n,Pb.transition=r}}function KM(){return vo().memoizedState}function eK(t,e,n){var r=Zs(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},YM(t))XM(e,n);else if(n=yM(t,e,n,r),n!==null){var o=lr();Wo(n,t,r,o),qM(n,e,r)}}function tK(t,e,n){var r=Zs(t),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(YM(t))XM(e,o);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var s=e.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,zo(l,s)){var a=e.interleaved;a===null?(o.next=o,Rb(e)):(o.next=a.next,a.next=o),e.interleaved=o;return}}catch{}finally{}n=yM(t,e,o,r),n!==null&&(o=lr(),Wo(n,t,r,o),qM(n,e,r))}}function YM(t){var e=t.alternate;return t===Nt||e!==null&&e===Nt}function XM(t,e){sh=Tg=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function qM(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Vy(t,n)}}var Rg={readContext:mo,useCallback:jn,useContext:jn,useEffect:jn,useImperativeHandle:jn,useInsertionEffect:jn,useLayoutEffect:jn,useMemo:jn,useReducer:jn,useRef:jn,useState:jn,useDebugValue:jn,useDeferredValue:jn,useTransition:jn,useMutableSource:jn,useSyncExternalStore:jn,useId:jn,unstable_isNewReconciler:!1},nK={readContext:mo,useCallback:function(t,e){return li().memoizedState=[t,e===void 0?null:e],t},useContext:mo,useEffect:FM,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Ag(4194308,4,UM.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Ag(4194308,4,t,e)},useInsertionEffect:function(t,e){return Ag(4,2,t,e)},useMemo:function(t,e){var n=li();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=li();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=eK.bind(null,Nt,t),[r.memoizedState,t]},useRef:function(t){var e=li();return t={current:t},e.memoizedState=t},useState:PM,useDebugValue:Vb,useDeferredValue:function(t){return li().memoizedState=t},useTransition:function(){var t=PM(!1),e=t[0];return t=QG.bind(null,t[1]),li().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Nt,o=li();if(Rt){if(n===void 0)throw Error(te(407));n=n()}else{if(n=e(),yn===null)throw Error(te(349));Xa&30||IM(r,e,n)}o.memoizedState=n;var i={value:n,getSnapshot:e};return o.queue=i,FM(NM.bind(null,r,i,t),[t]),r.flags|=2048,ch(9,LM.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=li(),e=yn.identifierPrefix;if(Rt){var n=Hi,r=Bi;n=(r&~(1<<32-Po(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=ah++,0<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=s.createElement(n,{is:r.is}):(t=s.createElement(n),n==="select"&&(s=t,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):t=s.createElementNS(t,n),t[ai]=e,t[Jd]=r,QM(t,e,!1,!1),e.stateNode=t;e:{switch(s=My(n,r),n){case"dialog":Ct("cancel",t),Ct("close",t),o=r;break;case"iframe":case"object":case"embed":Ct("load",t),o=r;break;case"video":case"audio":for(o=0;oHc&&(e.flags|=128,r=!0,lh(i,!1),e.lanes=4194304)}else{if(!r)if(t=kg(s),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),lh(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Rt)return jn(e),null}else 2*Kt()-i.renderingStartTime>Hc&&n!==1073741824&&(e.flags|=128,r=!0,lh(i,!1),e.lanes=4194304);i.isBackwards?(s.sibling=e.child,e.child=s):(n=i.last,n!==null?n.sibling=s:e.child=s,i.last=s)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Kt(),e.sibling=null,n=Lt.current,xt(Lt,r?n&1|2:n&1),e):(jn(e),null);case 22:case 23:return lx(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Gr&1073741824&&(jn(e),e.subtreeFlags&6&&(e.flags|=8192)):jn(e),null;case 24:return null;case 25:return null}throw Error(te(156,e.tag))}function WG(t,e){switch(vb(e),e.tag){case 1:return Er(e.type)&&ug(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Pc(),Tt(kr),Tt(Wn),Ib(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Mb(e),null;case 13:if(Tt(Lt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(te(340));Lc()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Tt(Lt),null;case 4:return Pc(),null;case 10:return Eb(e.type._context),null;case 22:case 23:return lx(),null;case 24:return null;default:return null}}var Mg=!1,Gn=!1,VG=typeof WeakSet=="function"?WeakSet:Set,he=null;function Fc(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ht(t,e,r)}else n.current=null}function qb(t,e,n){try{n()}catch(r){Ht(t,e,r)}}var nO=!1;function jG(t,e){if(lb=qf,t=L2(),eb(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,d=t,h=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(l=s+o),d!==i||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===t)break t;if(h===n&&++u===o&&(l=s),h===i&&++c===r&&(a=s),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(cb={focusedElem:t,selectionRange:n},qf=!1,he=e;he!==null;)if(e=he,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,he=t;else for(;he!==null;){e=he;try{var f=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var g=f.memoizedProps,m=f.memoizedState,v=e.stateNode,y=v.getSnapshotBeforeUpdate(e.elementType===e.type?g:Bo(e.type,g),m);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(te(163))}}catch(x){Ht(e,e.return,x)}if(t=e.sibling,t!==null){t.return=e.return,he=t;break}he=e.return}return f=nO,nO=!1,f}function ch(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&t)===t){var i=o.destroy;o.destroy=void 0,i!==void 0&&qb(e,n,i)}o=o.next}while(o!==r)}}function Og(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function Zb(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function rO(t){var e=t.alternate;e!==null&&(t.alternate=null,rO(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[ai],delete e[Jd],delete e[pb],delete e[AG],delete e[_G])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function oO(t){return t.tag===5||t.tag===3||t.tag===4}function iO(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||oO(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Jb(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=lg));else if(r!==4&&(t=t.child,t!==null))for(Jb(t,e,n),t=t.sibling;t!==null;)Jb(t,e,n),t=t.sibling}function Qb(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Qb(t,e,n),t=t.sibling;t!==null;)Qb(t,e,n),t=t.sibling}var On=null,Ho=!1;function Ks(t,e,n){for(n=n.child;n!==null;)sO(t,e,n),n=n.sibling}function sO(t,e,n){if(si&&typeof si.onCommitFiberUnmount=="function")try{si.onCommitFiberUnmount(Vf,n)}catch{}switch(n.tag){case 5:Gn||Fc(n,e);case 6:var r=On,o=Ho;On=null,Ks(t,e,n),On=r,Ho=o,On!==null&&(Ho?(t=On,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):On.removeChild(n.stateNode));break;case 18:On!==null&&(Ho?(t=On,n=n.stateNode,t.nodeType===8?hb(t.parentNode,n):t.nodeType===1&&hb(t,n),Hd(t)):hb(On,n.stateNode));break;case 4:r=On,o=Ho,On=n.stateNode.containerInfo,Ho=!0,Ks(t,e,n),On=r,Ho=o;break;case 0:case 11:case 14:case 15:if(!Gn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&qb(n,e,s),o=o.next}while(o!==r)}Ks(t,e,n);break;case 1:if(!Gn&&(Fc(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ht(n,e,l)}Ks(t,e,n);break;case 21:Ks(t,e,n);break;case 22:n.mode&1?(Gn=(r=Gn)||n.memoizedState!==null,Ks(t,e,n),Gn=r):Ks(t,e,n);break;default:Ks(t,e,n)}}function aO(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new VG),e.forEach(function(r){var o=eK.bind(null,t,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Uo(t,e){var n=e.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Kt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*KG(r/1960))-r,10t?16:t,Xs===null)var r=!1;else{if(t=Xs,Xs=null,Dg=0,Ke&6)throw Error(te(331));var o=Ke;for(Ke|=4,he=t.current;he!==null;){var i=he,s=i.child;if(he.flags&16){var l=i.deletions;if(l!==null){for(var a=0;aKt()-nx?Za(t,0):tx|=n),Tr(t,e)}function xO(t,e){e===0&&(t.mode&1?(e=Gf,Gf<<=1,!(Gf&130023424)&&(Gf=4194304)):e=1);var n=lr();t=Hi(t,e),t!==null&&(Dd(t,e,n),Tr(t,n))}function QG(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),xO(t,n)}function eK(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,o=t.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(te(314))}r!==null&&r.delete(e),xO(t,n)}var wO;wO=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||kr.current)Sr=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Sr=!1,HG(t,e,n);Sr=!!(t.flags&131072)}else Sr=!1,Rt&&e.flags&1048576&&Q2(e,fg,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Rg(t,e),t=e.pendingProps;var o=Mc(e,Wn.current);$c(e,n),o=$b(null,e,r,t,o,n);var i=Db();return e.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Er(r)?(i=!0,dg(e)):i=!1,e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Tb(e),o.updater=xg,e.stateNode=o,o._reactInternals=e,_b(e,r,t,n),e=Vb(null,e,r,!0,i,n)):(e.tag=0,Rt&&i&&mb(e),ar(null,e,o,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Rg(t,e),t=e.pendingProps,o=r._init,r=o(r._payload),e.type=r,o=e.tag=nK(r),t=Bo(r,t),o){case 0:e=Wb(null,e,r,t,n);break e;case 1:e=KM(null,e,r,t,n);break e;case 11:e=UM(null,e,r,t,n);break e;case 14:e=WM(null,e,r,Bo(r.type,t),n);break e}throw Error(te(306,r,""))}return e;case 0:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:Bo(r,o),Wb(t,e,r,o,n);case 1:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:Bo(r,o),KM(t,e,r,o,n);case 3:e:{if(YM(e),t===null)throw Error(te(387));r=e.pendingProps,i=e.memoizedState,o=i.element,iM(t,e),bg(e,r,null,n);var s=e.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){o=zc(Error(te(423)),e),e=XM(t,e,r,n,o);break e}else if(r!==o){o=zc(Error(te(424)),e),e=XM(t,e,r,n,o);break e}else for(jr=Hs(e.stateNode.containerInfo.firstChild),Vr=e,Rt=!0,Fo=null,n=fM(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Lc(),r===o){e=Wi(t,e,n);break e}ar(t,e,r,n)}e=e.child}return e;case 5:return gM(e),t===null&&bb(e),r=e.type,o=e.pendingProps,i=t!==null?t.memoizedProps:null,s=o.children,ub(r,o)?s=null:i!==null&&ub(r,i)&&(e.flags|=32),GM(t,e),ar(t,e,s,n),e.child;case 6:return t===null&&bb(e),null;case 13:return qM(t,e,n);case 4:return Rb(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Dc(e,null,r,n):ar(t,e,r,n),e.child;case 11:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:Bo(r,o),UM(t,e,r,o,n);case 7:return ar(t,e,e.pendingProps,n),e.child;case 8:return ar(t,e,e.pendingProps.children,n),e.child;case 12:return ar(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,o=e.pendingProps,i=e.memoizedProps,s=o.value,xt(mg,r._currentValue),r._currentValue=s,i!==null)if(zo(i.value,s)){if(i.children===o.children&&!kr.current){e=Wi(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Ui(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Sb(i.return,n,e),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===e.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(te(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Sb(s,n,e),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}ar(t,e,o.children,n),e=e.child}return e;case 9:return o=e.type,r=e.pendingProps.children,$c(e,n),o=go(o),r=r(o),e.flags|=1,ar(t,e,r,n),e.child;case 14:return r=e.type,o=Bo(r,e.pendingProps),o=Bo(r.type,o),WM(t,e,r,o,n);case 15:return VM(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:Bo(r,o),Rg(t,e),e.tag=1,Er(r)?(t=!0,dg(e)):t=!1,$c(e,n),uM(e,r,o),_b(e,r,o,n),Vb(null,e,r,!0,t,n);case 19:return JM(t,e,n);case 22:return jM(t,e,n)}throw Error(te(156,e.tag))};function kO(t,e){return e2(t,e)}function tK(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yo(t,e,n,r){return new tK(t,e,n,r)}function ux(t){return t=t.prototype,!(!t||!t.isReactComponent)}function nK(t){if(typeof t=="function")return ux(t)?1:0;if(t!=null){if(t=t.$$typeof,t===my)return 11;if(t===by)return 14}return 2}function Js(t,e){var n=t.alternate;return n===null?(n=yo(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Bg(t,e,n,r,o,i){var s=2;if(r=t,typeof t=="function")ux(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case vc:return Qa(n.children,o,i,e);case fy:s=8,o|=8;break;case gy:return t=yo(12,n,e,o|2),t.elementType=gy,t.lanes=i,t;case vy:return t=yo(13,n,e,o),t.elementType=vy,t.lanes=i,t;case yy:return t=yo(19,n,e,o),t.elementType=yy,t.lanes=i,t;case MR:return Hg(n,o,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case _R:s=10;break e;case RR:s=9;break e;case my:s=11;break e;case by:s=14;break e;case Ls:s=16,r=null;break e}throw Error(te(130,t==null?t:typeof t,""))}return e=yo(s,n,e,o),e.elementType=t,e.type=r,e.lanes=i,e}function Qa(t,e,n,r){return t=yo(7,t,r,e),t.lanes=n,t}function Hg(t,e,n,r){return t=yo(22,t,r,e),t.elementType=MR,t.lanes=n,t.stateNode={isHidden:!1},t}function dx(t,e,n){return t=yo(6,t,null,e),t.lanes=n,t}function hx(t,e,n){return e=yo(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function rK(t,e,n,r,o){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Fy(0),this.expirationTimes=Fy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fy(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function px(t,e,n,r,o,i,s,l,a){return t=new rK(t,e,n,l,a),e===1?(e=1,i===!0&&(e|=8)):e=0,i=yo(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tb(i),t}function oK(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_O)}catch(t){console.error(t)}}_O(),wR.exports=Hr;var fh=wR.exports;const Yg=io(fh);var cK=Object.defineProperty,uK=Object.getOwnPropertyDescriptor,dK=(t,e,n,r)=>{for(var o=r>1?void 0:r?uK(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&cK(e,n,o),o},RO=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},xe=(t,e,n)=>(RO(t,e,"read from private field"),n?n.call(t):e.get(t)),Kr=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Yr=(t,e,n,r)=>(RO(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),gh,hK=class{constructor(){this.portals=new Map,Kr(this,gh,sf()),this.on=t=>xe(this,gh).on("update",t),this.once=t=>{const e=xe(this,gh).on("update",n=>{e(),t(n)});return e}}update(){xe(this,gh).emit("update",this.portals)}render({Component:t,container:e}){const n=this.portals.get(e);this.portals.set(e,{Component:t,key:(n==null?void 0:n.key)??Ll()}),this.update()}forceUpdate(){for(const[t,{Component:e}]of this.portals)this.portals.set(t,{Component:e,key:Ll()})}remove(t){this.portals.delete(t),this.update()}};gh=new WeakMap;var pK=t=>{const{portals:e}=t;return ee.createElement(ee.Fragment,null,e.map(([n,{Component:r,key:o}])=>fh.createPortal(ee.createElement(r,null),n,o)))};function fK(t){const[e,n]=D.useState(()=>Array.from(t.portals.entries()));return D.useEffect(()=>(n(Array.from(t.portals.entries())),t.on(r=>{n(Array.from(r.entries()))})),[t]),D.useMemo(()=>e,[e])}var $t,mh,el,vh,Xg,yh,Wc,bh,qg,ji,cr,vx,MO=class{constructor({getPosition:t,node:e,portalContainer:n,view:r,ReactComponent:o,options:i}){Kr(this,$t,void 0),Kr(this,mh,[]),Kr(this,el,void 0),Kr(this,vh,void 0),Kr(this,Xg,void 0),Kr(this,yh,void 0),Kr(this,Wc,void 0),Kr(this,bh,!1),Kr(this,qg,void 0),Kr(this,ji,void 0),Kr(this,cr,void 0),Kr(this,vx,a=>{a&&(be(xe(this,ji),{code:re.REACT_NODE_VIEW,message:`You have applied a ref to a node view provided for '${xe(this,$t).type.name}' which doesn't support content.`}),a.append(xe(this,ji)))}),this.Component=()=>{const a=xe(this,Xg);return be(a,{code:re.REACT_NODE_VIEW,message:`The custom react node view provided for ${xe(this,$t).type.name} doesn't have a valid ReactComponent`}),ee.createElement(a,{updateAttributes:this.updateAttributes,selected:this.selected,view:xe(this,el),getPosition:xe(this,yh),node:xe(this,$t),forwardRef:xe(this,vx),decorations:xe(this,mh)})},this.updateAttributes=a=>{if(!xe(this,el).editable)return;const u=xe(this,yh).call(this);if(u==null)return;const c=xe(this,el).state.tr.setNodeMarkup(u,void 0,{...xe(this,$t).attrs,...a});xe(this,el).dispatch(c)},be(Xe(t),{message:"You are attempting to use a node view for a mark type. This is not supported yet. Please check your configuration."}),Yr(this,$t,e),Yr(this,el,r),Yr(this,vh,n),Yr(this,Xg,o),Yr(this,yh,t),Yr(this,Wc,i),Yr(this,cr,this.createDom());const{contentDOM:s,wrapper:l}=this.createContentDom()??{};Yr(this,qg,s??void 0),Yr(this,ji,l),xe(this,ji)&&xe(this,cr).append(xe(this,ji)),this.setDomAttributes(xe(this,$t),xe(this,cr)),this.Component.displayName=CS(`${xe(this,$t).type.name}NodeView`),this.renderComponent()}static create(t){const{portalContainer:e,ReactComponent:n,options:r}=t;return(o,i,s)=>new MO({options:r,node:o,view:i,getPosition:s,portalContainer:e,ReactComponent:n})}get selected(){return xe(this,bh)}get contentDOM(){return xe(this,qg)}get dom(){return xe(this,cr)}renderComponent(){xe(this,vh).render({Component:this.Component,container:xe(this,cr)})}createDom(){const{defaultBlockNode:t,defaultInlineNode:e}=xe(this,Wc),n=xe(this,$t).isInline?document.createElement(e):document.createElement(t);return n.classList.add(`${TS(xe(this,$t).type.name)}-node-view-wrapper`),n}createContentDom(){var t,e;if(xe(this,$t).isLeaf)return;const n=(e=(t=xe(this,$t).type.spec).toDOM)==null?void 0:e.call(t,xe(this,$t));if(!n)return;const{contentDOM:r,dom:o}=Dr.renderSpec(document,n);let i;if(Ft(o))return i=o,o===r&&(i=document.createElement("span"),i.classList.add(`${TS(xe(this,$t).type.name)}-node-view-content-wrapper`),i.append(r)),Ft(r),{wrapper:i,contentDOM:r}}update(t,e){return qp({types:xe(this,$t).type,node:t})?(xe(this,$t)===t&&xe(this,mh)===e||(xe(this,$t).sameMarkup(t)||this.setDomAttributes(t,xe(this,cr)),Yr(this,$t,t),Yr(this,mh,e),this.renderComponent()),!0):!1}setDomAttributes(t,e){const{toDOM:n}=xe(this,$t).type.spec;let r=t.attrs;if(n){const o=n(t);if(ke(o)||gK(o))return;ns(o[1])&&(r=o[1])}for(const[o,i]of nn(r))e.setAttribute(o,i)}selectNode(){Yr(this,bh,!0),xe(this,cr)&&xe(this,cr).classList.add(vS),this.renderComponent()}deselectNode(){Yr(this,bh,!1),xe(this,cr)&&xe(this,cr).classList.remove(vS),this.renderComponent()}destroy(){xe(this,vh).remove(xe(this,cr))}ignoreMutation(t){return t.type==="selection"?!xe(this,$t).type.spec.selectable:xe(this,ji)?!xe(this,ji).contains(t.target):!0}stopEvent(t){var e;if(!xe(this,cr))return!1;if(Xe(xe(this,Wc).stopEvent))return xe(this,Wc).stopEvent({event:t});const n=t.target;if(!(xe(this,cr).contains(n)&&!((e=this.contentDOM)!=null&&e.contains(n))))return!1;const o=t.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!o)return!0;const s=!!xe(this,$t).type.spec.draggable,l=Oe.isSelectable(xe(this,$t)),a=t.type==="copy",u=t.type==="paste",c=t.type==="cut",d=t.type==="mousedown",h=t.type.startsWith("drag");return!s&&l&&h&&t.preventDefault(),!(h||o||a||u||c||d&&l)}},OO=MO;$t=new WeakMap,mh=new WeakMap,el=new WeakMap,vh=new WeakMap,Xg=new WeakMap,yh=new WeakMap,Wc=new WeakMap,bh=new WeakMap,qg=new WeakMap,ji=new WeakMap,cr=new WeakMap,vx=new WeakMap;function gK(t){return J1(t)||ns(t)&&J1(t.dom)}var xh=class extends ht{constructor(){super(...arguments),this.portalContainer=new hK}get name(){return"reactComponent"}onCreate(){this.store.setStoreKey("portalContainer",this.portalContainer)}createNodeViews(){const t=ye(),e=this.store.managerSettings.nodeViewComponents??{};for(const r of this.store.extensions)!r.ReactComponent||!Qu(r)||r.reactComponentEnvironment==="ssr"||(t[r.name]=OO.create({options:this.options,ReactComponent:r.ReactComponent,portalContainer:this.portalContainer}));const n=nn({...this.options.nodeViewComponents,...e});for(const[r,o]of n)t[r]=OO.create({options:this.options,ReactComponent:o,portalContainer:this.portalContainer});return t}};xh=dK([Ne({defaultOptions:{defaultBlockNode:"div",defaultInlineNode:"span",defaultContentNode:"span",defaultEnvironment:"both",nodeViewComponents:{},stopEvent:null},staticKeys:["defaultBlockNode","defaultInlineNode","defaultContentNode","defaultEnvironment"]})],xh);var mK=Object.defineProperty,vK=Object.getOwnPropertyDescriptor,yK=(t,e,n,r)=>{for(var o=r>1?void 0:r?vK(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&mK(e,n,o),o},bK={...Fa.defaultOptions,...xh.defaultOptions},xK=[...Fa.staticKeys,...xh.staticKeys],wh=class extends ht{get name(){return"react"}onSetOptions(t){const{pickChanged:e}=t;this.getExtension(Fa).setOptions(e(["placeholder"]))}createExtensions(){const{emptyNodeClass:t,placeholder:e,defaultBlockNode:n,defaultContentNode:r,defaultEnvironment:o,defaultInlineNode:i,nodeViewComponents:s}=this.options;return[new Fa({emptyNodeClass:t,placeholder:e,priority:tt.Low}),new xh({defaultBlockNode:n,defaultContentNode:r,defaultEnvironment:o,defaultInlineNode:i,nodeViewComponents:s})]}};wh=yK([Ne({defaultOptions:bK,staticKeys:xK})],wh);var IO={};Object.defineProperty(IO,"__esModule",{value:!0});function wK(){for(var t=[],e=0;e{if(!e.has(t))throw TypeError("Cannot "+n)},yx=(t,e,n)=>(DO(t,e,"read from private field"),n?n.call(t):e.get(t)),kK=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},EK=(t,e,n,r)=>(DO(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);function SK(){const[,t]=D.useState(ye());return D.useCallback(()=>{t(ye())},[])}var PO=D.createContext(null);function Xr(t){const e=D.useContext(PO),n=D.useRef(SK());be(e,{code:re.REACT_PROVIDER_CONTEXT});const{addHandler:r}=e;return D.useEffect(()=>{let o=t;if(o){if(ns(o)){const{autoUpdate:i}=o;o=i?()=>n.current():void 0}if(Xe(o))return r("updated",o)}},[r,t]),e}function dr(t=!0){return Xr({autoUpdate:t}).active}function CK(t=!1){return Xr(t?{autoUpdate:!0}:void 0).attrs}function Vc(){return Xr().chain.new()}function un(){return Xr().commands}function Zg(){return Xr({autoUpdate:!0}).getState().selection}function kh(t,e=void 0,n){const{getExtension:r}=Xr(),o=D.useMemo(()=>r(t),[t,r]);let i;if(Xe(e)?i=n?[o,...n]:[o,e]:i=e?[o,...Object.values(e)]:[],D.useEffect(()=>{Xe(e)||!e||o.setOptions(e)},i),D.useEffect(()=>{if(Xe(e))return e({addHandler:o.addHandler.bind(o),addCustomHandler:o.addCustomHandler.bind(o),extension:o})},i),!e)return o}function TK(t,e,n){const r=D.useCallback(({addHandler:o})=>o(e,n),[n,e]);return kh(t,r)}function AK(){return Xr({autoUpdate:!0}).getState()}function Eh(t=!1){return Xr(t?{autoUpdate:!0}:void 0).helpers}var[_K,RK]=r9(({props:t})=>{const e=t.locale??"en",n=t.i18n??Mf,r=t.supportedLocales??[e],o=n._.bind(n);return{locale:e,i18n:n,supportedLocales:r,t:o}});function zO(t,e={}){const{core:n,react:r,...o}=e;return YF(t)?t:KF.create(()=>[...DS(t),new wh(r),...ej(n)],o)}function MK(t,e={}){const n=D.useRef(t),r=D.useRef(e),[o,i]=D.useState(()=>zO(t,e));return n.current=t,r.current=e,D.useEffect(()=>o.addHandler("destroy",()=>{i(()=>zO(n.current,r.current))}),[o]),o}var OK=typeof ur=="object"&&ur.__esModule&&ur.default?ur.default:ur,jc,IK=class extends UF{constructor(t){if(super(t),kK(this,jc,void 0),this.rootPropsConfig={called:!1,count:0},this.getRootProps=e=>this.internalGetRootProps(e,null),this.internalGetRootProps=(e,n)=>{this.rootPropsConfig.called=!0;const{refKey:r="ref",ref:o,...i}=e??ye();return{[r]:OK(o,this.onRef),key:this.uid,...i,children:n}},this.onRef=e=>{e&&(this.rootPropsConfig.count+=1,be(this.rootPropsConfig.count<=1,{code:re.REACT_GET_ROOT_PROPS,message:`Called ${this.rootPropsConfig.count} times`}),EK(this,jc,e),this.onRefLoad())},this.manager.view){this.manager.view.setProps({state:this.manager.view.state,dispatchTransaction:this.dispatchTransaction,attributes:()=>this.getAttributes(),editable:()=>this.props.editable??!0});return}this.manager.getExtension(Fa).setOptions({placeholder:this.props.placeholder??""})}get name(){return"react"}update(t){return super.update(t),this}createView(t){return new e3(null,{state:t,dispatchTransaction:this.dispatchTransaction,attributes:()=>this.getAttributes(),editable:()=>this.props.editable??!0,plugins:[]})}updateState({state:t,...e}){const{triggerChange:n=!0,tr:r,transactions:o}=e;if(this.props.state){const{onChange:i}=this.props;be(i,{code:re.REACT_CONTROLLED,message:"You are required to provide the `onChange` handler when creating a controlled editor."}),be(n,{code:re.REACT_CONTROLLED,message:"Controlled editors do not support `clearContent` or `setContent` where `triggerChange` is `true`. Update the `state` prop instead."}),this.previousStateOverride||(this.previousStateOverride=this.getState()),this.onChange({state:t,tr:r,transactions:o});return}!r&&!o&&(t=t.apply(t.tr.setMeta(yS,{}))),this.view.updateState(t),n&&(o==null?void 0:o.length)!==0&&this.onChange({state:t,tr:r,transactions:o}),this.manager.onStateUpdate({previousState:this.previousState,state:t,tr:r,transactions:o})}updateControlledState(t,e){this.previousStateOverride=e,t=t.apply(t.tr.setMeta(yS,{})),this.view.updateState(t),this.manager.onStateUpdate({previousState:this.previousState,state:t}),this.previousStateOverride=void 0}addProsemirrorViewToDom(t,e){this.props.insertPosition==="start"?t.insertBefore(e,t.firstChild):t.append(e)}onRefLoad(){be(yx(this,jc),{code:re.REACT_EDITOR_VIEW,message:"Something went wrong when initializing the text editor. Please check your setup."});const{autoFocus:t}=this.props;this.addProsemirrorViewToDom(yx(this,jc),this.view.dom),t&&this.focus(t),this.onChange(),this.addFocusListeners()}onUpdate(){this.view&&yx(this,jc)&&this.view.setProps({...this.view.props,editable:()=>this.props.editable??!0})}get frameworkOutput(){return{...this.baseOutput,getRootProps:this.getRootProps,portalContainer:this.manager.store.portalContainer}}resetRender(){this.rootPropsConfig.called=!1,this.rootPropsConfig.count=0}};jc=new WeakMap;var FO=typeof document<"u"?D.useLayoutEffect:D.useEffect;function LK(t){const e=D.useRef();return FO(()=>{e.current=t}),e.current}function NK(t){const{manager:e,state:n}=t,{placeholder:r,editable:o}=t;D.useRef(!0).current&&!rs(r)&&e.getExtension(wh).setOptions({placeholder:r}),D.useEffect(()=>{r!=null&&e.getExtension(wh).setOptions({placeholder:r})},[r,e]);const[s]=D.useState(()=>{if(n)return n;const a=e.createEmptyDoc(),[u,c]=Ot(t.initialContent)?t.initialContent:[t.initialContent??a];return e.createState({content:u,selection:c})}),l=$K({initialEditorState:s,getProps:()=>t});return D.useEffect(()=>()=>{l.destroy()},[l]),D.useEffect(()=>{l.onUpdate()},[o,l]),DK(l),l.frameworkOutput}function $K(t){const e=D.useRef(t);e.current=t;const n=D.useMemo(()=>new IK(e.current),[]);return n.update(t),n}function DK(t){const{state:e}=t.props,n=D.useRef(!!e),r=LK(e);FO(()=>{const o=e?n.current===!0:n.current===!1;be(o,{code:re.REACT_CONTROLLED,message:n.current?"You have attempted to switch from a controlled to an uncontrolled editor. Once you set up an editor as a controlled editor it must always provide a `state` prop.":"You have provided a `state` prop to an uncontrolled editor. In order to set up your editor as controlled you must provide the `state` prop from the very first render."}),!(!e||e===r)&&t.updateControlledState(e,r??void 0)},[e,r,t])}function PK(t={}){const{content:e,document:n,selection:r,extensions:o,...i}=t,s=MK(o??(()=>[]),i),[l,a]=D.useState(()=>s.createState({selection:r,content:e??s.createEmptyDoc()})),u=D.useCallback(({state:d})=>{a(d)},[]),c=D.useCallback(()=>s.output,[s]);return D.useMemo(()=>({state:l,setState:a,manager:s,onChange:u,getContext:c}),[c,s,u,l])}var BO={doc:!1,selection:!1,storedMark:!1};function zK(){const[t,e]=D.useState(BO);return TK(uf,"applyState",D.useCallback(({tr:n})=>{const r={...BO};n.docChanged&&(r.doc=!0),n.selectionSet&&(r.selection=!0),n.storedMarksSet&&(r.storedMark=!0),e(r)},[])),t}var bx=()=>ee.createElement("div",{className:yU.EDITOR_WRAPPER,...Xr().getRootProps()}),FK=t=>(t.hook(),null);function BK(t){const{children:e,autoRender:n,i18n:r,locale:o,supportedLocales:i,hooks:s=[],...l}=t,a=NK(l),u=fK(a.portalContainer),c=n==="start"||n===!0||!e&&rs(n),d=n==="end";return ee.createElement(_K,{i18n:r,locale:o,supportedLocales:i},ee.createElement(PO.Provider,{value:a},ee.createElement(pK,{portals:u}),s.map((h,p)=>ee.createElement(FK,{hook:h,key:p})),c&&ee.createElement(bx,null),e,d&&ee.createElement(bx,null)))}const Sh={black:"#000",white:"#fff"},Gc={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Kc={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Yc={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Xc={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},qc={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ch={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},HK={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function K(){return K=Object.assign?Object.assign.bind():function(t){for(var e=1;e{e[n]=HO(t[n])}),e}function qr(t,e,n={clone:!0}){const r=n.clone?K({},t):t;return Gi(t)&&Gi(e)&&Object.keys(e).forEach(o=>{o!=="__proto__"&&(Gi(e[o])&&o in t&&Gi(t[o])?r[o]=qr(t[o],e[o],n):n.clone?r[o]=Gi(e[o])?HO(e[o]):e[o]:r[o]=e[o])}),r}var UO={exports:{}},UK="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",WK=UK,VK=WK;function WO(){}function VO(){}VO.resetWarningCache=WO;var jK=function(){function t(r,o,i,s,l,a){if(a!==VK){var u=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 u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:VO,resetWarningCache:WO};return n.PropTypes=n,n};UO.exports=jK();var xx=UO.exports;function Zc(t){let e="https://mui.com/production-error/?code="+t;for(let n=1;n<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=s.createElement(n,{is:r.is}):(t=s.createElement(n),n==="select"&&(s=t,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):t=s.createElementNS(t,n),t[si]=e,t[eh]=r,pO(t,e,!1,!1),e.stateNode=t;e:{switch(s=Ny(n,r),n){case"dialog":Ct("cancel",t),Ct("close",t),o=r;break;case"iframe":case"object":case"embed":Ct("load",t),o=r;break;case"video":case"audio":for(o=0;oBc&&(e.flags|=128,r=!0,uh(i,!1),e.lanes=4194304)}else{if(!r)if(t=Sg(s),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),uh(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Rt)return Gn(e),null}else 2*Kt()-i.renderingStartTime>Bc&&n!==1073741824&&(e.flags|=128,r=!0,uh(i,!1),e.lanes=4194304);i.isBackwards?(s.sibling=e.child,e.child=s):(n=i.last,n!==null?n.sibling=s:e.child=s,i.last=s)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Kt(),e.sibling=null,n=Lt.current,xt(Lt,r?n&1|2:n&1),e):(Gn(e),null);case 22:case 23:return hx(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Kr&1073741824&&(Gn(e),e.subtreeFlags&6&&(e.flags|=8192)):Gn(e),null;case 24:return null;case 25:return null}throw Error(te(156,e.tag))}function uK(t,e){switch(wb(e),e.tag){case 1:return Sr(e.type)&&hg(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Dc(),Tt(Er),Tt(Vn),Db(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Nb(e),null;case 13:if(Tt(Lt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(te(340));Ic()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Tt(Lt),null;case 4:return Dc(),null;case 10:return Ab(e.type._context),null;case 22:case 23:return hx(),null;case 24:return null;default:return null}}var Ig=!1,Kn=!1,dK=typeof WeakSet=="function"?WeakSet:Set,he=null;function zc(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ht(t,e,r)}else n.current=null}function ex(t,e,n){try{n()}catch(r){Ht(t,e,r)}}var mO=!1;function hK(t,e){if(hb=Jf,t=K2(),ob(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,d=t,h=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(l=s+o),d!==i||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===t)break t;if(h===n&&++u===o&&(l=s),h===i&&++c===r&&(a=s),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(pb={focusedElem:t,selectionRange:n},Jf=!1,he=e;he!==null;)if(e=he,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,he=t;else for(;he!==null;){e=he;try{var f=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var g=f.memoizedProps,m=f.memoizedState,v=e.stateNode,y=v.getSnapshotBeforeUpdate(e.elementType===e.type?g:Bo(e.type,g),m);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(te(163))}}catch(x){Ht(e,e.return,x)}if(t=e.sibling,t!==null){t.return=e.return,he=t;break}he=e.return}return f=mO,mO=!1,f}function dh(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&t)===t){var i=o.destroy;o.destroy=void 0,i!==void 0&&ex(e,n,i)}o=o.next}while(o!==r)}}function Lg(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function tx(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function vO(t){var e=t.alternate;e!==null&&(t.alternate=null,vO(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[si],delete e[eh],delete e[vb],delete e[YG],delete e[XG])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function yO(t){return t.tag===5||t.tag===3||t.tag===4}function bO(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||yO(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function nx(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ug));else if(r!==4&&(t=t.child,t!==null))for(nx(t,e,n),t=t.sibling;t!==null;)nx(t,e,n),t=t.sibling}function rx(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(rx(t,e,n),t=t.sibling;t!==null;)rx(t,e,n),t=t.sibling}var In=null,Ho=!1;function Ys(t,e,n){for(n=n.child;n!==null;)xO(t,e,n),n=n.sibling}function xO(t,e,n){if(ii&&typeof ii.onCommitFiberUnmount=="function")try{ii.onCommitFiberUnmount(Gf,n)}catch{}switch(n.tag){case 5:Kn||zc(n,e);case 6:var r=In,o=Ho;In=null,Ys(t,e,n),In=r,Ho=o,In!==null&&(Ho?(t=In,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):In.removeChild(n.stateNode));break;case 18:In!==null&&(Ho?(t=In,n=n.stateNode,t.nodeType===8?mb(t.parentNode,n):t.nodeType===1&&mb(t,n),Wd(t)):mb(In,n.stateNode));break;case 4:r=In,o=Ho,In=n.stateNode.containerInfo,Ho=!0,Ys(t,e,n),In=r,Ho=o;break;case 0:case 11:case 14:case 15:if(!Kn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&ex(n,e,s),o=o.next}while(o!==r)}Ys(t,e,n);break;case 1:if(!Kn&&(zc(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ht(n,e,l)}Ys(t,e,n);break;case 21:Ys(t,e,n);break;case 22:n.mode&1?(Kn=(r=Kn)||n.memoizedState!==null,Ys(t,e,n),Kn=r):Ys(t,e,n);break;default:Ys(t,e,n)}}function wO(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new dK),e.forEach(function(r){var o=wK.bind(null,t,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Uo(t,e){var n=e.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Kt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*fK(r/1960))-r,10t?16:t,qs===null)var r=!1;else{if(t=qs,qs=null,zg=0,Ke&6)throw Error(te(331));var o=Ke;for(Ke|=4,he=t.current;he!==null;){var i=he,s=i.child;if(he.flags&16){var l=i.deletions;if(l!==null){for(var a=0;aKt()-sx?Ja(t,0):ix|=n),Ar(t,e)}function NO(t,e){e===0&&(t.mode&1?(e=Yf,Yf<<=1,!(Yf&130023424)&&(Yf=4194304)):e=1);var n=lr();t=Ui(t,e),t!==null&&(zd(t,e,n),Ar(t,n))}function xK(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),NO(t,n)}function wK(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,o=t.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(te(314))}r!==null&&r.delete(e),NO(t,n)}var $O;$O=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Er.current)Cr=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Cr=!1,lK(t,e,n);Cr=!!(t.flags&131072)}else Cr=!1,Rt&&e.flags&1048576&&pM(e,mg,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Og(t,e),t=e.pendingProps;var o=Rc(e,Vn.current);Nc(e,n),o=Fb(null,e,r,t,o,n);var i=Bb();return e.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Sr(r)?(i=!0,pg(e)):i=!1,e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Mb(e),o.updater=kg,e.stateNode=o,o._reactInternals=e,Ib(e,r,t,n),e=Yb(null,e,r,!0,i,n)):(e.tag=0,Rt&&i&&xb(e),ar(null,e,o,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Og(t,e),t=e.pendingProps,o=r._init,r=o(r._payload),e.type=r,o=e.tag=EK(r),t=Bo(r,t),o){case 0:e=Kb(null,e,r,t,n);break e;case 1:e=aO(null,e,r,t,n);break e;case 11:e=nO(null,e,r,t,n);break e;case 14:e=rO(null,e,r,Bo(r.type,t),n);break e}throw Error(te(306,r,""))}return e;case 0:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:Bo(r,o),Kb(t,e,r,o,n);case 1:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:Bo(r,o),aO(t,e,r,o,n);case 3:e:{if(lO(e),t===null)throw Error(te(387));r=e.pendingProps,i=e.memoizedState,o=i.element,bM(t,e),wg(e,r,null,n);var s=e.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){o=Pc(Error(te(423)),e),e=cO(t,e,r,n,o);break e}else if(r!==o){o=Pc(Error(te(424)),e),e=cO(t,e,r,n,o);break e}else for(Gr=Us(e.stateNode.containerInfo.firstChild),jr=e,Rt=!0,Fo=null,n=_M(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ic(),r===o){e=Vi(t,e,n);break e}ar(t,e,r,n)}e=e.child}return e;case 5:return RM(e),t===null&&Eb(e),r=e.type,o=e.pendingProps,i=t!==null?t.memoizedProps:null,s=o.children,fb(r,o)?s=null:i!==null&&fb(r,i)&&(e.flags|=32),sO(t,e),ar(t,e,s,n),e.child;case 6:return t===null&&Eb(e),null;case 13:return uO(t,e,n);case 4:return Lb(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=$c(e,null,r,n):ar(t,e,r,n),e.child;case 11:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:Bo(r,o),nO(t,e,r,o,n);case 7:return ar(t,e,e.pendingProps,n),e.child;case 8:return ar(t,e,e.pendingProps.children,n),e.child;case 12:return ar(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,o=e.pendingProps,i=e.memoizedProps,s=o.value,xt(yg,r._currentValue),r._currentValue=s,i!==null)if(zo(i.value,s)){if(i.children===o.children&&!Er.current){e=Vi(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Wi(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),_b(i.return,n,e),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===e.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(te(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),_b(s,n,e),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}ar(t,e,o.children,n),e=e.child}return e;case 9:return o=e.type,r=e.pendingProps.children,Nc(e,n),o=mo(o),r=r(o),e.flags|=1,ar(t,e,r,n),e.child;case 14:return r=e.type,o=Bo(r,e.pendingProps),o=Bo(r.type,o),rO(t,e,r,o,n);case 15:return oO(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:Bo(r,o),Og(t,e),e.tag=1,Sr(r)?(t=!0,pg(e)):t=!1,Nc(e,n),SM(e,r,o),Ib(e,r,o,n),Yb(null,e,r,!0,t,n);case 19:return hO(t,e,n);case 22:return iO(t,e,n)}throw Error(te(156,e.tag))};function DO(t,e){return f2(t,e)}function kK(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bo(t,e,n,r){return new kK(t,e,n,r)}function fx(t){return t=t.prototype,!(!t||!t.isReactComponent)}function EK(t){if(typeof t=="function")return fx(t)?1:0;if(t!=null){if(t=t.$$typeof,t===xy)return 11;if(t===Ey)return 14}return 2}function Qs(t,e){var n=t.alternate;return n===null?(n=bo(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Ug(t,e,n,r,o,i){var s=2;if(r=t,typeof t=="function")fx(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case mc:return el(n.children,o,i,e);case yy:s=8,o|=8;break;case by:return t=bo(12,n,e,o|2),t.elementType=by,t.lanes=i,t;case wy:return t=bo(13,n,e,o),t.elementType=wy,t.lanes=i,t;case ky:return t=bo(19,n,e,o),t.elementType=ky,t.lanes=i,t;case VR:return Wg(n,o,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case UR:s=10;break e;case WR:s=9;break e;case xy:s=11;break e;case Ey:s=14;break e;case Ns:s=16,r=null;break e}throw Error(te(130,t==null?t:typeof t,""))}return e=bo(s,n,e,o),e.elementType=t,e.type=r,e.lanes=i,e}function el(t,e,n,r){return t=bo(7,t,r,e),t.lanes=n,t}function Wg(t,e,n,r){return t=bo(22,t,r,e),t.elementType=VR,t.lanes=n,t.stateNode={isHidden:!1},t}function gx(t,e,n){return t=bo(6,t,null,e),t.lanes=n,t}function mx(t,e,n){return e=bo(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function SK(t,e,n,r,o){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wy(0),this.expirationTimes=Wy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wy(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function vx(t,e,n,r,o,i,s,l,a){return t=new SK(t,e,n,l,a),e===1?(e=1,i===!0&&(e|=8)):e=0,i=bo(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mb(i),t}function CK(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(UO)}catch(t){console.error(t)}}UO(),$R.exports=Ur;var mh=$R.exports;const qg=io(mh);var MK=Object.defineProperty,OK=Object.getOwnPropertyDescriptor,IK=(t,e,n,r)=>{for(var o=r>1?void 0:r?OK(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&MK(e,n,o),o},WO=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},xe=(t,e,n)=>(WO(t,e,"read from private field"),n?n.call(t):e.get(t)),Yr=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Xr=(t,e,n,r)=>(WO(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),vh,LK=class{constructor(){this.portals=new Map,Yr(this,vh,lf()),this.on=t=>xe(this,vh).on("update",t),this.once=t=>{const e=xe(this,vh).on("update",n=>{e(),t(n)});return e}}update(){xe(this,vh).emit("update",this.portals)}render({Component:t,container:e}){const n=this.portals.get(e);this.portals.set(e,{Component:t,key:(n==null?void 0:n.key)??Nl()}),this.update()}forceUpdate(){for(const[t,{Component:e}]of this.portals)this.portals.set(t,{Component:e,key:Nl()})}remove(t){this.portals.delete(t),this.update()}};vh=new WeakMap;var NK=t=>{const{portals:e}=t;return ee.createElement(ee.Fragment,null,e.map(([n,{Component:r,key:o}])=>mh.createPortal(ee.createElement(r,null),n,o)))};function $K(t){const[e,n]=D.useState(()=>Array.from(t.portals.entries()));return D.useEffect(()=>(n(Array.from(t.portals.entries())),t.on(r=>{n(Array.from(r.entries()))})),[t]),D.useMemo(()=>e,[e])}var $t,yh,tl,bh,Zg,xh,Uc,wh,Jg,Gi,cr,wx,VO=class{constructor({getPosition:t,node:e,portalContainer:n,view:r,ReactComponent:o,options:i}){Yr(this,$t,void 0),Yr(this,yh,[]),Yr(this,tl,void 0),Yr(this,bh,void 0),Yr(this,Zg,void 0),Yr(this,xh,void 0),Yr(this,Uc,void 0),Yr(this,wh,!1),Yr(this,Jg,void 0),Yr(this,Gi,void 0),Yr(this,cr,void 0),Yr(this,wx,a=>{a&&(be(xe(this,Gi),{code:re.REACT_NODE_VIEW,message:`You have applied a ref to a node view provided for '${xe(this,$t).type.name}' which doesn't support content.`}),a.append(xe(this,Gi)))}),this.Component=()=>{const a=xe(this,Zg);return be(a,{code:re.REACT_NODE_VIEW,message:`The custom react node view provided for ${xe(this,$t).type.name} doesn't have a valid ReactComponent`}),ee.createElement(a,{updateAttributes:this.updateAttributes,selected:this.selected,view:xe(this,tl),getPosition:xe(this,xh),node:xe(this,$t),forwardRef:xe(this,wx),decorations:xe(this,yh)})},this.updateAttributes=a=>{if(!xe(this,tl).editable)return;const u=xe(this,xh).call(this);if(u==null)return;const c=xe(this,tl).state.tr.setNodeMarkup(u,void 0,{...xe(this,$t).attrs,...a});xe(this,tl).dispatch(c)},be(Xe(t),{message:"You are attempting to use a node view for a mark type. This is not supported yet. Please check your configuration."}),Xr(this,$t,e),Xr(this,tl,r),Xr(this,bh,n),Xr(this,Zg,o),Xr(this,xh,t),Xr(this,Uc,i),Xr(this,cr,this.createDom());const{contentDOM:s,wrapper:l}=this.createContentDom()??{};Xr(this,Jg,s??void 0),Xr(this,Gi,l),xe(this,Gi)&&xe(this,cr).append(xe(this,Gi)),this.setDomAttributes(xe(this,$t),xe(this,cr)),this.Component.displayName=RS(`${xe(this,$t).type.name}NodeView`),this.renderComponent()}static create(t){const{portalContainer:e,ReactComponent:n,options:r}=t;return(o,i,s)=>new VO({options:r,node:o,view:i,getPosition:s,portalContainer:e,ReactComponent:n})}get selected(){return xe(this,wh)}get contentDOM(){return xe(this,Jg)}get dom(){return xe(this,cr)}renderComponent(){xe(this,bh).render({Component:this.Component,container:xe(this,cr)})}createDom(){const{defaultBlockNode:t,defaultInlineNode:e}=xe(this,Uc),n=xe(this,$t).isInline?document.createElement(e):document.createElement(t);return n.classList.add(`${MS(xe(this,$t).type.name)}-node-view-wrapper`),n}createContentDom(){var t,e;if(xe(this,$t).isLeaf)return;const n=(e=(t=xe(this,$t).type.spec).toDOM)==null?void 0:e.call(t,xe(this,$t));if(!n)return;const{contentDOM:r,dom:o}=Xo.renderSpec(document,n);let i;if(Ft(o))return i=o,o===r&&(i=document.createElement("span"),i.classList.add(`${MS(xe(this,$t).type.name)}-node-view-content-wrapper`),i.append(r)),Ft(r),{wrapper:i,contentDOM:r}}update(t,e){return Jp({types:xe(this,$t).type,node:t})?(xe(this,$t)===t&&xe(this,yh)===e||(xe(this,$t).sameMarkup(t)||this.setDomAttributes(t,xe(this,cr)),Xr(this,$t,t),Xr(this,yh,e),this.renderComponent()),!0):!1}setDomAttributes(t,e){const{toDOM:n}=xe(this,$t).type.spec;let r=t.attrs;if(n){const o=n(t);if(ke(o)||DK(o))return;rs(o[1])&&(r=o[1])}for(const[o,i]of nn(r))e.setAttribute(o,i)}selectNode(){Xr(this,wh,!0),xe(this,cr)&&xe(this,cr).classList.add(wS),this.renderComponent()}deselectNode(){Xr(this,wh,!1),xe(this,cr)&&xe(this,cr).classList.remove(wS),this.renderComponent()}destroy(){xe(this,bh).remove(xe(this,cr))}ignoreMutation(t){return t.type==="selection"?!xe(this,$t).type.spec.selectable:xe(this,Gi)?!xe(this,Gi).contains(t.target):!0}stopEvent(t){var e;if(!xe(this,cr))return!1;if(Xe(xe(this,Uc).stopEvent))return xe(this,Uc).stopEvent({event:t});const n=t.target;if(!(xe(this,cr).contains(n)&&!((e=this.contentDOM)!=null&&e.contains(n))))return!1;const o=t.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!o)return!0;const s=!!xe(this,$t).type.spec.draggable,l=_e.isSelectable(xe(this,$t)),a=t.type==="copy",u=t.type==="paste",c=t.type==="cut",d=t.type==="mousedown",h=t.type.startsWith("drag");return!s&&l&&h&&t.preventDefault(),!(h||o||a||u||c||d&&l)}},jO=VO;$t=new WeakMap,yh=new WeakMap,tl=new WeakMap,bh=new WeakMap,Zg=new WeakMap,xh=new WeakMap,Uc=new WeakMap,wh=new WeakMap,Jg=new WeakMap,Gi=new WeakMap,cr=new WeakMap,wx=new WeakMap;function DK(t){return n0(t)||rs(t)&&n0(t.dom)}var kh=class extends ct{constructor(){super(...arguments),this.portalContainer=new LK}get name(){return"reactComponent"}onCreate(){this.store.setStoreKey("portalContainer",this.portalContainer)}createNodeViews(){const t=ye(),e=this.store.managerSettings.nodeViewComponents??{};for(const r of this.store.extensions)!r.ReactComponent||!td(r)||r.reactComponentEnvironment==="ssr"||(t[r.name]=jO.create({options:this.options,ReactComponent:r.ReactComponent,portalContainer:this.portalContainer}));const n=nn({...this.options.nodeViewComponents,...e});for(const[r,o]of n)t[r]=jO.create({options:this.options,ReactComponent:o,portalContainer:this.portalContainer});return t}};kh=IK([Ne({defaultOptions:{defaultBlockNode:"div",defaultInlineNode:"span",defaultContentNode:"span",defaultEnvironment:"both",nodeViewComponents:{},stopEvent:null},staticKeys:["defaultBlockNode","defaultInlineNode","defaultContentNode","defaultEnvironment"]})],kh);var PK=Object.defineProperty,zK=Object.getOwnPropertyDescriptor,FK=(t,e,n,r)=>{for(var o=r>1?void 0:r?zK(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&PK(e,n,o),o},BK={...Ba.defaultOptions,...kh.defaultOptions},HK=[...Ba.staticKeys,...kh.staticKeys],Eh=class extends ct{get name(){return"react"}onSetOptions(t){const{pickChanged:e}=t;this.getExtension(Ba).setOptions(e(["placeholder"]))}createExtensions(){const{emptyNodeClass:t,placeholder:e,defaultBlockNode:n,defaultContentNode:r,defaultEnvironment:o,defaultInlineNode:i,nodeViewComponents:s}=this.options;return[new Ba({emptyNodeClass:t,placeholder:e,priority:tt.Low}),new kh({defaultBlockNode:n,defaultContentNode:r,defaultEnvironment:o,defaultInlineNode:i,nodeViewComponents:s})]}};Eh=FK([Ne({defaultOptions:BK,staticKeys:HK})],Eh);var GO={};Object.defineProperty(GO,"__esModule",{value:!0});function UK(){for(var t=[],e=0;e{if(!e.has(t))throw TypeError("Cannot "+n)},kx=(t,e,n)=>(qO(t,e,"read from private field"),n?n.call(t):e.get(t)),WK=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},VK=(t,e,n,r)=>(qO(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);function jK(){const[,t]=D.useState(ye());return D.useCallback(()=>{t(ye())},[])}var ZO=D.createContext(null);function qr(t){const e=D.useContext(ZO),n=D.useRef(jK());be(e,{code:re.REACT_PROVIDER_CONTEXT});const{addHandler:r}=e;return D.useEffect(()=>{let o=t;if(o){if(rs(o)){const{autoUpdate:i}=o;o=i?()=>n.current():void 0}if(Xe(o))return r("updated",o)}},[r,t]),e}function dr(t=!0){return qr({autoUpdate:t}).active}function GK(t=!1){return qr(t?{autoUpdate:!0}:void 0).attrs}function Wc(){return qr().chain.new()}function un(){return qr().commands}function Qg(){return qr({autoUpdate:!0}).getState().selection}function Sh(t,e=void 0,n){const{getExtension:r}=qr(),o=D.useMemo(()=>r(t),[t,r]);let i;if(Xe(e)?i=n?[o,...n]:[o,e]:i=e?[o,...Object.values(e)]:[],D.useEffect(()=>{Xe(e)||!e||o.setOptions(e)},i),D.useEffect(()=>{if(Xe(e))return e({addHandler:o.addHandler.bind(o),addCustomHandler:o.addCustomHandler.bind(o),extension:o})},i),!e)return o}function KK(t,e,n){const r=D.useCallback(({addHandler:o})=>o(e,n),[n,e]);return Sh(t,r)}function YK(){return qr({autoUpdate:!0}).getState()}function Ch(t=!1){return qr(t?{autoUpdate:!0}:void 0).helpers}var[XK,qK]=E9(({props:t})=>{const e=t.locale??"en",n=t.i18n??If,r=t.supportedLocales??[e],o=n._.bind(n);return{locale:e,i18n:n,supportedLocales:r,t:o}});function JO(t,e={}){const{core:n,react:r,...o}=e;return fB(t)?t:pB.create(()=>[...BS(t),new Eh(r),...wj(n)],o)}function ZK(t,e={}){const n=D.useRef(t),r=D.useRef(e),[o,i]=D.useState(()=>JO(t,e));return n.current=t,r.current=e,D.useEffect(()=>o.addHandler("destroy",()=>{i(()=>JO(n.current,r.current))}),[o]),o}var JK=typeof ur=="object"&&ur.__esModule&&ur.default?ur.default:ur,Vc,QK=class extends lB{constructor(t){if(super(t),WK(this,Vc,void 0),this.rootPropsConfig={called:!1,count:0},this.getRootProps=e=>this.internalGetRootProps(e,null),this.internalGetRootProps=(e,n)=>{this.rootPropsConfig.called=!0;const{refKey:r="ref",ref:o,...i}=e??ye();return{[r]:JK(o,this.onRef),key:this.uid,...i,children:n}},this.onRef=e=>{e&&(this.rootPropsConfig.count+=1,be(this.rootPropsConfig.count<=1,{code:re.REACT_GET_ROOT_PROPS,message:`Called ${this.rootPropsConfig.count} times`}),VK(this,Vc,e),this.onRefLoad())},this.manager.view){this.manager.view.setProps({state:this.manager.view.state,dispatchTransaction:this.dispatchTransaction,attributes:()=>this.getAttributes(),editable:()=>this.props.editable??!0});return}this.manager.getExtension(Ba).setOptions({placeholder:this.props.placeholder??""})}get name(){return"react"}update(t){return super.update(t),this}createView(t){return new tA(null,{state:t,dispatchTransaction:this.dispatchTransaction,attributes:()=>this.getAttributes(),editable:()=>this.props.editable??!0,plugins:[]})}updateState({state:t,...e}){const{triggerChange:n=!0,tr:r,transactions:o}=e;if(this.props.state){const{onChange:i}=this.props;be(i,{code:re.REACT_CONTROLLED,message:"You are required to provide the `onChange` handler when creating a controlled editor."}),be(n,{code:re.REACT_CONTROLLED,message:"Controlled editors do not support `clearContent` or `setContent` where `triggerChange` is `true`. Update the `state` prop instead."}),this.previousStateOverride||(this.previousStateOverride=this.getState()),this.onChange({state:t,tr:r,transactions:o});return}!r&&!o&&(t=t.apply(t.tr.setMeta(kS,{}))),this.view.updateState(t),n&&(o==null?void 0:o.length)!==0&&this.onChange({state:t,tr:r,transactions:o}),this.manager.onStateUpdate({previousState:this.previousState,state:t,tr:r,transactions:o})}updateControlledState(t,e){this.previousStateOverride=e,t=t.apply(t.tr.setMeta(kS,{})),this.view.updateState(t),this.manager.onStateUpdate({previousState:this.previousState,state:t}),this.previousStateOverride=void 0}addProsemirrorViewToDom(t,e){this.props.insertPosition==="start"?t.insertBefore(e,t.firstChild):t.append(e)}onRefLoad(){be(kx(this,Vc),{code:re.REACT_EDITOR_VIEW,message:"Something went wrong when initializing the text editor. Please check your setup."});const{autoFocus:t}=this.props;this.addProsemirrorViewToDom(kx(this,Vc),this.view.dom),t&&this.focus(t),this.onChange(),this.addFocusListeners()}onUpdate(){this.view&&kx(this,Vc)&&this.view.setProps({...this.view.props,editable:()=>this.props.editable??!0})}get frameworkOutput(){return{...this.baseOutput,getRootProps:this.getRootProps,portalContainer:this.manager.store.portalContainer}}resetRender(){this.rootPropsConfig.called=!1,this.rootPropsConfig.count=0}};Vc=new WeakMap;var QO=typeof document<"u"?D.useLayoutEffect:D.useEffect;function eY(t){const e=D.useRef();return QO(()=>{e.current=t}),e.current}function tY(t){const{manager:e,state:n}=t,{placeholder:r,editable:o}=t;D.useRef(!0).current&&!is(r)&&e.getExtension(Eh).setOptions({placeholder:r}),D.useEffect(()=>{r!=null&&e.getExtension(Eh).setOptions({placeholder:r})},[r,e]);const[s]=D.useState(()=>{if(n)return n;const a=e.createEmptyDoc(),[u,c]=Ot(t.initialContent)?t.initialContent:[t.initialContent??a];return e.createState({content:u,selection:c})}),l=nY({initialEditorState:s,getProps:()=>t});return D.useEffect(()=>()=>{l.destroy()},[l]),D.useEffect(()=>{l.onUpdate()},[o,l]),rY(l),l.frameworkOutput}function nY(t){const e=D.useRef(t);e.current=t;const n=D.useMemo(()=>new QK(e.current),[]);return n.update(t),n}function rY(t){const{state:e}=t.props,n=D.useRef(!!e),r=eY(e);QO(()=>{const o=e?n.current===!0:n.current===!1;be(o,{code:re.REACT_CONTROLLED,message:n.current?"You have attempted to switch from a controlled to an uncontrolled editor. Once you set up an editor as a controlled editor it must always provide a `state` prop.":"You have provided a `state` prop to an uncontrolled editor. In order to set up your editor as controlled you must provide the `state` prop from the very first render."}),!(!e||e===r)&&t.updateControlledState(e,r??void 0)},[e,r,t])}function oY(t={}){const{content:e,document:n,selection:r,extensions:o,...i}=t,s=ZK(o??(()=>[]),i),[l,a]=D.useState(()=>s.createState({selection:r,content:e??s.createEmptyDoc()})),u=D.useCallback(({state:d})=>{a(d)},[]),c=D.useCallback(()=>s.output,[s]);return D.useMemo(()=>({state:l,setState:a,manager:s,onChange:u,getContext:c}),[c,s,u,l])}var eI={doc:!1,selection:!1,storedMark:!1};function iY(){const[t,e]=D.useState(eI);return KK(hf,"applyState",D.useCallback(({tr:n})=>{const r={...eI};n.docChanged&&(r.doc=!0),n.selectionSet&&(r.selection=!0),n.storedMarksSet&&(r.storedMark=!0),e(r)},[])),t}var Ex=()=>ee.createElement("div",{className:zU.EDITOR_WRAPPER,...qr().getRootProps()}),sY=t=>(t.hook(),null);function aY(t){const{children:e,autoRender:n,i18n:r,locale:o,supportedLocales:i,hooks:s=[],...l}=t,a=tY(l),u=$K(a.portalContainer),c=n==="start"||n===!0||!e&&is(n),d=n==="end";return ee.createElement(XK,{i18n:r,locale:o,supportedLocales:i},ee.createElement(ZO.Provider,{value:a},ee.createElement(NK,{portals:u}),s.map((h,p)=>ee.createElement(sY,{hook:h,key:p})),c&&ee.createElement(Ex,null),e,d&&ee.createElement(Ex,null)))}const Th={black:"#000",white:"#fff"},jc={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Gc={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Kc={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Yc={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Xc={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ah={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},lY={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function K(){return K=Object.assign?Object.assign.bind():function(t){for(var e=1;e{e[n]=tI(t[n])}),e}function Zr(t,e,n={clone:!0}){const r=n.clone?K({},t):t;return Ki(t)&&Ki(e)&&Object.keys(e).forEach(o=>{o!=="__proto__"&&(Ki(e[o])&&o in t&&Ki(t[o])?r[o]=Zr(t[o],e[o],n):n.clone?r[o]=Ki(e[o])?tI(e[o]):e[o]:r[o]=e[o])}),r}var nI={exports:{}},cY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",uY=cY,dY=uY;function rI(){}function oI(){}oI.resetWarningCache=rI;var hY=function(){function t(r,o,i,s,l,a){if(a!==dY){var u=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 u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:oI,resetWarningCache:rI};return n.PropTypes=n,n};nI.exports=hY();var Sx=nI.exports;function qc(t){let e="https://mui.com/production-error/?code="+t;for(let n=1;nn==null?e:function(...o){e.apply(this,o),n.apply(this,o)},()=>{})}function YK(t,e=166){let n;function r(...o){const i=()=>{t.apply(this,o)};clearTimeout(n),n=setTimeout(i,e)}return r.clear=()=>{clearTimeout(n)},r}function Ar(t){return t&&t.ownerDocument||document}function Th(t){return Ar(t).defaultView||window}function Ex(t,e){typeof t=="function"?t(e):t&&(t.current=e)}const tl=typeof window<"u"?D.useLayoutEffect:D.useEffect;let KO=0;function XK(t){const[e,n]=D.useState(t),r=t||e;return D.useEffect(()=>{e==null&&(KO+=1,n(`mui-${KO}`))},[e]),r}const YO=Yv.useId;function qK(t){if(YO!==void 0){const e=YO();return t??e}return XK(t)}function ZK({controlled:t,default:e,name:n,state:r="value"}){const{current:o}=D.useRef(t!==void 0),[i,s]=D.useState(e),l=o?t:i,a=D.useCallback(u=>{o||s(u)},[]);return[l,a]}function nl(t){const e=D.useRef(t);return tl(()=>{e.current=t}),D.useCallback((...n)=>(0,e.current)(...n),[])}function _r(...t){return D.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{Ex(n,e)})},t)}let lm=!0,Sx=!1,XO;const JK={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function QK(t){const{type:e,tagName:n}=t;return!!(n==="INPUT"&&JK[e]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function eY(t){t.metaKey||t.altKey||t.ctrlKey||(lm=!0)}function Cx(){lm=!1}function tY(){this.visibilityState==="hidden"&&Sx&&(lm=!0)}function nY(t){t.addEventListener("keydown",eY,!0),t.addEventListener("mousedown",Cx,!0),t.addEventListener("pointerdown",Cx,!0),t.addEventListener("touchstart",Cx,!0),t.addEventListener("visibilitychange",tY,!0)}function rY(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch{}return lm||QK(e)}function qO(){const t=D.useCallback(o=>{o!=null&&nY(o.ownerDocument)},[]),e=D.useRef(!1);function n(){return e.current?(Sx=!0,window.clearTimeout(XO),XO=window.setTimeout(()=>{Sx=!1},100),e.current=!1,!0):!1}function r(o){return rY(o)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:r,onBlur:n,ref:t}}function ZO(t){const e=t.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}const JO=t=>{const e=D.useRef({});return D.useEffect(()=>{e.current=t}),e.current};function QO(t,e){const n=K({},e);return Object.keys(t).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=K({},t[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=t[r]||{},i=e[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=K({},i),Object.keys(o).forEach(s=>{n[r][s]=QO(o[s],i[s])}))}else n[r]===void 0&&(n[r]=t[r])}),n}function Ln(t,e,n=void 0){const r={};return Object.keys(t).forEach(o=>{r[o]=t[o].reduce((i,s)=>{if(s){const l=e(s);l!==""&&i.push(l),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const eI=t=>t,tI=(()=>{let t=eI;return{configure(e){t=e},generate(e){return t(e)},reset(){t=eI}}})(),oY={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function bn(t,e,n="Mui"){const r=oY[e];return r?`${n}-${r}`:`${tI.generate(t)}-${e}`}function xn(t,e,n="Mui"){const r={};return e.forEach(o=>{r[o]=bn(t,o,n)}),r}const Jc="$$material";function ze(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i=0)&&(n[o]=t[o]);return n}function nI(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var iY=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,sY=nI(function(t){return iY.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function aY(t){if(t.sheet)return t.sheet;for(var e=0;e0?Nn(eu,--Rr):0,Qc--,en===10&&(Qc=1,hm--),en}function Zr(){return en=Rr2||Mh(en)>3?"":" "}function xY(t,e){for(;--e&&Zr()&&!(en<48||en>102||en>57&&en<65||en>70&&en<97););return Rh(t,fm()+(e<6&&hi()==32&&Zr()==32))}function Mx(t){for(;Zr();)switch(en){case t:return Rr;case 34:case 39:t!==34&&t!==39&&Mx(en);break;case 40:t===41&&Mx(t);break;case 92:Zr();break}return Rr}function wY(t,e){for(;Zr()&&t+en!==57;)if(t+en===84&&hi()===47)break;return"/*"+Rh(e,Rr-1)+"*"+um(t===47?t:Zr())}function kY(t){for(;!Mh(hi());)Zr();return Rh(t,Rr)}function EY(t){return lI(mm("",null,null,null,[""],t=aI(t),0,[0],t))}function mm(t,e,n,r,o,i,s,l,a){for(var u=0,c=0,d=s,h=0,p=0,f=0,g=1,m=1,v=1,y=0,b="",x=o,k=i,w=r,S=b;m;)switch(f=y,y=Zr()){case 40:if(f!=108&&Nn(S,d-1)==58){_x(S+=Ze(gm(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=gm(y);break;case 9:case 10:case 13:case 32:S+=bY(f);break;case 92:S+=xY(fm()-1,7);continue;case 47:switch(hi()){case 42:case 47:dm(SY(wY(Zr(),fm()),e,n),a);break;default:S+="/"}break;case 123*g:l[u++]=di(S)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+c:v==-1&&(S=Ze(S,/\f/g,"")),p>0&&di(S)-d&&dm(p>32?uI(S+";",r,n,d-1):uI(Ze(S," ","")+";",r,n,d-2),a);break;case 59:S+=";";default:if(dm(w=cI(S,e,n,u,c,o,l,b,x=[],k=[],d),i),y===123)if(c===0)mm(S,e,w,w,x,i,d,l,k);else switch(h===99&&Nn(S,3)===110?100:h){case 100:case 108:case 109:case 115:mm(t,w,w,r&&dm(cI(t,w,w,0,0,o,l,b,o,x=[],d),k),o,k,d,l,r?x:k);break;default:mm(S,w,w,w,[""],k,0,l,k)}}u=c=p=0,g=v=1,b=S="",d=s;break;case 58:d=1+di(S),p=f;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&yY()==125)continue}switch(S+=um(y),y*g){case 38:v=c>0?1:(S+="\f",-1);break;case 44:l[u++]=(di(S)-1)*v,v=1;break;case 64:hi()===45&&(S+=gm(Zr())),h=hi(),c=d=di(b=S+=kY(fm())),y++;break;case 45:f===45&&di(S)==2&&(g=0)}}return i}function cI(t,e,n,r,o,i,s,l,a,u,c){for(var d=o-1,h=o===0?i:[""],p=Rx(h),f=0,g=0,m=0;f0?h[v]+" "+y:Ze(y,/&\f/g,h[v])))&&(a[m++]=b);return pm(t,e,n,o===0?Tx:l,a,u,c)}function SY(t,e,n){return pm(t,e,n,rI,um(vY()),Ah(t,2,-2),0)}function uI(t,e,n,r){return pm(t,e,n,Ax,Ah(t,0,r),Ah(t,r+1,-1),r)}function tu(t,e){for(var n="",r=Rx(t),o=0;o6)switch(Nn(t,e+1)){case 109:if(Nn(t,e+4)!==45)break;case 102:return Ze(t,/(.+:)(.+)-([^]+)/,"$1"+qe+"$2-$3$1"+cm+(Nn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~_x(t,"stretch")?hI(Ze(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Nn(t,e+1)!==115)break;case 6444:switch(Nn(t,di(t)-3-(~_x(t,"!important")&&10))){case 107:return Ze(t,":",":"+qe)+t;case 101:return Ze(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qe+(Nn(t,14)===45?"inline-":"")+"box$3$1"+qe+"$2$3$1"+Kn+"$2box$3")+t}break;case 5936:switch(Nn(t,e+11)){case 114:return qe+t+Kn+Ze(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return qe+t+Kn+Ze(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return qe+t+Kn+Ze(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return qe+t+Kn+t+t}return t}var LY=function(e,n,r,o){if(e.length>-1&&!e.return)switch(e.type){case Ax:e.return=hI(e.value,e.length);break;case oI:return tu([_h(e,{value:Ze(e.value,"@","@"+qe)})],o);case Tx:if(e.length)return mY(e.props,function(i){switch(gY(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return tu([_h(e,{props:[Ze(i,/:(read-\w+)/,":"+cm+"$1")]})],o);case"::placeholder":return tu([_h(e,{props:[Ze(i,/:(plac\w+)/,":"+qe+"input-$1")]}),_h(e,{props:[Ze(i,/:(plac\w+)/,":"+cm+"$1")]}),_h(e,{props:[Ze(i,/:(plac\w+)/,Kn+"input-$1")]})],o)}return""})}},NY=[LY],$Y=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(g){var m=g.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=e.stylisPlugins||NY,i={},s,l=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var m=g.getAttribute("data-emotion").split(" "),v=1;vn==null?e:function(...o){e.apply(this,o),n.apply(this,o)},()=>{})}function gY(t,e=166){let n;function r(...o){const i=()=>{t.apply(this,o)};clearTimeout(n),n=setTimeout(i,e)}return r.clear=()=>{clearTimeout(n)},r}function _r(t){return t&&t.ownerDocument||document}function _h(t){return _r(t).defaultView||window}function Ax(t,e){typeof t=="function"?t(e):t&&(t.current=e)}const nl=typeof window<"u"?D.useLayoutEffect:D.useEffect;let aI=0;function mY(t){const[e,n]=D.useState(t),r=t||e;return D.useEffect(()=>{e==null&&(aI+=1,n(`mui-${aI}`))},[e]),r}const lI=qv.useId;function vY(t){if(lI!==void 0){const e=lI();return t??e}return mY(t)}function yY({controlled:t,default:e,name:n,state:r="value"}){const{current:o}=D.useRef(t!==void 0),[i,s]=D.useState(e),l=o?t:i,a=D.useCallback(u=>{o||s(u)},[]);return[l,a]}function rl(t){const e=D.useRef(t);return nl(()=>{e.current=t}),D.useCallback((...n)=>(0,e.current)(...n),[])}function Rr(...t){return D.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{Ax(n,e)})},t)}let um=!0,_x=!1,cI;const bY={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function xY(t){const{type:e,tagName:n}=t;return!!(n==="INPUT"&&bY[e]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function wY(t){t.metaKey||t.altKey||t.ctrlKey||(um=!0)}function Rx(){um=!1}function kY(){this.visibilityState==="hidden"&&_x&&(um=!0)}function EY(t){t.addEventListener("keydown",wY,!0),t.addEventListener("mousedown",Rx,!0),t.addEventListener("pointerdown",Rx,!0),t.addEventListener("touchstart",Rx,!0),t.addEventListener("visibilitychange",kY,!0)}function SY(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch{}return um||xY(e)}function uI(){const t=D.useCallback(o=>{o!=null&&EY(o.ownerDocument)},[]),e=D.useRef(!1);function n(){return e.current?(_x=!0,window.clearTimeout(cI),cI=window.setTimeout(()=>{_x=!1},100),e.current=!1,!0):!1}function r(o){return SY(o)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:r,onBlur:n,ref:t}}function dI(t){const e=t.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}const hI=t=>{const e=D.useRef({});return D.useEffect(()=>{e.current=t}),e.current};function pI(t,e){const n=K({},e);return Object.keys(t).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=K({},t[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=t[r]||{},i=e[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=K({},i),Object.keys(o).forEach(s=>{n[r][s]=pI(o[s],i[s])}))}else n[r]===void 0&&(n[r]=t[r])}),n}function Nn(t,e,n=void 0){const r={};return Object.keys(t).forEach(o=>{r[o]=t[o].reduce((i,s)=>{if(s){const l=e(s);l!==""&&i.push(l),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const fI=t=>t,gI=(()=>{let t=fI;return{configure(e){t=e},generate(e){return t(e)},reset(){t=fI}}})(),CY={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function bn(t,e,n="Mui"){const r=CY[e];return r?`${n}-${r}`:`${gI.generate(t)}-${e}`}function xn(t,e,n="Mui"){const r={};return e.forEach(o=>{r[o]=bn(t,o,n)}),r}const Zc="$$material";function ze(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i=0)&&(n[o]=t[o]);return n}function mI(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var TY=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,AY=mI(function(t){return TY.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function _Y(t){if(t.sheet)return t.sheet;for(var e=0;e0?$n(Qc,--Mr):0,Jc--,en===10&&(Jc=1,fm--),en}function Jr(){return en=Mr2||Ih(en)>3?"":" "}function HY(t,e){for(;--e&&Jr()&&!(en<48||en>102||en>57&&en<65||en>70&&en<97););return Oh(t,mm()+(e<6&&di()==32&&Jr()==32))}function Nx(t){for(;Jr();)switch(en){case t:return Mr;case 34:case 39:t!==34&&t!==39&&Nx(en);break;case 40:t===41&&Nx(t);break;case 92:Jr();break}return Mr}function UY(t,e){for(;Jr()&&t+en!==57;)if(t+en===84&&di()===47)break;return"/*"+Oh(e,Mr-1)+"*"+hm(t===47?t:Jr())}function WY(t){for(;!Ih(di());)Jr();return Oh(t,Mr)}function VY(t){return kI(ym("",null,null,null,[""],t=wI(t),0,[0],t))}function ym(t,e,n,r,o,i,s,l,a){for(var u=0,c=0,d=s,h=0,p=0,f=0,g=1,m=1,v=1,y=0,b="",x=o,k=i,w=r,S=b;m;)switch(f=y,y=Jr()){case 40:if(f!=108&&$n(S,d-1)==58){Ix(S+=Ze(vm(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=vm(y);break;case 9:case 10:case 13:case 32:S+=BY(f);break;case 92:S+=HY(mm()-1,7);continue;case 47:switch(di()){case 42:case 47:pm(jY(UY(Jr(),mm()),e,n),a);break;default:S+="/"}break;case 123*g:l[u++]=ui(S)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+c:v==-1&&(S=Ze(S,/\f/g,"")),p>0&&ui(S)-d&&pm(p>32?SI(S+";",r,n,d-1):SI(Ze(S," ","")+";",r,n,d-2),a);break;case 59:S+=";";default:if(pm(w=EI(S,e,n,u,c,o,l,b,x=[],k=[],d),i),y===123)if(c===0)ym(S,e,w,w,x,i,d,l,k);else switch(h===99&&$n(S,3)===110?100:h){case 100:case 108:case 109:case 115:ym(t,w,w,r&&pm(EI(t,w,w,0,0,o,l,b,o,x=[],d),k),o,k,d,l,r?x:k);break;default:ym(S,w,w,w,[""],k,0,l,k)}}u=c=p=0,g=v=1,b=S="",d=s;break;case 58:d=1+ui(S),p=f;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&FY()==125)continue}switch(S+=hm(y),y*g){case 38:v=c>0?1:(S+="\f",-1);break;case 44:l[u++]=(ui(S)-1)*v,v=1;break;case 64:di()===45&&(S+=vm(Jr())),h=di(),c=d=ui(b=S+=WY(mm())),y++;break;case 45:f===45&&ui(S)==2&&(g=0)}}return i}function EI(t,e,n,r,o,i,s,l,a,u,c){for(var d=o-1,h=o===0?i:[""],p=Lx(h),f=0,g=0,m=0;f0?h[v]+" "+y:Ze(y,/&\f/g,h[v])))&&(a[m++]=b);return gm(t,e,n,o===0?Mx:l,a,u,c)}function jY(t,e,n){return gm(t,e,n,vI,hm(zY()),Rh(t,2,-2),0)}function SI(t,e,n,r){return gm(t,e,n,Ox,Rh(t,0,r),Rh(t,r+1,-1),r)}function eu(t,e){for(var n="",r=Lx(t),o=0;o6)switch($n(t,e+1)){case 109:if($n(t,e+4)!==45)break;case 102:return Ze(t,/(.+:)(.+)-([^]+)/,"$1"+qe+"$2-$3$1"+dm+($n(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Ix(t,"stretch")?TI(Ze(t,"stretch","fill-available"),e)+t:t}break;case 4949:if($n(t,e+1)!==115)break;case 6444:switch($n(t,ui(t)-3-(~Ix(t,"!important")&&10))){case 107:return Ze(t,":",":"+qe)+t;case 101:return Ze(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qe+($n(t,14)===45?"inline-":"")+"box$3$1"+qe+"$2$3$1"+Yn+"$2box$3")+t}break;case 5936:switch($n(t,e+11)){case 114:return qe+t+Yn+Ze(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return qe+t+Yn+Ze(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return qe+t+Yn+Ze(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return qe+t+Yn+t+t}return t}var eX=function(e,n,r,o){if(e.length>-1&&!e.return)switch(e.type){case Ox:e.return=TI(e.value,e.length);break;case yI:return eu([Mh(e,{value:Ze(e.value,"@","@"+qe)})],o);case Mx:if(e.length)return PY(e.props,function(i){switch(DY(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return eu([Mh(e,{props:[Ze(i,/:(read-\w+)/,":"+dm+"$1")]})],o);case"::placeholder":return eu([Mh(e,{props:[Ze(i,/:(plac\w+)/,":"+qe+"input-$1")]}),Mh(e,{props:[Ze(i,/:(plac\w+)/,":"+dm+"$1")]}),Mh(e,{props:[Ze(i,/:(plac\w+)/,Yn+"input-$1")]})],o)}return""})}},tX=[eX],nX=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(g){var m=g.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=e.stylisPlugins||tX,i={},s,l=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var m=g.getAttribute("data-emotion").split(" "),v=1;v=4;++r,o-=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(o){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 YY={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},XY=/[A-Z]|^ms/g,qY=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yI=function(e){return e.charCodeAt(1)===45},bI=function(e){return e!=null&&typeof e!="boolean"},Nx=nI(function(t){return yI(t)?t:t.replace(XY,"-$&").toLowerCase()}),xI=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(qY,function(r,o,i){return pi={name:o,styles:i,next:pi},o})}return YY[e]!==1&&!yI(e)&&typeof n=="number"&&n!==0?n+"px":n},Sge="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Oh(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 pi={name:n.name,styles:n.styles,next:pi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)pi={name:r.name,styles:r.styles,next:pi},r=r.next;var o=n.styles+";";return o}return ZY(t,e,n)}case"function":{if(t!==void 0){var i=pi,s=n(t);return pi=i,Oh(t,e,s)}break}}if(e==null)return n;var l=e[n];return l!==void 0?l:n}function ZY(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o96?nX:rX},CI=function(e,n,r){var o;if(n){var i=n.shouldForwardProp;o=e.__emotion_forwardProp&&i?function(s){return e.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=e.__emotion_forwardProp),o},oX=function(e){var n=e.cache,r=e.serialized,o=e.isStringTag;return vI(n,r,o),eX(function(){return GY(n,r,o)}),null},iX=function t(e,n){var r=e.__emotion_real===e,o=r&&e.__emotion_base||e,i,s;n!==void 0&&(i=n.label,s=n.target);var l=CI(e,n,r),a=l||SI(o),u=!a("as");return function(){var c=arguments,d=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var h=c.length,p=1;p{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))},lX=["values","unit","step"],cX=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>K({},n,{[r.key]:r.val}),{})};function uX(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=t,o=ze(t,lX),i=cX(e),s=Object.keys(i);function l(h){return`@media (min-width:${typeof e[h]=="number"?e[h]:h}${n})`}function a(h){return`@media (max-width:${(typeof e[h]=="number"?e[h]:h)-r/100}${n})`}function u(h,p){const f=s.indexOf(p);return`@media (min-width:${typeof e[h]=="number"?e[h]:h}${n}) and (max-width:${(f!==-1&&typeof e[s[f]]=="number"?e[s[f]]:p)-r/100}${n})`}function c(h){return s.indexOf(h)+1`@media (min-width:${Px[t]}px)`};function Vo(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const i=r.breakpoints||AI;return e.reduce((s,l,a)=>(s[i.up(i.keys[a])]=n(e[a]),s),{})}if(typeof e=="object"){const i=r.breakpoints||AI;return Object.keys(e).reduce((s,l)=>{if(Object.keys(i.values||Px).indexOf(l)!==-1){const a=i.up(l);s[a]=n(e[l],l)}else{const a=l;s[a]=e[a]}return s},{})}return n(e)}function _I(t={}){var e;return((e=t.keys)==null?void 0:e.reduce((r,o)=>{const i=t.up(o);return r[i]={},r},{}))||{}}function RI(t,e){return t.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},e)}function hX(t,...e){const n=_I(t),r=[n,...e].reduce((o,i)=>qr(o,i),{});return RI(Object.keys(n),r)}function pX(t,e){if(typeof t!="object")return{};const n={},r=Object.keys(e);return Array.isArray(t)?r.forEach((o,i)=>{i{t[o]!=null&&(n[o]=!0)}),n}function zx({values:t,breakpoints:e,base:n}){const r=n||pX(t,e),o=Object.keys(r);if(o.length===0)return t;let i;return o.reduce((s,l,a)=>(Array.isArray(t)?(s[l]=t[a]!=null?t[a]:t[i],i=a):typeof t=="object"?(s[l]=t[l]!=null?t[l]:t[i],i=l):s[l]=t,s),{})}function _m(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,t);if(r!=null)return r}return e.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,t)}function Rm(t,e,n,r=n){let o;return typeof t=="function"?o=t(n):Array.isArray(t)?o=t[n]||r:o=_m(t,n)||r,e&&(o=e(o,r,t)),o}function ot(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:o}=t,i=s=>{if(s[e]==null)return null;const l=s[e],a=s.theme,u=_m(a,r)||{};return Vo(s,l,d=>{let h=Rm(u,o,d);return d===h&&typeof d=="string"&&(h=Rm(u,o,`${e}${d==="default"?"":ft(d)}`,d)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[e],i}function fX(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const gX={m:"margin",p:"padding"},mX={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},MI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vX=fX(t=>{if(t.length>2)if(MI[t])t=MI[t];else return[t];const[e,n]=t.split(""),r=gX[e],o=mX[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Fx=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Bx=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Fx,...Bx];function Lh(t,e,n,r){var o;const i=(o=_m(t,e,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Hx(t){return Lh(t,"spacing",8)}function rl(t,e){if(typeof e=="string"||e==null)return e;const n=Math.abs(e),r=t(n);return e>=0?r:typeof r=="number"?-r:`-${r}`}function yX(t,e){return n=>t.reduce((r,o)=>(r[o]=rl(e,n),r),{})}function bX(t,e,n,r){if(e.indexOf(n)===-1)return null;const o=vX(n),i=yX(o,r),s=t[n];return Vo(t,s,i)}function OI(t,e){const n=Hx(t.theme);return Object.keys(t).map(r=>bX(t,e,r,n)).reduce(Ih,{})}function Ut(t){return OI(t,Fx)}Ut.propTypes={},Ut.filterProps=Fx;function Wt(t){return OI(t,Bx)}Wt.propTypes={},Wt.filterProps=Bx;function xX(t=8){if(t.mui)return t;const e=Hx({spacing:t}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=e(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Mm(...t){const e=t.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>e[i]?Ih(o,e[i](r)):o,{});return n.propTypes={},n.filterProps=t.reduce((r,o)=>r.concat(o.filterProps),[]),n}function fi(t){return typeof t!="number"?t:`${t}px solid`}const wX=ot({prop:"border",themeKey:"borders",transform:fi}),kX=ot({prop:"borderTop",themeKey:"borders",transform:fi}),EX=ot({prop:"borderRight",themeKey:"borders",transform:fi}),SX=ot({prop:"borderBottom",themeKey:"borders",transform:fi}),CX=ot({prop:"borderLeft",themeKey:"borders",transform:fi}),TX=ot({prop:"borderColor",themeKey:"palette"}),AX=ot({prop:"borderTopColor",themeKey:"palette"}),_X=ot({prop:"borderRightColor",themeKey:"palette"}),RX=ot({prop:"borderBottomColor",themeKey:"palette"}),MX=ot({prop:"borderLeftColor",themeKey:"palette"}),Om=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=Lh(t.theme,"shape.borderRadius",4),n=r=>({borderRadius:rl(e,r)});return Vo(t,t.borderRadius,n)}return null};Om.propTypes={},Om.filterProps=["borderRadius"],Mm(wX,kX,EX,SX,CX,TX,AX,_X,RX,MX,Om);const Im=t=>{if(t.gap!==void 0&&t.gap!==null){const e=Lh(t.theme,"spacing",8),n=r=>({gap:rl(e,r)});return Vo(t,t.gap,n)}return null};Im.propTypes={},Im.filterProps=["gap"];const Lm=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=Lh(t.theme,"spacing",8),n=r=>({columnGap:rl(e,r)});return Vo(t,t.columnGap,n)}return null};Lm.propTypes={},Lm.filterProps=["columnGap"];const Nm=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=Lh(t.theme,"spacing",8),n=r=>({rowGap:rl(e,r)});return Vo(t,t.rowGap,n)}return null};Nm.propTypes={},Nm.filterProps=["rowGap"];const OX=ot({prop:"gridColumn"}),IX=ot({prop:"gridRow"}),LX=ot({prop:"gridAutoFlow"}),NX=ot({prop:"gridAutoColumns"}),$X=ot({prop:"gridAutoRows"}),DX=ot({prop:"gridTemplateColumns"}),PX=ot({prop:"gridTemplateRows"}),zX=ot({prop:"gridTemplateAreas"}),FX=ot({prop:"gridArea"});Mm(Im,Lm,Nm,OX,IX,LX,NX,$X,DX,PX,zX,FX);function nu(t,e){return e==="grey"?e:t}const BX=ot({prop:"color",themeKey:"palette",transform:nu}),HX=ot({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nu}),UX=ot({prop:"backgroundColor",themeKey:"palette",transform:nu});Mm(BX,HX,UX);function Qr(t){return t<=1&&t!==0?`${t*100}%`:t}const WX=ot({prop:"width",transform:Qr}),Ux=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var r,o;const i=((r=t.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Px[n];return i?((o=t.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${t.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Qr(n)}};return Vo(t,t.maxWidth,e)}return null};Ux.filterProps=["maxWidth"];const VX=ot({prop:"minWidth",transform:Qr}),jX=ot({prop:"height",transform:Qr}),GX=ot({prop:"maxHeight",transform:Qr}),KX=ot({prop:"minHeight",transform:Qr});ot({prop:"size",cssProperty:"width",transform:Qr}),ot({prop:"size",cssProperty:"height",transform:Qr});const YX=ot({prop:"boxSizing"});Mm(WX,Ux,VX,jX,GX,KX,YX);const $m={border:{themeKey:"borders",transform:fi},borderTop:{themeKey:"borders",transform:fi},borderRight:{themeKey:"borders",transform:fi},borderBottom:{themeKey:"borders",transform:fi},borderLeft:{themeKey:"borders",transform:fi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Om},color:{themeKey:"palette",transform:nu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nu},backgroundColor:{themeKey:"palette",transform:nu},p:{style:Wt},pt:{style:Wt},pr:{style:Wt},pb:{style:Wt},pl:{style:Wt},px:{style:Wt},py:{style:Wt},padding:{style:Wt},paddingTop:{style:Wt},paddingRight:{style:Wt},paddingBottom:{style:Wt},paddingLeft:{style:Wt},paddingX:{style:Wt},paddingY:{style:Wt},paddingInline:{style:Wt},paddingInlineStart:{style:Wt},paddingInlineEnd:{style:Wt},paddingBlock:{style:Wt},paddingBlockStart:{style:Wt},paddingBlockEnd:{style:Wt},m:{style:Ut},mt:{style:Ut},mr:{style:Ut},mb:{style:Ut},ml:{style:Ut},mx:{style:Ut},my:{style:Ut},margin:{style:Ut},marginTop:{style:Ut},marginRight:{style:Ut},marginBottom:{style:Ut},marginLeft:{style:Ut},marginX:{style:Ut},marginY:{style:Ut},marginInline:{style:Ut},marginInlineStart:{style:Ut},marginInlineEnd:{style:Ut},marginBlock:{style:Ut},marginBlockStart:{style:Ut},marginBlockEnd:{style:Ut},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Im},rowGap:{style:Nm},columnGap:{style:Lm},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qr},maxWidth:{style:Ux},minWidth:{transform:Qr},height:{transform:Qr},maxHeight:{transform:Qr},minHeight:{transform:Qr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function XX(...t){const e=t.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function qX(t,e){return typeof t=="function"?t(e):t}function ZX(){function t(n,r,o,i){const s={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:u,transform:c,style:d}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=_m(o,u)||{};return d?d(s):Vo(s,r,f=>{let g=Rm(h,c,f);return f===g&&typeof f=="string"&&(g=Rm(h,c,`${n}${f==="default"?"":ft(f)}`,f)),a===!1?g:{[a]:g}})}function e(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:$m;function l(a){let u=a;if(typeof a=="function")u=a(i);else if(typeof a!="object")return a;if(!u)return null;const c=_I(i.breakpoints),d=Object.keys(c);let h=c;return Object.keys(u).forEach(p=>{const f=qX(u[p],i);if(f!=null)if(typeof f=="object")if(s[p])h=Ih(h,t(p,f,i,s));else{const g=Vo({theme:i},f,m=>({[p]:m}));XX(g,f)?h[p]=e({sx:f,theme:i}):h=Ih(h,g)}else h=Ih(h,t(p,f,i,s))}),RI(d,h)}return Array.isArray(o)?o.map(l):l(o)}return e}const Nh=ZX();Nh.filterProps=["sx"];const JX=["breakpoints","palette","spacing","shape"];function Dm(t={},...e){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=t,s=ze(t,JX),l=uX(n),a=xX(o);let u=qr({breakpoints:l,direction:"ltr",components:{},palette:K({mode:"light"},r),spacing:a,shape:K({},dX,i)},s);return u=e.reduce((c,d)=>qr(c,d),u),u.unstable_sxConfig=K({},$m,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Nh({sx:d,theme:this})},u}function QX(t){return Object.keys(t).length===0}function Wx(t=null){const e=D.useContext($x);return!e||QX(e)?t:e}const eq=Dm();function Vx(t=eq){return Wx(t)}const tq=["sx"],nq=t=>{var e,n;const r={systemProps:{},otherProps:{}},o=(e=t==null||(n=t.theme)==null?void 0:n.unstable_sxConfig)!=null?e:$m;return Object.keys(t).forEach(i=>{o[i]?r.systemProps[i]=t[i]:r.otherProps[i]=t[i]}),r};function jx(t){const{sx:e}=t,n=ze(t,tq),{systemProps:r,otherProps:o}=nq(n);let i;return Array.isArray(e)?i=[r,...e]:typeof e=="function"?i=(...s)=>{const l=e(...s);return Gi(l)?K({},r,l):r}:i=K({},r,e),K({},o,{sx:i})}function II(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;el!=="theme"&&l!=="sx"&&l!=="as"})(Nh);return D.forwardRef(function(a,u){const c=Vx(n),d=jx(a),{className:h,component:p="div"}=d,f=ze(d,rq);return V.jsx(i,K({as:p,ref:u,className:je(h,o?o(r):r),theme:e&&c[e]||c},f))})}const iq=["variant"];function LI(t){return t.length===0}function NI(t){const{variant:e}=t,n=ze(t,iq);let r=e||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=LI(r)?t[o]:ft(t[o]):r+=`${LI(r)?o:ft(o)}${ft(t[o].toString())}`}),r}const sq=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function aq(t){return Object.keys(t).length===0}function lq(t){return typeof t=="string"&&t.charCodeAt(0)>96}const cq=(t,e)=>e.components&&e.components[t]&&e.components[t].styleOverrides?e.components[t].styleOverrides:null,Pm=t=>{const e={};return t&&t.forEach(n=>{const r=NI(n.props);e[r]=n.style}),e},uq=(t,e)=>{let n=[];return e&&e.components&&e.components[t]&&e.components[t].variants&&(n=e.components[t].variants),Pm(n)},zm=(t,e,n)=>{const{ownerState:r={}}=t,o=[];return n&&n.forEach(i=>{let s=!0;Object.keys(i.props).forEach(l=>{r[l]!==i.props[l]&&t[l]!==i.props[l]&&(s=!1)}),s&&o.push(e[NI(i.props)])}),o},dq=(t,e,n,r)=>{var o;const i=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return zm(t,e,i)};function Fm(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const hq=Dm(),pq=t=>t&&t.charAt(0).toLowerCase()+t.slice(1);function Bm({defaultTheme:t,theme:e,themeId:n}){return aq(e)?t:e[n]||e}function fq(t){return t?(e,n)=>n[t]:null}const $I=({styledArg:t,props:e,defaultTheme:n,themeId:r})=>{const o=t(K({},e,{theme:Bm(K({},e,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){const s=zm(e,Pm(i),i);return[o,...s]}return o};function DI(t={}){const{themeId:e,defaultTheme:n=hq,rootShouldForwardProp:r=Fm,slotShouldForwardProp:o=Fm}=t,i=s=>Nh(K({},s,{theme:Bm(K({},s,{defaultTheme:n,themeId:e}))}));return i.__mui_systemSx=!0,(s,l={})=>{aX(s,x=>x.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:a,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:h=fq(pq(u))}=l,p=ze(l,sq),f=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=d||!1;let m,v=Fm;u==="Root"||u==="root"?v=r:u?v=o:lq(s)&&(v=void 0);const y=TI(s,K({shouldForwardProp:v,label:m},p)),b=(x,...k)=>{const w=k?k.map(O=>{if(typeof O=="function"&&O.__emotion_real!==O)return R=>$I({styledArg:O,props:R,defaultTheme:n,themeId:e});if(Gi(O)){let R=O,_;return O&&O.variants&&(_=O.variants,delete R.variants,R=T=>{let E=O;return zm(T,Pm(_),_).forEach(I=>{E=qr(E,I)}),E}),R}return O}):[];let S=x;if(Gi(x)){let O;x&&x.variants&&(O=x.variants,delete S.variants,S=R=>{let _=x;return zm(R,Pm(O),O).forEach(E=>{_=qr(_,E)}),_})}else typeof x=="function"&&x.__emotion_real!==x&&(S=O=>$I({styledArg:x,props:O,defaultTheme:n,themeId:e}));a&&h&&w.push(O=>{const R=Bm(K({},O,{defaultTheme:n,themeId:e})),_=cq(a,R);if(_){const T={};return Object.entries(_).forEach(([E,M])=>{T[E]=typeof M=="function"?M(K({},O,{theme:R})):M}),h(O,T)}return null}),a&&!f&&w.push(O=>{const R=Bm(K({},O,{defaultTheme:n,themeId:e}));return dq(O,uq(a,R),R,a)}),g||w.push(i);const A=w.length-k.length;if(Array.isArray(x)&&A>0){const O=new Array(A).fill("");S=[...x,...O],S.raw=[...x.raw,...O]}const C=y(S,...w);return s.muiName&&(C.muiName=s.muiName),C};return y.withConfig&&(b.withConfig=y.withConfig),b}}const gq=DI();function mq(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:QO(e.components[n].defaultProps,r)}function PI({props:t,name:e,defaultTheme:n,themeId:r}){let o=Vx(n);return r&&(o=o[r]||o),mq({theme:o,name:e,props:t})}function Gx(t,e=0,n=1){return Math.min(Math.max(e,t),n)}function vq(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function ol(t){if(t.type)return t;if(t.charAt(0)==="#")return ol(vq(t));const e=t.indexOf("("),n=t.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Zc(9,t));let r=t.substring(e+1,t.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Zc(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Hm(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):e.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function yq(t){t=ol(t);const{values:e}=t,n=e[0],r=e[1]/100,o=e[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let l="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(l+="a",a.push(e[3])),Hm({type:l,values:a})}function zI(t){t=ol(t);let e=t.type==="hsl"||t.type==="hsla"?ol(yq(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function bq(t,e){const n=zI(t),r=zI(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Mr(t,e){return t=ol(t),e=Gx(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Hm(t)}function xq(t,e){if(t=ol(t),e=Gx(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1||t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]*=1-e;return Hm(t)}function wq(t,e){if(t=ol(t),e=Gx(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return Hm(t)}const FI=D.createContext(null);function BI(){return D.useContext(FI)}const kq=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Eq(t,e){return typeof e=="function"?e(t):K({},t,e)}function Sq(t){const{children:e,theme:n}=t,r=BI(),o=D.useMemo(()=>{const i=r===null?n:Eq(r,n);return i!=null&&(i[kq]=r!==null),i},[n,r]);return V.jsx(FI.Provider,{value:o,children:e})}const HI={};function UI(t,e,n,r=!1){return D.useMemo(()=>{const o=t&&e[t]||e;if(typeof n=="function"){const i=n(o),s=t?K({},e,{[t]:i}):i;return r?()=>s:s}return t?K({},e,{[t]:n}):K({},e,n)},[t,e,n,r])}function Cq(t){const{children:e,theme:n,themeId:r}=t,o=Wx(HI),i=BI()||HI,s=UI(r,o,n),l=UI(r,i,n,!0);return V.jsx(Sq,{theme:l,children:V.jsx($x.Provider,{value:s,children:e})})}const Tq=["component","direction","spacing","divider","children","className","useFlexGap"],Aq=Dm(),_q=gq("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function Rq(t){return PI({props:t,name:"MuiStack",defaultTheme:Aq})}function Mq(t,e){const n=D.Children.toArray(t).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],Iq=({ownerState:t,theme:e})=>{let n=K({display:"flex",flexDirection:"column"},Vo({theme:e},zx({values:t.direction,breakpoints:e.breakpoints.values}),r=>({flexDirection:r})));if(t.spacing){const r=Hx(e),o=Object.keys(e.breakpoints.values).reduce((a,u)=>((typeof t.spacing=="object"&&t.spacing[u]!=null||typeof t.direction=="object"&&t.direction[u]!=null)&&(a[u]=!0),a),{}),i=zx({values:t.direction,base:o}),s=zx({values:t.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((a,u,c)=>{if(!i[a]){const h=u>0?i[c[u-1]]:"column";i[a]=h}}),n=qr(n,Vo({theme:e},s,(a,u)=>t.useFlexGap?{gap:rl(r,a)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Oq(u?i[u]:t.direction)}`]:rl(r,a)}}))}return n=hX(e.breakpoints,n),n};function Lq(t={}){const{createStyledComponent:e=_q,useThemeProps:n=Rq,componentName:r="MuiStack"}=t,o=()=>Ln({root:["root"]},a=>bn(r,a),{}),i=e(Iq);return D.forwardRef(function(a,u){const c=n(a),d=jx(c),{component:h="div",direction:p="column",spacing:f=0,divider:g,children:m,className:v,useFlexGap:y=!1}=d,b=ze(d,Tq),x={direction:p,spacing:f,useFlexGap:y},k=o();return V.jsx(i,K({as:h,ownerState:x,ref:u,className:je(k.root,v)},b,{children:g?Mq(m,g):m}))})}function Nq(t,e){return K({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},e)}const $q=["mode","contrastThreshold","tonalOffset"],WI={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Sh.white,default:Sh.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Kx={text:{primary:Sh.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Sh.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function VI(t,e,n,r){const o=r.light||r,i=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=wq(t.main,o):e==="dark"&&(t.dark=xq(t.main,i)))}function Dq(t="light"){return t==="dark"?{main:Yc[200],light:Yc[50],dark:Yc[400]}:{main:Yc[700],light:Yc[400],dark:Yc[800]}}function Pq(t="light"){return t==="dark"?{main:Kc[200],light:Kc[50],dark:Kc[400]}:{main:Kc[500],light:Kc[300],dark:Kc[700]}}function zq(t="light"){return t==="dark"?{main:Gc[500],light:Gc[300],dark:Gc[700]}:{main:Gc[700],light:Gc[400],dark:Gc[800]}}function Fq(t="light"){return t==="dark"?{main:Xc[400],light:Xc[300],dark:Xc[700]}:{main:Xc[700],light:Xc[500],dark:Xc[900]}}function Bq(t="light"){return t==="dark"?{main:qc[400],light:qc[300],dark:qc[700]}:{main:qc[800],light:qc[500],dark:qc[900]}}function Hq(t="light"){return t==="dark"?{main:Ch[400],light:Ch[300],dark:Ch[700]}:{main:"#ed6c02",light:Ch[500],dark:Ch[900]}}function Uq(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2}=t,o=ze(t,$q),i=t.primary||Dq(e),s=t.secondary||Pq(e),l=t.error||zq(e),a=t.info||Fq(e),u=t.success||Bq(e),c=t.warning||Hq(e);function d(g){return bq(g,Kx.text.primary)>=n?Kx.text.primary:WI.text.primary}const h=({color:g,name:m,mainShade:v=500,lightShade:y=300,darkShade:b=700})=>{if(g=K({},g),!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(Zc(11,m?` (${m})`:"",v));if(typeof g.main!="string")throw new Error(Zc(12,m?` (${m})`:"",JSON.stringify(g.main)));return VI(g,"light",y,r),VI(g,"dark",b,r),g.contrastText||(g.contrastText=d(g.main)),g},p={dark:Kx,light:WI};return qr(K({common:K({},Sh),mode:e,primary:h({color:i,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:c,name:"warning"}),info:h({color:a,name:"info"}),success:h({color:u,name:"success"}),grey:HK,contrastThreshold:n,getContrastText:d,augmentColor:h,tonalOffset:r},p[e]),o)}const Wq=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Vq(t){return Math.round(t*1e5)/1e5}const jI={textTransform:"uppercase"},GI='"Roboto", "Helvetica", "Arial", sans-serif';function jq(t,e){const n=typeof e=="function"?e(t):e,{fontFamily:r=GI,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,h=ze(n,Wq),p=o/14,f=d||(v=>`${v/u*p}rem`),g=(v,y,b,x,k)=>K({fontFamily:r,fontWeight:v,fontSize:f(y),lineHeight:b},r===GI?{letterSpacing:`${Vq(x/y)}em`}:{},k,c),m={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(l,14,1.75,.4,jI),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,jI),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qr(K({htmlFontSize:u,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:a},m),h,{clone:!1})}const Gq=.2,Kq=.14,Yq=.12;function Mt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${Gq})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${Kq})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${Yq})`].join(",")}const Xq=["none",Mt(0,2,1,-1,0,1,1,0,0,1,3,0),Mt(0,3,1,-2,0,2,2,0,0,1,5,0),Mt(0,3,3,-2,0,3,4,0,0,1,8,0),Mt(0,2,4,-1,0,4,5,0,0,1,10,0),Mt(0,3,5,-1,0,5,8,0,0,1,14,0),Mt(0,3,5,-1,0,6,10,0,0,1,18,0),Mt(0,4,5,-2,0,7,10,1,0,2,16,1),Mt(0,5,5,-3,0,8,10,1,0,3,14,2),Mt(0,5,6,-3,0,9,12,1,0,3,16,2),Mt(0,6,6,-3,0,10,14,1,0,4,18,3),Mt(0,6,7,-4,0,11,15,1,0,4,20,3),Mt(0,7,8,-4,0,12,17,2,0,5,22,4),Mt(0,7,8,-4,0,13,19,2,0,5,24,4),Mt(0,7,9,-4,0,14,21,2,0,5,26,4),Mt(0,8,9,-5,0,15,22,2,0,6,28,5),Mt(0,8,10,-5,0,16,24,2,0,6,30,5),Mt(0,8,11,-5,0,17,26,2,0,6,32,5),Mt(0,9,11,-5,0,18,28,2,0,7,34,6),Mt(0,9,12,-6,0,19,29,2,0,7,36,6),Mt(0,10,13,-6,0,20,31,3,0,8,38,7),Mt(0,10,13,-6,0,21,33,3,0,8,40,7),Mt(0,10,14,-6,0,22,35,3,0,8,42,7),Mt(0,11,14,-7,0,23,36,3,0,9,44,8),Mt(0,11,15,-7,0,24,38,3,0,9,46,8)],qq=["duration","easing","delay"],Zq={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Jq={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function KI(t){return`${Math.round(t)}ms`}function Qq(t){if(!t)return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function eZ(t){const e=K({},Zq,t.easing),n=K({},Jq,t.duration);return K({getAutoHeightDuration:Qq,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:l=e.easeInOut,delay:a=0}=i;return ze(i,qq),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:KI(s)} ${l} ${typeof a=="string"?a:KI(a)}`).join(",")}},t,{easing:e,duration:n})}const tZ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},nZ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Yx(t={},...e){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=t,s=ze(t,nZ);if(t.vars)throw new Error(Zc(18));const l=Uq(r),a=Dm(t);let u=qr(a,{mixins:Nq(a.breakpoints,n),palette:l,shadows:Xq.slice(),typography:jq(l,i),transitions:eZ(o),zIndex:K({},tZ)});return u=qr(u,s),u=e.reduce((c,d)=>qr(c,d),u),u.unstable_sxConfig=K({},$m,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Nh({sx:d,theme:this})},u}const Xx=Yx();function Um(){const t=Vx(Xx);return t[Jc]||t}function kn({props:t,name:e}){return PI({props:t,name:e,defaultTheme:Xx,themeId:Jc})}const qx=t=>Fm(t)&&t!=="classes",wt=DI({themeId:Jc,defaultTheme:Xx,rootShouldForwardProp:qx}),rZ=["theme"];function oZ(t){let{theme:e}=t,n=ze(t,rZ);const r=e[Jc];return V.jsx(Cq,K({},n,{themeId:r?Jc:void 0,theme:r||e}))}const YI=t=>{let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,(e/100).toFixed(2)};function Zx(t,e){return Zx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Zx(t,e)}function XI(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Zx(t,e)}const qI={disabled:!1},Wm=ee.createContext(null);var iZ=function(e){return e.scrollTop},$h="unmounted",il="exited",sl="entering",ru="entered",Jx="exiting",Ki=function(t){XI(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,a;return i.appearStatus=null,r.in?l?(a=il,i.appearStatus=sl):a=ru:r.unmountOnExit||r.mountOnEnter?a=$h:a=il,i.state={status:a},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===$h?{status:il}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==sl&&s!==ru&&(i=sl):(s===sl||s===ru)&&(i=Jx)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,l;return i=s=l=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===sl){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Yg.findDOMNode(this);s&&iZ(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===il&&this.setState({status:$h})},n.performEnter=function(o){var i=this,s=this.props.enter,l=this.context?this.context.isMounting:o,a=this.props.nodeRef?[l]:[Yg.findDOMNode(this),l],u=a[0],c=a[1],d=this.getTimeouts(),h=l?d.appear:d.enter;if(!o&&!s||qI.disabled){this.safeSetState({status:ru},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:sl},function(){i.props.onEntering(u,c),i.onTransitionEnd(h,function(){i.safeSetState({status:ru},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Yg.findDOMNode(this);if(!i||qI.disabled){this.safeSetState({status:il},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Jx},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:il},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Yg.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=a[0],c=a[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===$h)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=ze(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ee.createElement(Wm.Provider,{value:null},typeof s=="function"?s(o,l):ee.cloneElement(ee.Children.only(s),l))},e}(ee.Component);Ki.contextType=Wm,Ki.propTypes={};function ou(){}Ki.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ou,onEntering:ou,onEntered:ou,onExit:ou,onExiting:ou,onExited:ou},Ki.UNMOUNTED=$h,Ki.EXITED=il,Ki.ENTERING=sl,Ki.ENTERED=ru,Ki.EXITING=Jx;const ZI=Ki;function sZ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qx(t,e){var n=function(i){return e&&D.isValidElement(i)?e(i):i},r=Object.create(null);return t&&D.Children.map(t,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function aZ(t,e){t=t||{},e=e||{};function n(c){return c in e?e[c]:t[c]}var r=Object.create(null),o=[];for(var i in t)i in e?o.length&&(r[i]=o,o=[]):o.push(i);var s,l={};for(var a in e){if(r[a])for(s=0;st.scrollTop;function Vm(t,e){var n,r;const{timeout:o,easing:i,style:s={}}=t;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[e.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[e.mode]:i,delay:s.transitionDelay}}function pZ(t){return bn("MuiPaper",t)}xn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const fZ=["className","component","elevation","square","variant"],gZ=t=>{const{square:e,elevation:n,variant:r,classes:o}=t,i={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return Ln(i,pZ,o)},mZ=wt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(({theme:t,ownerState:e})=>{var n;return K({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},e.variant==="outlined"&&{border:`1px solid ${(t.vars||t).palette.divider}`},e.variant==="elevation"&&K({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&t.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Mr("#fff",YI(e.elevation))}, ${Mr("#fff",YI(e.elevation))})`},t.vars&&{backgroundImage:(n=t.vars.overlays)==null?void 0:n[e.elevation]}))}),vZ=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:l=!1,variant:a="elevation"}=r,u=ze(r,fZ),c=K({},r,{component:i,elevation:s,square:l,variant:a}),d=gZ(c);return V.jsx(mZ,K({as:i,ownerState:c,className:je(d.root,o),ref:n},u))});function yZ(t){const{className:e,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:l,onExited:a,timeout:u}=t,[c,d]=D.useState(!1),h=je(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},f=je(n.child,c&&n.childLeaving,r&&n.childPulsate);return!l&&!c&&d(!0),D.useEffect(()=>{if(!l&&a!=null){const g=setTimeout(a,u);return()=>{clearTimeout(g)}}},[a,l,u]),V.jsx("span",{className:h,style:p,children:V.jsx("span",{className:f})})}const xo=xn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),bZ=["center","classes","className"];let jm=t=>t,QI,eL,tL,nL;const tw=550,xZ=80,wZ=Dx(QI||(QI=jm` + */var wn=typeof Symbol=="function"&&Symbol.for,$x=wn?Symbol.for("react.element"):60103,Dx=wn?Symbol.for("react.portal"):60106,bm=wn?Symbol.for("react.fragment"):60107,xm=wn?Symbol.for("react.strict_mode"):60108,wm=wn?Symbol.for("react.profiler"):60114,km=wn?Symbol.for("react.provider"):60109,Em=wn?Symbol.for("react.context"):60110,Px=wn?Symbol.for("react.async_mode"):60111,Sm=wn?Symbol.for("react.concurrent_mode"):60111,Cm=wn?Symbol.for("react.forward_ref"):60112,Tm=wn?Symbol.for("react.suspense"):60113,rX=wn?Symbol.for("react.suspense_list"):60120,Am=wn?Symbol.for("react.memo"):60115,_m=wn?Symbol.for("react.lazy"):60116,oX=wn?Symbol.for("react.block"):60121,iX=wn?Symbol.for("react.fundamental"):60117,sX=wn?Symbol.for("react.responder"):60118,aX=wn?Symbol.for("react.scope"):60119;function Qr(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case $x:switch(t=t.type,t){case Px:case Sm:case bm:case wm:case xm:case Tm:return t;default:switch(t=t&&t.$$typeof,t){case Em:case Cm:case _m:case Am:case km:return t;default:return e}}case Dx:return e}}}function _I(t){return Qr(t)===Sm}dt.AsyncMode=Px,dt.ConcurrentMode=Sm,dt.ContextConsumer=Em,dt.ContextProvider=km,dt.Element=$x,dt.ForwardRef=Cm,dt.Fragment=bm,dt.Lazy=_m,dt.Memo=Am,dt.Portal=Dx,dt.Profiler=wm,dt.StrictMode=xm,dt.Suspense=Tm,dt.isAsyncMode=function(t){return _I(t)||Qr(t)===Px},dt.isConcurrentMode=_I,dt.isContextConsumer=function(t){return Qr(t)===Em},dt.isContextProvider=function(t){return Qr(t)===km},dt.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===$x},dt.isForwardRef=function(t){return Qr(t)===Cm},dt.isFragment=function(t){return Qr(t)===bm},dt.isLazy=function(t){return Qr(t)===_m},dt.isMemo=function(t){return Qr(t)===Am},dt.isPortal=function(t){return Qr(t)===Dx},dt.isProfiler=function(t){return Qr(t)===wm},dt.isStrictMode=function(t){return Qr(t)===xm},dt.isSuspense=function(t){return Qr(t)===Tm},dt.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===bm||t===Sm||t===wm||t===xm||t===Tm||t===rX||typeof t=="object"&&t!==null&&(t.$$typeof===_m||t.$$typeof===Am||t.$$typeof===km||t.$$typeof===Em||t.$$typeof===Cm||t.$$typeof===iX||t.$$typeof===sX||t.$$typeof===aX||t.$$typeof===oX)},dt.typeOf=Qr,AI.exports=dt;var lX=AI.exports,RI=lX,cX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},uX={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},MI={};MI[RI.ForwardRef]=cX,MI[RI.Memo]=uX;var dX=!0;function hX(t,e,n){var r="";return n.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):r+=o+" "}),r}var OI=function(e,n,r){var o=e.key+"-"+n.name;(r===!1||dX===!1)&&e.registered[o]===void 0&&(e.registered[o]=n.styles)},pX=function(e,n,r){OI(e,n,r);var o=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var i=n;do e.insert(n===i?"."+o:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};function fX(t){for(var e=0,n,r=0,o=t.length;o>=4;++r,o-=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(o){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 gX={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},mX=/[A-Z]|^ms/g,vX=/_EMO_([^_]+?)_([^]*?)_EMO_/g,II=function(e){return e.charCodeAt(1)===45},LI=function(e){return e!=null&&typeof e!="boolean"},zx=mI(function(t){return II(t)?t:t.replace(mX,"-$&").toLowerCase()}),NI=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(vX,function(r,o,i){return hi={name:o,styles:i,next:hi},o})}return gX[e]!==1&&!II(e)&&typeof n=="number"&&n!==0?n+"px":n},Kge="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Lh(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 hi={name:n.name,styles:n.styles,next:hi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)hi={name:r.name,styles:r.styles,next:hi},r=r.next;var o=n.styles+";";return o}return yX(t,e,n)}case"function":{if(t!==void 0){var i=hi,s=n(t);return hi=i,Lh(t,e,s)}break}}if(e==null)return n;var l=e[n];return l!==void 0?l:n}function yX(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o96?EX:SX},FI=function(e,n,r){var o;if(n){var i=n.shouldForwardProp;o=e.__emotion_forwardProp&&i?function(s){return e.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=e.__emotion_forwardProp),o},CX=function(e){var n=e.cache,r=e.serialized,o=e.isStringTag;return OI(n,r,o),wX(function(){return pX(n,r,o)}),null},TX=function t(e,n){var r=e.__emotion_real===e,o=r&&e.__emotion_base||e,i,s;n!==void 0&&(i=n.label,s=n.target);var l=FI(e,n,r),a=l||zI(o),u=!a("as");return function(){var c=arguments,d=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var h=c.length,p=1;p{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))},RX=["values","unit","step"],MX=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>K({},n,{[r.key]:r.val}),{})};function OX(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=t,o=ze(t,RX),i=MX(e),s=Object.keys(i);function l(h){return`@media (min-width:${typeof e[h]=="number"?e[h]:h}${n})`}function a(h){return`@media (max-width:${(typeof e[h]=="number"?e[h]:h)-r/100}${n})`}function u(h,p){const f=s.indexOf(p);return`@media (min-width:${typeof e[h]=="number"?e[h]:h}${n}) and (max-width:${(f!==-1&&typeof e[s[f]]=="number"?e[s[f]]:p)-r/100}${n})`}function c(h){return s.indexOf(h)+1`@media (min-width:${Hx[t]}px)`};function Vo(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const i=r.breakpoints||HI;return e.reduce((s,l,a)=>(s[i.up(i.keys[a])]=n(e[a]),s),{})}if(typeof e=="object"){const i=r.breakpoints||HI;return Object.keys(e).reduce((s,l)=>{if(Object.keys(i.values||Hx).indexOf(l)!==-1){const a=i.up(l);s[a]=n(e[l],l)}else{const a=l;s[a]=e[a]}return s},{})}return n(e)}function UI(t={}){var e;return((e=t.keys)==null?void 0:e.reduce((r,o)=>{const i=t.up(o);return r[i]={},r},{}))||{}}function WI(t,e){return t.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},e)}function LX(t,...e){const n=UI(t),r=[n,...e].reduce((o,i)=>Zr(o,i),{});return WI(Object.keys(n),r)}function NX(t,e){if(typeof t!="object")return{};const n={},r=Object.keys(e);return Array.isArray(t)?r.forEach((o,i)=>{i{t[o]!=null&&(n[o]=!0)}),n}function Ux({values:t,breakpoints:e,base:n}){const r=n||NX(t,e),o=Object.keys(r);if(o.length===0)return t;let i;return o.reduce((s,l,a)=>(Array.isArray(t)?(s[l]=t[a]!=null?t[a]:t[i],i=a):typeof t=="object"?(s[l]=t[l]!=null?t[l]:t[i],i=l):s[l]=t,s),{})}function Mm(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,t);if(r!=null)return r}return e.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,t)}function Om(t,e,n,r=n){let o;return typeof t=="function"?o=t(n):Array.isArray(t)?o=t[n]||r:o=Mm(t,n)||r,e&&(o=e(o,r,t)),o}function ot(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:o}=t,i=s=>{if(s[e]==null)return null;const l=s[e],a=s.theme,u=Mm(a,r)||{};return Vo(s,l,d=>{let h=Om(u,o,d);return d===h&&typeof d=="string"&&(h=Om(u,o,`${e}${d==="default"?"":ft(d)}`,d)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[e],i}function $X(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const DX={m:"margin",p:"padding"},PX={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},VI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zX=$X(t=>{if(t.length>2)if(VI[t])t=VI[t];else return[t];const[e,n]=t.split(""),r=DX[e],o=PX[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Wx=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vx=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Wx,...Vx];function $h(t,e,n,r){var o;const i=(o=Mm(t,e,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function jx(t){return $h(t,"spacing",8)}function ol(t,e){if(typeof e=="string"||e==null)return e;const n=Math.abs(e),r=t(n);return e>=0?r:typeof r=="number"?-r:`-${r}`}function FX(t,e){return n=>t.reduce((r,o)=>(r[o]=ol(e,n),r),{})}function BX(t,e,n,r){if(e.indexOf(n)===-1)return null;const o=zX(n),i=FX(o,r),s=t[n];return Vo(t,s,i)}function jI(t,e){const n=jx(t.theme);return Object.keys(t).map(r=>BX(t,e,r,n)).reduce(Nh,{})}function Ut(t){return jI(t,Wx)}Ut.propTypes={},Ut.filterProps=Wx;function Wt(t){return jI(t,Vx)}Wt.propTypes={},Wt.filterProps=Vx;function HX(t=8){if(t.mui)return t;const e=jx({spacing:t}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=e(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Im(...t){const e=t.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>e[i]?Nh(o,e[i](r)):o,{});return n.propTypes={},n.filterProps=t.reduce((r,o)=>r.concat(o.filterProps),[]),n}function pi(t){return typeof t!="number"?t:`${t}px solid`}const UX=ot({prop:"border",themeKey:"borders",transform:pi}),WX=ot({prop:"borderTop",themeKey:"borders",transform:pi}),VX=ot({prop:"borderRight",themeKey:"borders",transform:pi}),jX=ot({prop:"borderBottom",themeKey:"borders",transform:pi}),GX=ot({prop:"borderLeft",themeKey:"borders",transform:pi}),KX=ot({prop:"borderColor",themeKey:"palette"}),YX=ot({prop:"borderTopColor",themeKey:"palette"}),XX=ot({prop:"borderRightColor",themeKey:"palette"}),qX=ot({prop:"borderBottomColor",themeKey:"palette"}),ZX=ot({prop:"borderLeftColor",themeKey:"palette"}),Lm=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=$h(t.theme,"shape.borderRadius",4),n=r=>({borderRadius:ol(e,r)});return Vo(t,t.borderRadius,n)}return null};Lm.propTypes={},Lm.filterProps=["borderRadius"],Im(UX,WX,VX,jX,GX,KX,YX,XX,qX,ZX,Lm);const Nm=t=>{if(t.gap!==void 0&&t.gap!==null){const e=$h(t.theme,"spacing",8),n=r=>({gap:ol(e,r)});return Vo(t,t.gap,n)}return null};Nm.propTypes={},Nm.filterProps=["gap"];const $m=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=$h(t.theme,"spacing",8),n=r=>({columnGap:ol(e,r)});return Vo(t,t.columnGap,n)}return null};$m.propTypes={},$m.filterProps=["columnGap"];const Dm=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=$h(t.theme,"spacing",8),n=r=>({rowGap:ol(e,r)});return Vo(t,t.rowGap,n)}return null};Dm.propTypes={},Dm.filterProps=["rowGap"];const JX=ot({prop:"gridColumn"}),QX=ot({prop:"gridRow"}),eq=ot({prop:"gridAutoFlow"}),tq=ot({prop:"gridAutoColumns"}),nq=ot({prop:"gridAutoRows"}),rq=ot({prop:"gridTemplateColumns"}),oq=ot({prop:"gridTemplateRows"}),iq=ot({prop:"gridTemplateAreas"}),sq=ot({prop:"gridArea"});Im(Nm,$m,Dm,JX,QX,eq,tq,nq,rq,oq,iq,sq);function tu(t,e){return e==="grey"?e:t}const aq=ot({prop:"color",themeKey:"palette",transform:tu}),lq=ot({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:tu}),cq=ot({prop:"backgroundColor",themeKey:"palette",transform:tu});Im(aq,lq,cq);function eo(t){return t<=1&&t!==0?`${t*100}%`:t}const uq=ot({prop:"width",transform:eo}),Gx=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var r,o;const i=((r=t.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Hx[n];return i?((o=t.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${t.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:eo(n)}};return Vo(t,t.maxWidth,e)}return null};Gx.filterProps=["maxWidth"];const dq=ot({prop:"minWidth",transform:eo}),hq=ot({prop:"height",transform:eo}),pq=ot({prop:"maxHeight",transform:eo}),fq=ot({prop:"minHeight",transform:eo});ot({prop:"size",cssProperty:"width",transform:eo}),ot({prop:"size",cssProperty:"height",transform:eo});const gq=ot({prop:"boxSizing"});Im(uq,Gx,dq,hq,pq,fq,gq);const Pm={border:{themeKey:"borders",transform:pi},borderTop:{themeKey:"borders",transform:pi},borderRight:{themeKey:"borders",transform:pi},borderBottom:{themeKey:"borders",transform:pi},borderLeft:{themeKey:"borders",transform:pi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Lm},color:{themeKey:"palette",transform:tu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:tu},backgroundColor:{themeKey:"palette",transform:tu},p:{style:Wt},pt:{style:Wt},pr:{style:Wt},pb:{style:Wt},pl:{style:Wt},px:{style:Wt},py:{style:Wt},padding:{style:Wt},paddingTop:{style:Wt},paddingRight:{style:Wt},paddingBottom:{style:Wt},paddingLeft:{style:Wt},paddingX:{style:Wt},paddingY:{style:Wt},paddingInline:{style:Wt},paddingInlineStart:{style:Wt},paddingInlineEnd:{style:Wt},paddingBlock:{style:Wt},paddingBlockStart:{style:Wt},paddingBlockEnd:{style:Wt},m:{style:Ut},mt:{style:Ut},mr:{style:Ut},mb:{style:Ut},ml:{style:Ut},mx:{style:Ut},my:{style:Ut},margin:{style:Ut},marginTop:{style:Ut},marginRight:{style:Ut},marginBottom:{style:Ut},marginLeft:{style:Ut},marginX:{style:Ut},marginY:{style:Ut},marginInline:{style:Ut},marginInlineStart:{style:Ut},marginInlineEnd:{style:Ut},marginBlock:{style:Ut},marginBlockStart:{style:Ut},marginBlockEnd:{style:Ut},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Nm},rowGap:{style:Dm},columnGap:{style:$m},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:eo},maxWidth:{style:Gx},minWidth:{transform:eo},height:{transform:eo},maxHeight:{transform:eo},minHeight:{transform:eo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function mq(...t){const e=t.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function vq(t,e){return typeof t=="function"?t(e):t}function yq(){function t(n,r,o,i){const s={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:u,transform:c,style:d}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=Mm(o,u)||{};return d?d(s):Vo(s,r,f=>{let g=Om(h,c,f);return f===g&&typeof f=="string"&&(g=Om(h,c,`${n}${f==="default"?"":ft(f)}`,f)),a===!1?g:{[a]:g}})}function e(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:Pm;function l(a){let u=a;if(typeof a=="function")u=a(i);else if(typeof a!="object")return a;if(!u)return null;const c=UI(i.breakpoints),d=Object.keys(c);let h=c;return Object.keys(u).forEach(p=>{const f=vq(u[p],i);if(f!=null)if(typeof f=="object")if(s[p])h=Nh(h,t(p,f,i,s));else{const g=Vo({theme:i},f,m=>({[p]:m}));mq(g,f)?h[p]=e({sx:f,theme:i}):h=Nh(h,g)}else h=Nh(h,t(p,f,i,s))}),WI(d,h)}return Array.isArray(o)?o.map(l):l(o)}return e}const Dh=yq();Dh.filterProps=["sx"];const bq=["breakpoints","palette","spacing","shape"];function zm(t={},...e){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=t,s=ze(t,bq),l=OX(n),a=HX(o);let u=Zr({breakpoints:l,direction:"ltr",components:{},palette:K({mode:"light"},r),spacing:a,shape:K({},IX,i)},s);return u=e.reduce((c,d)=>Zr(c,d),u),u.unstable_sxConfig=K({},Pm,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Dh({sx:d,theme:this})},u}function xq(t){return Object.keys(t).length===0}function Kx(t=null){const e=D.useContext(Fx);return!e||xq(e)?t:e}const wq=zm();function Yx(t=wq){return Kx(t)}const kq=["sx"],Eq=t=>{var e,n;const r={systemProps:{},otherProps:{}},o=(e=t==null||(n=t.theme)==null?void 0:n.unstable_sxConfig)!=null?e:Pm;return Object.keys(t).forEach(i=>{o[i]?r.systemProps[i]=t[i]:r.otherProps[i]=t[i]}),r};function Xx(t){const{sx:e}=t,n=ze(t,kq),{systemProps:r,otherProps:o}=Eq(n);let i;return Array.isArray(e)?i=[r,...e]:typeof e=="function"?i=(...s)=>{const l=e(...s);return Ki(l)?K({},r,l):r}:i=K({},r,e),K({},o,{sx:i})}function GI(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;el!=="theme"&&l!=="sx"&&l!=="as"})(Dh);return D.forwardRef(function(a,u){const c=Yx(n),d=Xx(a),{className:h,component:p="div"}=d,f=ze(d,Sq);return V.jsx(i,K({as:p,ref:u,className:je(h,o?o(r):r),theme:e&&c[e]||c},f))})}const Tq=["variant"];function KI(t){return t.length===0}function YI(t){const{variant:e}=t,n=ze(t,Tq);let r=e||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=KI(r)?t[o]:ft(t[o]):r+=`${KI(r)?o:ft(o)}${ft(t[o].toString())}`}),r}const Aq=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _q(t){return Object.keys(t).length===0}function Rq(t){return typeof t=="string"&&t.charCodeAt(0)>96}const Mq=(t,e)=>e.components&&e.components[t]&&e.components[t].styleOverrides?e.components[t].styleOverrides:null,Fm=t=>{const e={};return t&&t.forEach(n=>{const r=YI(n.props);e[r]=n.style}),e},Oq=(t,e)=>{let n=[];return e&&e.components&&e.components[t]&&e.components[t].variants&&(n=e.components[t].variants),Fm(n)},Bm=(t,e,n)=>{const{ownerState:r={}}=t,o=[];return n&&n.forEach(i=>{let s=!0;Object.keys(i.props).forEach(l=>{r[l]!==i.props[l]&&t[l]!==i.props[l]&&(s=!1)}),s&&o.push(e[YI(i.props)])}),o},Iq=(t,e,n,r)=>{var o;const i=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Bm(t,e,i)};function Hm(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Lq=zm(),Nq=t=>t&&t.charAt(0).toLowerCase()+t.slice(1);function Um({defaultTheme:t,theme:e,themeId:n}){return _q(e)?t:e[n]||e}function $q(t){return t?(e,n)=>n[t]:null}const XI=({styledArg:t,props:e,defaultTheme:n,themeId:r})=>{const o=t(K({},e,{theme:Um(K({},e,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){const s=Bm(e,Fm(i),i);return[o,...s]}return o};function qI(t={}){const{themeId:e,defaultTheme:n=Lq,rootShouldForwardProp:r=Hm,slotShouldForwardProp:o=Hm}=t,i=s=>Dh(K({},s,{theme:Um(K({},s,{defaultTheme:n,themeId:e}))}));return i.__mui_systemSx=!0,(s,l={})=>{_X(s,x=>x.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:a,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:h=$q(Nq(u))}=l,p=ze(l,Aq),f=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=d||!1;let m,v=Hm;u==="Root"||u==="root"?v=r:u?v=o:Rq(s)&&(v=void 0);const y=BI(s,K({shouldForwardProp:v,label:m},p)),b=(x,...k)=>{const w=k?k.map(O=>{if(typeof O=="function"&&O.__emotion_real!==O)return R=>XI({styledArg:O,props:R,defaultTheme:n,themeId:e});if(Ki(O)){let R=O,_;return O&&O.variants&&(_=O.variants,delete R.variants,R=A=>{let E=O;return Bm(A,Fm(_),_).forEach(I=>{E=Zr(E,I)}),E}),R}return O}):[];let S=x;if(Ki(x)){let O;x&&x.variants&&(O=x.variants,delete S.variants,S=R=>{let _=x;return Bm(R,Fm(O),O).forEach(E=>{_=Zr(_,E)}),_})}else typeof x=="function"&&x.__emotion_real!==x&&(S=O=>XI({styledArg:x,props:O,defaultTheme:n,themeId:e}));a&&h&&w.push(O=>{const R=Um(K({},O,{defaultTheme:n,themeId:e})),_=Mq(a,R);if(_){const A={};return Object.entries(_).forEach(([E,M])=>{A[E]=typeof M=="function"?M(K({},O,{theme:R})):M}),h(O,A)}return null}),a&&!f&&w.push(O=>{const R=Um(K({},O,{defaultTheme:n,themeId:e}));return Iq(O,Oq(a,R),R,a)}),g||w.push(i);const T=w.length-k.length;if(Array.isArray(x)&&T>0){const O=new Array(T).fill("");S=[...x,...O],S.raw=[...x.raw,...O]}const C=y(S,...w);return s.muiName&&(C.muiName=s.muiName),C};return y.withConfig&&(b.withConfig=y.withConfig),b}}const Dq=qI();function Pq(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:pI(e.components[n].defaultProps,r)}function ZI({props:t,name:e,defaultTheme:n,themeId:r}){let o=Yx(n);return r&&(o=o[r]||o),Pq({theme:o,name:e,props:t})}function qx(t,e=0,n=1){return Math.min(Math.max(e,t),n)}function zq(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function il(t){if(t.type)return t;if(t.charAt(0)==="#")return il(zq(t));const e=t.indexOf("("),n=t.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(qc(9,t));let r=t.substring(e+1,t.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(qc(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Wm(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):e.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function Fq(t){t=il(t);const{values:e}=t,n=e[0],r=e[1]/100,o=e[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let l="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(l+="a",a.push(e[3])),Wm({type:l,values:a})}function JI(t){t=il(t);let e=t.type==="hsl"||t.type==="hsla"?il(Fq(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function Bq(t,e){const n=JI(t),r=JI(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Or(t,e){return t=il(t),e=qx(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Wm(t)}function Hq(t,e){if(t=il(t),e=qx(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1||t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]*=1-e;return Wm(t)}function Uq(t,e){if(t=il(t),e=qx(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return Wm(t)}const QI=D.createContext(null);function eL(){return D.useContext(QI)}const Wq=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Vq(t,e){return typeof e=="function"?e(t):K({},t,e)}function jq(t){const{children:e,theme:n}=t,r=eL(),o=D.useMemo(()=>{const i=r===null?n:Vq(r,n);return i!=null&&(i[Wq]=r!==null),i},[n,r]);return V.jsx(QI.Provider,{value:o,children:e})}const tL={};function nL(t,e,n,r=!1){return D.useMemo(()=>{const o=t&&e[t]||e;if(typeof n=="function"){const i=n(o),s=t?K({},e,{[t]:i}):i;return r?()=>s:s}return t?K({},e,{[t]:n}):K({},e,n)},[t,e,n,r])}function Gq(t){const{children:e,theme:n,themeId:r}=t,o=Kx(tL),i=eL()||tL,s=nL(r,o,n),l=nL(r,i,n,!0);return V.jsx(jq,{theme:l,children:V.jsx(Fx.Provider,{value:s,children:e})})}const Kq=["component","direction","spacing","divider","children","className","useFlexGap"],Yq=zm(),Xq=Dq("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function qq(t){return ZI({props:t,name:"MuiStack",defaultTheme:Yq})}function Zq(t,e){const n=D.Children.toArray(t).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],Qq=({ownerState:t,theme:e})=>{let n=K({display:"flex",flexDirection:"column"},Vo({theme:e},Ux({values:t.direction,breakpoints:e.breakpoints.values}),r=>({flexDirection:r})));if(t.spacing){const r=jx(e),o=Object.keys(e.breakpoints.values).reduce((a,u)=>((typeof t.spacing=="object"&&t.spacing[u]!=null||typeof t.direction=="object"&&t.direction[u]!=null)&&(a[u]=!0),a),{}),i=Ux({values:t.direction,base:o}),s=Ux({values:t.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((a,u,c)=>{if(!i[a]){const h=u>0?i[c[u-1]]:"column";i[a]=h}}),n=Zr(n,Vo({theme:e},s,(a,u)=>t.useFlexGap?{gap:ol(r,a)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Jq(u?i[u]:t.direction)}`]:ol(r,a)}}))}return n=LX(e.breakpoints,n),n};function eZ(t={}){const{createStyledComponent:e=Xq,useThemeProps:n=qq,componentName:r="MuiStack"}=t,o=()=>Nn({root:["root"]},a=>bn(r,a),{}),i=e(Qq);return D.forwardRef(function(a,u){const c=n(a),d=Xx(c),{component:h="div",direction:p="column",spacing:f=0,divider:g,children:m,className:v,useFlexGap:y=!1}=d,b=ze(d,Kq),x={direction:p,spacing:f,useFlexGap:y},k=o();return V.jsx(i,K({as:h,ownerState:x,ref:u,className:je(k.root,v)},b,{children:g?Zq(m,g):m}))})}function tZ(t,e){return K({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},e)}const nZ=["mode","contrastThreshold","tonalOffset"],rL={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Th.white,default:Th.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Zx={text:{primary:Th.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Th.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function oL(t,e,n,r){const o=r.light||r,i=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=Uq(t.main,o):e==="dark"&&(t.dark=Hq(t.main,i)))}function rZ(t="light"){return t==="dark"?{main:Kc[200],light:Kc[50],dark:Kc[400]}:{main:Kc[700],light:Kc[400],dark:Kc[800]}}function oZ(t="light"){return t==="dark"?{main:Gc[200],light:Gc[50],dark:Gc[400]}:{main:Gc[500],light:Gc[300],dark:Gc[700]}}function iZ(t="light"){return t==="dark"?{main:jc[500],light:jc[300],dark:jc[700]}:{main:jc[700],light:jc[400],dark:jc[800]}}function sZ(t="light"){return t==="dark"?{main:Yc[400],light:Yc[300],dark:Yc[700]}:{main:Yc[700],light:Yc[500],dark:Yc[900]}}function aZ(t="light"){return t==="dark"?{main:Xc[400],light:Xc[300],dark:Xc[700]}:{main:Xc[800],light:Xc[500],dark:Xc[900]}}function lZ(t="light"){return t==="dark"?{main:Ah[400],light:Ah[300],dark:Ah[700]}:{main:"#ed6c02",light:Ah[500],dark:Ah[900]}}function cZ(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2}=t,o=ze(t,nZ),i=t.primary||rZ(e),s=t.secondary||oZ(e),l=t.error||iZ(e),a=t.info||sZ(e),u=t.success||aZ(e),c=t.warning||lZ(e);function d(g){return Bq(g,Zx.text.primary)>=n?Zx.text.primary:rL.text.primary}const h=({color:g,name:m,mainShade:v=500,lightShade:y=300,darkShade:b=700})=>{if(g=K({},g),!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(qc(11,m?` (${m})`:"",v));if(typeof g.main!="string")throw new Error(qc(12,m?` (${m})`:"",JSON.stringify(g.main)));return oL(g,"light",y,r),oL(g,"dark",b,r),g.contrastText||(g.contrastText=d(g.main)),g},p={dark:Zx,light:rL};return Zr(K({common:K({},Th),mode:e,primary:h({color:i,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:c,name:"warning"}),info:h({color:a,name:"info"}),success:h({color:u,name:"success"}),grey:lY,contrastThreshold:n,getContrastText:d,augmentColor:h,tonalOffset:r},p[e]),o)}const uZ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function dZ(t){return Math.round(t*1e5)/1e5}const iL={textTransform:"uppercase"},sL='"Roboto", "Helvetica", "Arial", sans-serif';function hZ(t,e){const n=typeof e=="function"?e(t):e,{fontFamily:r=sL,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,h=ze(n,uZ),p=o/14,f=d||(v=>`${v/u*p}rem`),g=(v,y,b,x,k)=>K({fontFamily:r,fontWeight:v,fontSize:f(y),lineHeight:b},r===sL?{letterSpacing:`${dZ(x/y)}em`}:{},k,c),m={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(l,14,1.75,.4,iL),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,iL),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zr(K({htmlFontSize:u,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:a},m),h,{clone:!1})}const pZ=.2,fZ=.14,gZ=.12;function Mt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${pZ})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${fZ})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${gZ})`].join(",")}const mZ=["none",Mt(0,2,1,-1,0,1,1,0,0,1,3,0),Mt(0,3,1,-2,0,2,2,0,0,1,5,0),Mt(0,3,3,-2,0,3,4,0,0,1,8,0),Mt(0,2,4,-1,0,4,5,0,0,1,10,0),Mt(0,3,5,-1,0,5,8,0,0,1,14,0),Mt(0,3,5,-1,0,6,10,0,0,1,18,0),Mt(0,4,5,-2,0,7,10,1,0,2,16,1),Mt(0,5,5,-3,0,8,10,1,0,3,14,2),Mt(0,5,6,-3,0,9,12,1,0,3,16,2),Mt(0,6,6,-3,0,10,14,1,0,4,18,3),Mt(0,6,7,-4,0,11,15,1,0,4,20,3),Mt(0,7,8,-4,0,12,17,2,0,5,22,4),Mt(0,7,8,-4,0,13,19,2,0,5,24,4),Mt(0,7,9,-4,0,14,21,2,0,5,26,4),Mt(0,8,9,-5,0,15,22,2,0,6,28,5),Mt(0,8,10,-5,0,16,24,2,0,6,30,5),Mt(0,8,11,-5,0,17,26,2,0,6,32,5),Mt(0,9,11,-5,0,18,28,2,0,7,34,6),Mt(0,9,12,-6,0,19,29,2,0,7,36,6),Mt(0,10,13,-6,0,20,31,3,0,8,38,7),Mt(0,10,13,-6,0,21,33,3,0,8,40,7),Mt(0,10,14,-6,0,22,35,3,0,8,42,7),Mt(0,11,14,-7,0,23,36,3,0,9,44,8),Mt(0,11,15,-7,0,24,38,3,0,9,46,8)],vZ=["duration","easing","delay"],yZ={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},bZ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function aL(t){return`${Math.round(t)}ms`}function xZ(t){if(!t)return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function wZ(t){const e=K({},yZ,t.easing),n=K({},bZ,t.duration);return K({getAutoHeightDuration:xZ,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:l=e.easeInOut,delay:a=0}=i;return ze(i,vZ),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:aL(s)} ${l} ${typeof a=="string"?a:aL(a)}`).join(",")}},t,{easing:e,duration:n})}const kZ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},EZ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Jx(t={},...e){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=t,s=ze(t,EZ);if(t.vars)throw new Error(qc(18));const l=cZ(r),a=zm(t);let u=Zr(a,{mixins:tZ(a.breakpoints,n),palette:l,shadows:mZ.slice(),typography:hZ(l,i),transitions:wZ(o),zIndex:K({},kZ)});return u=Zr(u,s),u=e.reduce((c,d)=>Zr(c,d),u),u.unstable_sxConfig=K({},Pm,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Dh({sx:d,theme:this})},u}const Qx=Jx();function Vm(){const t=Yx(Qx);return t[Zc]||t}function kn({props:t,name:e}){return ZI({props:t,name:e,defaultTheme:Qx,themeId:Zc})}const ew=t=>Hm(t)&&t!=="classes",wt=qI({themeId:Zc,defaultTheme:Qx,rootShouldForwardProp:ew}),SZ=["theme"];function CZ(t){let{theme:e}=t,n=ze(t,SZ);const r=e[Zc];return V.jsx(Gq,K({},n,{themeId:r?Zc:void 0,theme:r||e}))}const lL=t=>{let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,(e/100).toFixed(2)};function tw(t,e){return tw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},tw(t,e)}function cL(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,tw(t,e)}const uL={disabled:!1},jm=ee.createContext(null);var TZ=function(e){return e.scrollTop},Ph="unmounted",sl="exited",al="entering",nu="entered",nw="exiting",Yi=function(t){cL(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,a;return i.appearStatus=null,r.in?l?(a=sl,i.appearStatus=al):a=nu:r.unmountOnExit||r.mountOnEnter?a=Ph:a=sl,i.state={status:a},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Ph?{status:sl}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==al&&s!==nu&&(i=al):(s===al||s===nu)&&(i=nw)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,l;return i=s=l=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===al){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:qg.findDOMNode(this);s&&TZ(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===sl&&this.setState({status:Ph})},n.performEnter=function(o){var i=this,s=this.props.enter,l=this.context?this.context.isMounting:o,a=this.props.nodeRef?[l]:[qg.findDOMNode(this),l],u=a[0],c=a[1],d=this.getTimeouts(),h=l?d.appear:d.enter;if(!o&&!s||uL.disabled){this.safeSetState({status:nu},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:al},function(){i.props.onEntering(u,c),i.onTransitionEnd(h,function(){i.safeSetState({status:nu},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:qg.findDOMNode(this);if(!i||uL.disabled){this.safeSetState({status:sl},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:nw},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:sl},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:qg.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=a[0],c=a[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ph)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=ze(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ee.createElement(jm.Provider,{value:null},typeof s=="function"?s(o,l):ee.cloneElement(ee.Children.only(s),l))},e}(ee.Component);Yi.contextType=jm,Yi.propTypes={};function ru(){}Yi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ru,onEntering:ru,onEntered:ru,onExit:ru,onExiting:ru,onExited:ru},Yi.UNMOUNTED=Ph,Yi.EXITED=sl,Yi.ENTERING=al,Yi.ENTERED=nu,Yi.EXITING=nw;const dL=Yi;function AZ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rw(t,e){var n=function(i){return e&&D.isValidElement(i)?e(i):i},r=Object.create(null);return t&&D.Children.map(t,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function _Z(t,e){t=t||{},e=e||{};function n(c){return c in e?e[c]:t[c]}var r=Object.create(null),o=[];for(var i in t)i in e?o.length&&(r[i]=o,o=[]):o.push(i);var s,l={};for(var a in e){if(r[a])for(s=0;st.scrollTop;function Gm(t,e){var n,r;const{timeout:o,easing:i,style:s={}}=t;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[e.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[e.mode]:i,delay:s.transitionDelay}}function NZ(t){return bn("MuiPaper",t)}xn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const $Z=["className","component","elevation","square","variant"],DZ=t=>{const{square:e,elevation:n,variant:r,classes:o}=t,i={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return Nn(i,NZ,o)},PZ=wt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(({theme:t,ownerState:e})=>{var n;return K({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},e.variant==="outlined"&&{border:`1px solid ${(t.vars||t).palette.divider}`},e.variant==="elevation"&&K({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&t.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Or("#fff",lL(e.elevation))}, ${Or("#fff",lL(e.elevation))})`},t.vars&&{backgroundImage:(n=t.vars.overlays)==null?void 0:n[e.elevation]}))}),zZ=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:l=!1,variant:a="elevation"}=r,u=ze(r,$Z),c=K({},r,{component:i,elevation:s,square:l,variant:a}),d=DZ(c);return V.jsx(PZ,K({as:i,ownerState:c,className:je(d.root,o),ref:n},u))});function FZ(t){const{className:e,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:l,onExited:a,timeout:u}=t,[c,d]=D.useState(!1),h=je(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},f=je(n.child,c&&n.childLeaving,r&&n.childPulsate);return!l&&!c&&d(!0),D.useEffect(()=>{if(!l&&a!=null){const g=setTimeout(a,u);return()=>{clearTimeout(g)}}},[a,l,u]),V.jsx("span",{className:h,style:p,children:V.jsx("span",{className:f})})}const wo=xn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),BZ=["center","classes","className"];let Km=t=>t,pL,fL,gL,mL;const iw=550,HZ=80,UZ=Bx(pL||(pL=Km` 0% { transform: scale(0); opacity: 0.1; @@ -130,7 +131,7 @@ Error generating stack: `+i.message+` transform: scale(1); opacity: 0.3; } -`)),kZ=Dx(eL||(eL=jm` +`)),WZ=Bx(fL||(fL=Km` 0% { opacity: 1; } @@ -138,7 +139,7 @@ Error generating stack: `+i.message+` 100% { opacity: 0; } -`)),EZ=Dx(tL||(tL=jm` +`)),VZ=Bx(gL||(gL=Km` 0% { transform: scale(1); } @@ -150,7 +151,7 @@ Error generating stack: `+i.message+` 100% { transform: scale(1); } -`)),SZ=wt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),CZ=wt(yZ,{name:"MuiTouchRipple",slot:"Ripple"})(nL||(nL=jm` +`)),jZ=wt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),GZ=wt(FZ,{name:"MuiTouchRipple",slot:"Ripple"})(mL||(mL=Km` opacity: 0; position: absolute; @@ -193,7 +194,7 @@ Error generating stack: `+i.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),xo.rippleVisible,wZ,tw,({theme:t})=>t.transitions.easing.easeInOut,xo.ripplePulsate,({theme:t})=>t.transitions.duration.shorter,xo.child,xo.childLeaving,kZ,tw,({theme:t})=>t.transitions.easing.easeInOut,xo.childPulsate,EZ,({theme:t})=>t.transitions.easing.easeInOut),TZ=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,l=ze(r,bZ),[a,u]=D.useState([]),c=D.useRef(0),d=D.useRef(null);D.useEffect(()=>{d.current&&(d.current(),d.current=null)},[a]);const h=D.useRef(!1),p=D.useRef(0),f=D.useRef(null),g=D.useRef(null);D.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=D.useCallback(x=>{const{pulsate:k,rippleX:w,rippleY:S,rippleSize:A,cb:C}=x;u(O=>[...O,V.jsx(CZ,{classes:{ripple:je(i.ripple,xo.ripple),rippleVisible:je(i.rippleVisible,xo.rippleVisible),ripplePulsate:je(i.ripplePulsate,xo.ripplePulsate),child:je(i.child,xo.child),childLeaving:je(i.childLeaving,xo.childLeaving),childPulsate:je(i.childPulsate,xo.childPulsate)},timeout:tw,pulsate:k,rippleX:w,rippleY:S,rippleSize:A},c.current)]),c.current+=1,d.current=C},[i]),v=D.useCallback((x={},k={},w=()=>{})=>{const{pulsate:S=!1,center:A=o||k.pulsate,fakeElement:C=!1}=k;if((x==null?void 0:x.type)==="mousedown"&&h.current){h.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(h.current=!0);const O=C?null:g.current,R=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,T,E;if(A||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)_=Math.round(R.width/2),T=Math.round(R.height/2);else{const{clientX:M,clientY:I}=x.touches&&x.touches.length>0?x.touches[0]:x;_=Math.round(M-R.left),T=Math.round(I-R.top)}if(A)E=Math.sqrt((2*R.width**2+R.height**2)/3),E%2===0&&(E+=1);else{const M=Math.max(Math.abs((O?O.clientWidth:0)-_),_)*2+2,I=Math.max(Math.abs((O?O.clientHeight:0)-T),T)*2+2;E=Math.sqrt(M**2+I**2)}x!=null&&x.touches?f.current===null&&(f.current=()=>{m({pulsate:S,rippleX:_,rippleY:T,rippleSize:E,cb:w})},p.current=setTimeout(()=>{f.current&&(f.current(),f.current=null)},xZ)):m({pulsate:S,rippleX:_,rippleY:T,rippleSize:E,cb:w})},[o,m]),y=D.useCallback(()=>{v({},{pulsate:!0})},[v]),b=D.useCallback((x,k)=>{if(clearTimeout(p.current),(x==null?void 0:x.type)==="touchend"&&f.current){f.current(),f.current=null,p.current=setTimeout(()=>{b(x,k)});return}f.current=null,u(w=>w.length>0?w.slice(1):w),d.current=k},[]);return D.useImperativeHandle(n,()=>({pulsate:y,start:v,stop:b}),[y,v,b]),V.jsx(SZ,K({className:je(xo.root,i.root,s),ref:g},l,{children:V.jsx(hZ,{component:null,exit:!0,children:a})}))});function AZ(t){return bn("MuiButtonBase",t)}const _Z=xn("MuiButtonBase",["root","disabled","focusVisible"]),RZ=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],MZ=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:o}=t,s=Ln({root:["root",e&&"disabled",n&&"focusVisible"]},AZ,o);return n&&r&&(s.root+=` ${r}`),s},OZ=wt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${_Z.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),nw=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:l,component:a="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:h=!1,LinkComponent:p="a",onBlur:f,onClick:g,onContextMenu:m,onDragLeave:v,onFocus:y,onFocusVisible:b,onKeyDown:x,onKeyUp:k,onMouseDown:w,onMouseLeave:S,onMouseUp:A,onTouchEnd:C,onTouchMove:O,onTouchStart:R,tabIndex:_=0,TouchRippleProps:T,touchRippleRef:E,type:M}=r,I=ze(r,RZ),N=D.useRef(null),L=D.useRef(null),$=_r(L,E),{isFocusVisibleRef:P,onFocus:F,onBlur:H,ref:W}=qO(),[B,U]=D.useState(!1);u&&B&&U(!1),D.useImperativeHandle(o,()=>({focusVisible:()=>{U(!0),N.current.focus()}}),[]);const[G,Y]=D.useState(!1);D.useEffect(()=>{Y(!0)},[]);const X=G&&!c&&!u;D.useEffect(()=>{B&&h&&!c&&G&&L.current.pulsate()},[c,h,B,G]);function Z(ie,Ce,et=d){return nl(Ye=>(Ce&&Ce(Ye),!et&&L.current&&L.current[ie](Ye),!0))}const ne=Z("start",w),de=Z("stop",m),Ie=Z("stop",v),ve=Z("stop",A),Re=Z("stop",ie=>{B&&ie.preventDefault(),S&&S(ie)}),Se=Z("start",R),yt=Z("stop",C),Dt=Z("stop",O),Et=Z("stop",ie=>{H(ie),P.current===!1&&U(!1),f&&f(ie)},!1),pr=nl(ie=>{N.current||(N.current=ie.currentTarget),F(ie),P.current===!0&&(U(!0),b&&b(ie)),y&&y(ie)}),Pt=()=>{const ie=N.current;return a&&a!=="button"&&!(ie.tagName==="A"&&ie.href)},Dn=D.useRef(!1),En=nl(ie=>{h&&!Dn.current&&B&&L.current&&ie.key===" "&&(Dn.current=!0,L.current.stop(ie,()=>{L.current.start(ie)})),ie.target===ie.currentTarget&&Pt()&&ie.key===" "&&ie.preventDefault(),x&&x(ie),ie.target===ie.currentTarget&&Pt()&&ie.key==="Enter"&&!u&&(ie.preventDefault(),g&&g(ie))}),Sn=nl(ie=>{h&&ie.key===" "&&L.current&&B&&!ie.defaultPrevented&&(Dn.current=!1,L.current.stop(ie,()=>{L.current.pulsate(ie)})),k&&k(ie),g&&ie.target===ie.currentTarget&&Pt()&&ie.key===" "&&!ie.defaultPrevented&&g(ie)});let Qe=a;Qe==="button"&&(I.href||I.to)&&(Qe=p);const Pn={};Qe==="button"?(Pn.type=M===void 0?"button":M,Pn.disabled=u):(!I.href&&!I.to&&(Pn.role="button"),u&&(Pn["aria-disabled"]=u));const q=_r(n,W,N),ue=K({},r,{centerRipple:i,component:a,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:h,tabIndex:_,focusVisible:B}),me=MZ(ue);return V.jsxs(OZ,K({as:Qe,className:je(me.root,l),ownerState:ue,onBlur:Et,onClick:g,onContextMenu:de,onFocus:pr,onKeyDown:En,onKeyUp:Sn,onMouseDown:ne,onMouseLeave:Re,onMouseUp:ve,onDragLeave:Ie,onTouchEnd:yt,onTouchMove:Dt,onTouchStart:Se,ref:q,tabIndex:u?-1:_,type:M},Pn,I,{children:[s,X?V.jsx(TZ,K({ref:$,center:i},T)):null]}))});function IZ(t){return bn("MuiIconButton",t)}const LZ=xn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),NZ=["edge","children","className","color","disabled","disableFocusRipple","size"],$Z=t=>{const{classes:e,disabled:n,color:r,edge:o,size:i}=t,s={root:["root",n&&"disabled",r!=="default"&&`color${ft(r)}`,o&&`edge${ft(o)}`,`size${ft(i)}`]};return Ln(s,IZ,e)},DZ=wt(nw,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="default"&&e[`color${ft(n.color)}`],n.edge&&e[`edge${ft(n.edge)}`],e[`size${ft(n.size)}`]]}})(({theme:t,ownerState:e})=>K({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Mr(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12}),({theme:t,ownerState:e})=>{var n;const r=(n=(t.vars||t).palette)==null?void 0:n[e.color];return K({},e.color==="inherit"&&{color:"inherit"},e.color!=="inherit"&&e.color!=="default"&&K({color:r==null?void 0:r.main},!e.disableRipple&&{"&:hover":K({},r&&{backgroundColor:t.vars?`rgba(${r.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Mr(r.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),e.size==="small"&&{padding:5,fontSize:t.typography.pxToRem(18)},e.size==="large"&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${LZ.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})}),PZ=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:l="default",disabled:a=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=ze(r,NZ),h=K({},r,{edge:o,color:l,disabled:a,disableFocusRipple:u,size:c}),p=$Z(h);return V.jsx(DZ,K({className:je(p.root,s),centerRipple:!0,focusRipple:!u,disabled:a,ref:n,ownerState:h},d,{children:i}))});function zZ(t){return bn("MuiTypography",t)}xn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const FZ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],BZ=t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=t,l={root:["root",i,t.align!=="inherit"&&`align${ft(e)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ln(l,zZ,s)},HZ=wt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],n.align!=="inherit"&&e[`align${ft(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(({theme:t,ownerState:e})=>K({margin:0},e.variant==="inherit"&&{font:"inherit"},e.variant!=="inherit"&&t.typography[e.variant],e.align!=="inherit"&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),rL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},UZ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},WZ=t=>UZ[t]||t,Dh=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiTypography"}),o=WZ(r.color),i=jx(K({},r,{color:o})),{align:s="inherit",className:l,component:a,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:h="body1",variantMapping:p=rL}=i,f=ze(i,FZ),g=K({},i,{align:s,color:o,className:l,component:a,gutterBottom:u,noWrap:c,paragraph:d,variant:h,variantMapping:p}),m=a||(d?"p":p[h]||rL[h])||"span",v=BZ(g);return V.jsx(HZ,K({as:m,ref:n,ownerState:g,className:je(v.root,l)},f))});function oL(t){return typeof t=="string"}function Ph(t,e,n){return t===void 0||oL(t)?e:K({},e,{ownerState:K({},e.ownerState,n)})}const VZ={disableDefaultClasses:!1},jZ=D.createContext(VZ);function GZ(t){const{disableDefaultClasses:e}=D.useContext(jZ);return n=>e?"":t(n)}function iL(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function KZ(t,e,n){return typeof t=="function"?t(e,n):t}function sL(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function YZ(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=t;if(!e){const p=je(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),f=K({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=K({},n,o,r);return p.length>0&&(g.className=p),Object.keys(f).length>0&&(g.style=f),{props:g,internalRef:void 0}}const s=iL(K({},o,r)),l=sL(r),a=sL(o),u=e(s),c=je(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=K({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=K({},u,n,a,l);return c.length>0&&(h.className=c),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:u.ref}}const XZ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Yi(t){var e;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=t,s=ze(t,XZ),l=i?{}:KZ(r,o),{props:a,internalRef:u}=YZ(K({},s,{externalSlotProps:l})),c=_r(u,l==null?void 0:l.ref,(e=t.additionalProps)==null?void 0:e.ref);return Ph(n,K({},a,{ref:c}),o)}function qZ(t){const{badgeContent:e,invisible:n=!1,max:r=99,showZero:o=!1}=t,i=JO({badgeContent:e,max:r});let s=n;n===!1&&e===0&&!o&&(s=!0);const{badgeContent:l,max:a=r}=s?i:t,u=l&&Number(l)>a?`${a}+`:l;return{badgeContent:l,invisible:s,max:a,displayValue:u}}const ZZ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function JZ(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function QZ(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=r=>t.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=e(`[name="${t.name}"]:checked`);return n||(n=e(`[name="${t.name}"]`)),n!==t}function eJ(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||QZ(t))}function tJ(t){const e=[],n=[];return Array.from(t.querySelectorAll(ZZ)).forEach((r,o)=>{const i=JZ(r);i===-1||!eJ(r)||(i===0?e.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(e)}function nJ(){return!0}function rJ(t){const{children:e,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=tJ,isEnabled:s=nJ,open:l}=t,a=D.useRef(!1),u=D.useRef(null),c=D.useRef(null),d=D.useRef(null),h=D.useRef(null),p=D.useRef(!1),f=D.useRef(null),g=_r(e.ref,f),m=D.useRef(null);D.useEffect(()=>{!l||!f.current||(p.current=!n)},[n,l]),D.useEffect(()=>{if(!l||!f.current)return;const b=Ar(f.current);return f.current.contains(b.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),p.current&&f.current.focus()),()=>{o||(d.current&&d.current.focus&&(a.current=!0,d.current.focus()),d.current=null)}},[l]),D.useEffect(()=>{if(!l||!f.current)return;const b=Ar(f.current),x=S=>{m.current=S,!(r||!s()||S.key!=="Tab")&&b.activeElement===f.current&&S.shiftKey&&(a.current=!0,c.current&&c.current.focus())},k=()=>{const S=f.current;if(S===null)return;if(!b.hasFocus()||!s()||a.current){a.current=!1;return}if(S.contains(b.activeElement)||r&&b.activeElement!==u.current&&b.activeElement!==c.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!p.current)return;let A=[];if((b.activeElement===u.current||b.activeElement===c.current)&&(A=i(f.current)),A.length>0){var C,O;const R=!!((C=m.current)!=null&&C.shiftKey&&((O=m.current)==null?void 0:O.key)==="Tab"),_=A[0],T=A[A.length-1];typeof _!="string"&&typeof T!="string"&&(R?T.focus():_.focus())}else S.focus()};b.addEventListener("focusin",k),b.addEventListener("keydown",x,!0);const w=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(w),b.removeEventListener("focusin",k),b.removeEventListener("keydown",x,!0)}},[n,r,o,s,l,i]);const v=b=>{d.current===null&&(d.current=b.relatedTarget),p.current=!0,h.current=b.target;const x=e.props.onFocus;x&&x(b)},y=b=>{d.current===null&&(d.current=b.relatedTarget),p.current=!0};return V.jsxs(D.Fragment,{children:[V.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),D.cloneElement(e,{ref:g,onFocus:v}),V.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}var Or="top",wo="bottom",ko="right",Ir="left",rw="auto",zh=[Or,wo,ko,Ir],iu="start",Fh="end",oJ="clippingParents",aL="viewport",Bh="popper",iJ="reference",lL=zh.reduce(function(t,e){return t.concat([e+"-"+iu,e+"-"+Fh])},[]),cL=[].concat(zh,[rw]).reduce(function(t,e){return t.concat([e,e+"-"+iu,e+"-"+Fh])},[]),sJ="beforeRead",aJ="read",lJ="afterRead",cJ="beforeMain",uJ="main",dJ="afterMain",hJ="beforeWrite",pJ="write",fJ="afterWrite",gJ=[sJ,aJ,lJ,cJ,uJ,dJ,hJ,pJ,fJ];function gi(t){return t?(t.nodeName||"").toLowerCase():null}function eo(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ll(t){var e=eo(t).Element;return t instanceof e||t instanceof Element}function Eo(t){var e=eo(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ow(t){if(typeof ShadowRoot>"u")return!1;var e=eo(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function mJ(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!Eo(i)||!gi(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function vJ(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),l=s.reduce(function(a,u){return a[u]="",a},{});!Eo(o)||!gi(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const yJ={name:"applyStyles",enabled:!0,phase:"write",fn:mJ,effect:vJ,requires:["computeStyles"]};function mi(t){return t.split("-")[0]}var cl=Math.max,Gm=Math.min,su=Math.round;function iw(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function uL(){return!/^((?!chrome|android).)*safari/i.test(iw())}function au(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&Eo(t)&&(o=t.offsetWidth>0&&su(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&su(r.height)/t.offsetHeight||1);var s=ll(t)?eo(t):window,l=s.visualViewport,a=!uL()&&n,u=(r.left+(a&&l?l.offsetLeft:0))/o,c=(r.top+(a&&l?l.offsetTop:0))/i,d=r.width/o,h=r.height/i;return{width:d,height:h,top:c,right:u+d,bottom:c+h,left:u,x:u,y:c}}function sw(t){var e=au(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function dL(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&ow(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Xi(t){return eo(t).getComputedStyle(t)}function bJ(t){return["table","td","th"].indexOf(gi(t))>=0}function Qs(t){return((ll(t)?t.ownerDocument:t.document)||window.document).documentElement}function Km(t){return gi(t)==="html"?t:t.assignedSlot||t.parentNode||(ow(t)?t.host:null)||Qs(t)}function hL(t){return!Eo(t)||Xi(t).position==="fixed"?null:t.offsetParent}function xJ(t){var e=/firefox/i.test(iw()),n=/Trident/i.test(iw());if(n&&Eo(t)){var r=Xi(t);if(r.position==="fixed")return null}var o=Km(t);for(ow(o)&&(o=o.host);Eo(o)&&["html","body"].indexOf(gi(o))<0;){var i=Xi(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Hh(t){for(var e=eo(t),n=hL(t);n&&bJ(n)&&Xi(n).position==="static";)n=hL(n);return n&&(gi(n)==="html"||gi(n)==="body"&&Xi(n).position==="static")?e:n||xJ(t)||e}function aw(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Uh(t,e,n){return cl(t,Gm(e,n))}function wJ(t,e,n){var r=Uh(t,e,n);return r>n?n:r}function pL(){return{top:0,right:0,bottom:0,left:0}}function fL(t){return Object.assign({},pL(),t)}function gL(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var kJ=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,fL(typeof e!="number"?e:gL(e,zh))};function EJ(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=mi(n.placement),a=aw(l),u=[Ir,ko].indexOf(l)>=0,c=u?"height":"width";if(!(!i||!s)){var d=kJ(o.padding,n),h=sw(i),p=a==="y"?Or:Ir,f=a==="y"?wo:ko,g=n.rects.reference[c]+n.rects.reference[a]-s[a]-n.rects.popper[c],m=s[a]-n.rects.reference[a],v=Hh(i),y=v?a==="y"?v.clientHeight||0:v.clientWidth||0:0,b=g/2-m/2,x=d[p],k=y-h[c]-d[f],w=y/2-h[c]/2+b,S=Uh(x,w,k),A=a;n.modifiersData[r]=(e={},e[A]=S,e.centerOffset=S-w,e)}}function SJ(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||dL(e.elements.popper,o)&&(e.elements.arrow=o))}const CJ={name:"arrow",enabled:!0,phase:"main",fn:EJ,effect:SJ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function lu(t){return t.split("-")[1]}var TJ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function AJ(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:su(n*o)/o||0,y:su(r*o)/o||0}}function mL(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,l=t.position,a=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,d=t.isFixed,h=s.x,p=h===void 0?0:h,f=s.y,g=f===void 0?0:f,m=typeof c=="function"?c({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=Ir,x=Or,k=window;if(u){var w=Hh(n),S="clientHeight",A="clientWidth";if(w===eo(n)&&(w=Qs(n),Xi(w).position!=="static"&&l==="absolute"&&(S="scrollHeight",A="scrollWidth")),w=w,o===Or||(o===Ir||o===ko)&&i===Fh){x=wo;var C=d&&w===k&&k.visualViewport?k.visualViewport.height:w[S];g-=C-r.height,g*=a?1:-1}if(o===Ir||(o===Or||o===wo)&&i===Fh){b=ko;var O=d&&w===k&&k.visualViewport?k.visualViewport.width:w[A];p-=O-r.width,p*=a?1:-1}}var R=Object.assign({position:l},u&&TJ),_=c===!0?AJ({x:p,y:g},eo(n)):{x:p,y:g};if(p=_.x,g=_.y,a){var T;return Object.assign({},R,(T={},T[x]=y?"0":"",T[b]=v?"0":"",T.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",T))}return Object.assign({},R,(e={},e[x]=y?g+"px":"",e[b]=v?p+"px":"",e.transform="",e))}function _J(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,a=l===void 0?!0:l,u={placement:mi(e.placement),variation:lu(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,mL(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:a})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,mL(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const RJ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_J,data:{}};var Ym={passive:!0};function MJ(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,a=eo(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Ym)}),l&&a.addEventListener("resize",n.update,Ym),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Ym)}),l&&a.removeEventListener("resize",n.update,Ym)}}const OJ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:MJ,data:{}};var IJ={left:"right",right:"left",bottom:"top",top:"bottom"};function Xm(t){return t.replace(/left|right|bottom|top/g,function(e){return IJ[e]})}var LJ={start:"end",end:"start"};function vL(t){return t.replace(/start|end/g,function(e){return LJ[e]})}function lw(t){var e=eo(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function cw(t){return au(Qs(t)).left+lw(t).scrollLeft}function NJ(t,e){var n=eo(t),r=Qs(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;var u=uL();(u||!u&&e==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l+cw(t),y:a}}function $J(t){var e,n=Qs(t),r=lw(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=cl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=cl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+cw(t),a=-r.scrollTop;return Xi(o||n).direction==="rtl"&&(l+=cl(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:a}}function uw(t){var e=Xi(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function yL(t){return["html","body","#document"].indexOf(gi(t))>=0?t.ownerDocument.body:Eo(t)&&uw(t)?t:yL(Km(t))}function Wh(t,e){var n;e===void 0&&(e=[]);var r=yL(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=eo(r),s=o?[i].concat(i.visualViewport||[],uw(r)?r:[]):r,l=e.concat(s);return o?l:l.concat(Wh(Km(s)))}function dw(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function DJ(t,e){var n=au(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function bL(t,e,n){return e===aL?dw(NJ(t,n)):ll(e)?DJ(e,n):dw($J(Qs(t)))}function PJ(t){var e=Wh(Km(t)),n=["absolute","fixed"].indexOf(Xi(t).position)>=0,r=n&&Eo(t)?Hh(t):t;return ll(r)?e.filter(function(o){return ll(o)&&dL(o,r)&&gi(o)!=="body"}):[]}function zJ(t,e,n,r){var o=e==="clippingParents"?PJ(t):[].concat(e),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(a,u){var c=bL(t,u,r);return a.top=cl(c.top,a.top),a.right=Gm(c.right,a.right),a.bottom=Gm(c.bottom,a.bottom),a.left=cl(c.left,a.left),a},bL(t,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function xL(t){var e=t.reference,n=t.element,r=t.placement,o=r?mi(r):null,i=r?lu(r):null,s=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,a;switch(o){case Or:a={x:s,y:e.y-n.height};break;case wo:a={x:s,y:e.y+e.height};break;case ko:a={x:e.x+e.width,y:l};break;case Ir:a={x:e.x-n.width,y:l};break;default:a={x:e.x,y:e.y}}var u=o?aw(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case iu:a[u]=a[u]-(e[c]/2-n[c]/2);break;case Fh:a[u]=a[u]+(e[c]/2-n[c]/2);break}}return a}function Vh(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,s=i===void 0?t.strategy:i,l=n.boundary,a=l===void 0?oJ:l,u=n.rootBoundary,c=u===void 0?aL:u,d=n.elementContext,h=d===void 0?Bh:d,p=n.altBoundary,f=p===void 0?!1:p,g=n.padding,m=g===void 0?0:g,v=fL(typeof m!="number"?m:gL(m,zh)),y=h===Bh?iJ:Bh,b=t.rects.popper,x=t.elements[f?y:h],k=zJ(ll(x)?x:x.contextElement||Qs(t.elements.popper),a,c,s),w=au(t.elements.reference),S=xL({reference:w,element:b,strategy:"absolute",placement:o}),A=dw(Object.assign({},b,S)),C=h===Bh?A:w,O={top:k.top-C.top+v.top,bottom:C.bottom-k.bottom+v.bottom,left:k.left-C.left+v.left,right:C.right-k.right+v.right},R=t.modifiersData.offset;if(h===Bh&&R){var _=R[o];Object.keys(O).forEach(function(T){var E=[ko,wo].indexOf(T)>=0?1:-1,M=[Or,wo].indexOf(T)>=0?"y":"x";O[T]+=_[M]*E})}return O}function FJ(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?cL:a,c=lu(r),d=c?l?lL:lL.filter(function(f){return lu(f)===c}):zh,h=d.filter(function(f){return u.indexOf(f)>=0});h.length===0&&(h=d);var p=h.reduce(function(f,g){return f[g]=Vh(t,{placement:g,boundary:o,rootBoundary:i,padding:s})[mi(g)],f},{});return Object.keys(p).sort(function(f,g){return p[f]-p[g]})}function BJ(t){if(mi(t)===rw)return[];var e=Xm(t);return[vL(t),e,vL(e)]}function HJ(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,a=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=p===void 0?!0:p,g=n.allowedAutoPlacements,m=e.options.placement,v=mi(m),y=v===m,b=a||(y||!f?[Xm(m)]:BJ(m)),x=[m].concat(b).reduce(function(B,U){return B.concat(mi(U)===rw?FJ(e,{placement:U,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:g}):U)},[]),k=e.rects.reference,w=e.rects.popper,S=new Map,A=!0,C=x[0],O=0;O=0,M=E?"width":"height",I=Vh(e,{placement:R,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),N=E?T?ko:Ir:T?wo:Or;k[M]>w[M]&&(N=Xm(N));var L=Xm(N),$=[];if(i&&$.push(I[_]<=0),l&&$.push(I[N]<=0,I[L]<=0),$.every(function(B){return B})){C=R,A=!1;break}S.set(R,$)}if(A)for(var P=f?3:1,F=function(U){var G=x.find(function(Y){var X=S.get(Y);if(X)return X.slice(0,U).every(function(Z){return Z})});if(G)return C=G,"break"},H=P;H>0;H--){var W=F(H);if(W==="break")break}e.placement!==C&&(e.modifiersData[r]._skip=!0,e.placement=C,e.reset=!0)}}const UJ={name:"flip",enabled:!0,phase:"main",fn:HJ,requiresIfExists:["offset"],data:{_skip:!1}};function wL(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function kL(t){return[Or,ko,wo,Ir].some(function(e){return t[e]>=0})}function WJ(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=Vh(e,{elementContext:"reference"}),l=Vh(e,{altBoundary:!0}),a=wL(s,r),u=wL(l,o,i),c=kL(a),d=kL(u);e.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const VJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:WJ};function jJ(t,e,n){var r=mi(t),o=[Ir,Or].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[Ir,ko].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function GJ(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=cL.reduce(function(c,d){return c[d]=jJ(d,e.rects,i),c},{}),l=s[e.placement],a=l.x,u=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}const KJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:GJ};function YJ(t){var e=t.state,n=t.name;e.modifiersData[n]=xL({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const XJ={name:"popperOffsets",enabled:!0,phase:"read",fn:YJ,data:{}};function qJ(t){return t==="x"?"y":"x"}function ZJ(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,a=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,p=h===void 0?!0:h,f=n.tetherOffset,g=f===void 0?0:f,m=Vh(e,{boundary:a,rootBoundary:u,padding:d,altBoundary:c}),v=mi(e.placement),y=lu(e.placement),b=!y,x=aw(v),k=qJ(x),w=e.modifiersData.popperOffsets,S=e.rects.reference,A=e.rects.popper,C=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,O=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),R=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,_={x:0,y:0};if(w){if(i){var T,E=x==="y"?Or:Ir,M=x==="y"?wo:ko,I=x==="y"?"height":"width",N=w[x],L=N+m[E],$=N-m[M],P=p?-A[I]/2:0,F=y===iu?S[I]:A[I],H=y===iu?-A[I]:-S[I],W=e.elements.arrow,B=p&&W?sw(W):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:pL(),G=U[E],Y=U[M],X=Uh(0,S[I],B[I]),Z=b?S[I]/2-P-X-G-O.mainAxis:F-X-G-O.mainAxis,ne=b?-S[I]/2+P+X+Y+O.mainAxis:H+X+Y+O.mainAxis,de=e.elements.arrow&&Hh(e.elements.arrow),Ie=de?x==="y"?de.clientTop||0:de.clientLeft||0:0,ve=(T=R==null?void 0:R[x])!=null?T:0,Re=N+Z-ve-Ie,Se=N+ne-ve,yt=Uh(p?Gm(L,Re):L,N,p?cl($,Se):$);w[x]=yt,_[x]=yt-N}if(l){var Dt,Et=x==="x"?Or:Ir,pr=x==="x"?wo:ko,Pt=w[k],Dn=k==="y"?"height":"width",En=Pt+m[Et],Sn=Pt-m[pr],Qe=[Or,Ir].indexOf(v)!==-1,Pn=(Dt=R==null?void 0:R[k])!=null?Dt:0,q=Qe?En:Pt-S[Dn]-A[Dn]-Pn+O.altAxis,ue=Qe?Pt+S[Dn]+A[Dn]-Pn-O.altAxis:Sn,me=p&&Qe?wJ(q,Pt,ue):Uh(p?q:En,Pt,p?ue:Sn);w[k]=me,_[k]=me-Pt}e.modifiersData[r]=_}}const JJ={name:"preventOverflow",enabled:!0,phase:"main",fn:ZJ,requiresIfExists:["offset"]};function QJ(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function eQ(t){return t===eo(t)||!Eo(t)?lw(t):QJ(t)}function tQ(t){var e=t.getBoundingClientRect(),n=su(e.width)/t.offsetWidth||1,r=su(e.height)/t.offsetHeight||1;return n!==1||r!==1}function nQ(t,e,n){n===void 0&&(n=!1);var r=Eo(e),o=Eo(e)&&tQ(e),i=Qs(e),s=au(t,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((gi(e)!=="body"||uw(i))&&(l=eQ(e)),Eo(e)?(a=au(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=cw(i))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function rQ(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var a=e.get(l);a&&o(a)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function oQ(t){var e=rQ(t);return gJ.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function iQ(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function sQ(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var EL={placement:"bottom",modifiers:[],strategy:"absolute"};function SL(){for(var t=arguments.length,e=new Array(t),n=0;n{i||l(uQ(o)||document.body)},[o,i]),tl(()=>{if(s&&!i)return Ex(n,s),()=>{Ex(n,null)}},[n,s,i]),i){if(D.isValidElement(r)){const u={ref:a};return D.cloneElement(r,u)}return V.jsx(D.Fragment,{children:r})}return V.jsx(D.Fragment,{children:s&&fh.createPortal(r,s)})});function dQ(t){return bn("MuiPopper",t)}xn("MuiPopper",["root"]);const hQ=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],pQ=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function fQ(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function hw(t){return typeof t=="function"?t():t}function gQ(t){return t.nodeType!==void 0}const mQ=()=>Ln({root:["root"]},GZ(dQ)),vQ={},yQ=D.forwardRef(function(e,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:l,modifiers:a,open:u,placement:c,popperOptions:d,popperRef:h,slotProps:p={},slots:f={},TransitionProps:g}=e,m=ze(e,hQ),v=D.useRef(null),y=_r(v,n),b=D.useRef(null),x=_r(b,h),k=D.useRef(x);tl(()=>{k.current=x},[x]),D.useImperativeHandle(h,()=>b.current,[]);const w=fQ(c,s),[S,A]=D.useState(w),[C,O]=D.useState(hw(o));D.useEffect(()=>{b.current&&b.current.forceUpdate()}),D.useEffect(()=>{o&&O(hw(o))},[o]),tl(()=>{if(!C||!u)return;const M=L=>{A(L.placement)};let I=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{M(L)}}];a!=null&&(I=I.concat(a)),d&&d.modifiers!=null&&(I=I.concat(d.modifiers));const N=cQ(C,v.current,K({placement:w},d,{modifiers:I}));return k.current(N),()=>{N.destroy(),k.current(null)}},[C,l,a,u,d,w]);const R={placement:S};g!==null&&(R.TransitionProps=g);const _=mQ(),T=(r=f.root)!=null?r:"div",E=Yi({elementType:T,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:_.root});return V.jsx(T,K({},E,{children:typeof i=="function"?i(R):i}))}),bQ=D.forwardRef(function(e,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:l=!1,keepMounted:a=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:h=vQ,popperRef:p,style:f,transition:g=!1,slotProps:m={},slots:v={}}=e,y=ze(e,pQ),[b,x]=D.useState(!0),k=()=>{x(!1)},w=()=>{x(!0)};if(!a&&!c&&(!g||b))return null;let S;if(i)S=i;else if(r){const O=hw(r);S=O&&gQ(O)?Ar(O).body:Ar(null).body}const A=!c&&a&&(!g||b)?"none":void 0,C=g?{in:c,onEnter:k,onExited:w}:void 0;return V.jsx(CL,{disablePortal:l,container:S,children:V.jsx(yQ,K({anchorEl:r,direction:s,disablePortal:l,modifiers:u,ref:n,open:g?!b:c,placement:d,popperOptions:h,popperRef:p,slotProps:m,slots:v},y,{style:K({position:"fixed",top:0,left:0,display:A},f),TransitionProps:C,children:o}))})});function xQ(t){const e=Ar(t);return e.body===t?Th(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function jh(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function TL(t){return parseInt(Th(t).getComputedStyle(t).paddingRight,10)||0}function wQ(t){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(t.tagName)!==-1,r=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return n||r}function AL(t,e,n,r,o){const i=[e,n,...r];[].forEach.call(t.children,s=>{const l=i.indexOf(s)===-1,a=!wQ(s);l&&a&&jh(s,o)})}function pw(t,e){let n=-1;return t.some((r,o)=>e(r)?(n=o,!0):!1),n}function kQ(t,e){const n=[],r=t.container;if(!e.disableScrollLock){if(xQ(r)){const s=ZO(Ar(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${TL(r)+s}px`;const l=Ar(r).querySelectorAll(".mui-fixed");[].forEach.call(l,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${TL(a)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Ar(r).body;else{const s=r.parentElement,l=Th(r);i=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:l})=>{i?s.style.setProperty(l,i):s.style.removeProperty(l)})}}function EQ(t){const e=[];return[].forEach.call(t.children,n=>{n.getAttribute("aria-hidden")==="true"&&e.push(n)}),e}class SQ{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,n){let r=this.modals.indexOf(e);if(r!==-1)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&jh(e.modalRef,!1);const o=EQ(n);AL(n,e.mount,e.modalRef,o,!0);const i=pw(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(e),r):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblings:o}),r)}mount(e,n){const r=pw(this.containers,i=>i.modals.indexOf(e)!==-1),o=this.containers[r];o.restore||(o.restore=kQ(o,n))}remove(e,n=!0){const r=this.modals.indexOf(e);if(r===-1)return r;const o=pw(this.containers,s=>s.modals.indexOf(e)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&jh(e.modalRef,n),AL(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&jh(s.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}function CQ(t){return typeof t=="function"?t():t}function TQ(t){return t?t.props.hasOwnProperty("in"):!1}const AQ=new SQ;function _Q(t){const{container:e,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=AQ,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:l,children:a,onClose:u,open:c,rootRef:d}=t,h=D.useRef({}),p=D.useRef(null),f=D.useRef(null),g=_r(f,d),[m,v]=D.useState(!c),y=TQ(a);let b=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(b=!1);const x=()=>Ar(p.current),k=()=>(h.current.modalRef=f.current,h.current.mount=p.current,h.current),w=()=>{o.mount(k(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},S=nl(()=>{const I=CQ(e)||x().body;o.add(k(),I),f.current&&w()}),A=D.useCallback(()=>o.isTopModal(k()),[o]),C=nl(I=>{p.current=I,I&&(c&&A()?w():f.current&&jh(f.current,b))}),O=D.useCallback(()=>{o.remove(k(),b)},[b,o]);D.useEffect(()=>()=>{O()},[O]),D.useEffect(()=>{c?S():(!y||!i)&&O()},[c,O,y,i,S]);const R=I=>N=>{var L;(L=I.onKeyDown)==null||L.call(I,N),!(N.key!=="Escape"||!A())&&(n||(N.stopPropagation(),u&&u(N,"escapeKeyDown")))},_=I=>N=>{var L;(L=I.onClick)==null||L.call(I,N),N.target===N.currentTarget&&u&&u(N,"backdropClick")};return{getRootProps:(I={})=>{const N=iL(t);delete N.onTransitionEnter,delete N.onTransitionExited;const L=K({},N,I);return K({role:"presentation"},L,{onKeyDown:R(L),ref:g})},getBackdropProps:(I={})=>{const N=I;return K({"aria-hidden":!0},N,{onClick:_(N),open:c})},getTransitionProps:()=>{const I=()=>{v(!1),s&&s()},N=()=>{v(!0),l&&l(),i&&O()};return{onEnter:GO(I,a==null?void 0:a.props.onEnter),onExited:GO(N,a==null?void 0:a.props.onExited)}},rootRef:g,portalRef:C,isTopModal:A,exited:m,hasTransition:y}}const RQ=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],MQ=wt(bQ,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),fw=D.forwardRef(function(e,n){var r;const o=Wx(),i=kn({props:e,name:"MuiPopper"}),{anchorEl:s,component:l,components:a,componentsProps:u,container:c,disablePortal:d,keepMounted:h,modifiers:p,open:f,placement:g,popperOptions:m,popperRef:v,transition:y,slots:b,slotProps:x}=i,k=ze(i,RQ),w=(r=b==null?void 0:b.root)!=null?r:a==null?void 0:a.Root,S=K({anchorEl:s,container:c,disablePortal:d,keepMounted:h,modifiers:p,open:f,placement:g,popperOptions:m,popperRef:v,transition:y},k);return V.jsx(MQ,K({as:l,direction:o==null?void 0:o.direction,slots:{root:w},slotProps:x??u},S,{ref:n}))}),OQ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],IQ={entering:{opacity:1},entered:{opacity:1}},LQ=D.forwardRef(function(e,n){const r=Um(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,easing:a,in:u,onEnter:c,onEntered:d,onEntering:h,onExit:p,onExited:f,onExiting:g,style:m,timeout:v=o,TransitionComponent:y=ZI}=e,b=ze(e,OQ),x=D.useRef(null),k=_r(x,l.ref,n),w=E=>M=>{if(E){const I=x.current;M===void 0?E(I):E(I,M)}},S=w(h),A=w((E,M)=>{JI(E);const I=Vm({style:m,timeout:v,easing:a},{mode:"enter"});E.style.webkitTransition=r.transitions.create("opacity",I),E.style.transition=r.transitions.create("opacity",I),c&&c(E,M)}),C=w(d),O=w(g),R=w(E=>{const M=Vm({style:m,timeout:v,easing:a},{mode:"exit"});E.style.webkitTransition=r.transitions.create("opacity",M),E.style.transition=r.transitions.create("opacity",M),p&&p(E)}),_=w(f),T=E=>{i&&i(x.current,E)};return V.jsx(y,K({appear:s,in:u,nodeRef:x,onEnter:A,onEntered:C,onEntering:S,onExit:R,onExited:_,onExiting:O,addEndListener:T,timeout:v},b,{children:(E,M)=>D.cloneElement(l,K({style:K({opacity:0,visibility:E==="exited"&&!u?"hidden":void 0},IQ[E],m,l.props.style),ref:k},M))}))});function NQ(t){return bn("MuiBackdrop",t)}xn("MuiBackdrop",["root","invisible"]);const $Q=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],DQ=t=>{const{classes:e,invisible:n}=t;return Ln({root:["root",n&&"invisible"]},NQ,e)},PQ=wt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.invisible]}})(({ownerState:t})=>K({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})),zQ=D.forwardRef(function(e,n){var r,o,i;const s=kn({props:e,name:"MuiBackdrop"}),{children:l,className:a,component:u="div",components:c={},componentsProps:d={},invisible:h=!1,open:p,slotProps:f={},slots:g={},TransitionComponent:m=LQ,transitionDuration:v}=s,y=ze(s,$Q),b=K({},s,{component:u,invisible:h}),x=DQ(b),k=(r=f.root)!=null?r:d.root;return V.jsx(m,K({in:p,timeout:v},y,{children:V.jsx(PQ,K({"aria-hidden":!0},k,{as:(o=(i=g.root)!=null?i:c.Root)!=null?o:u,className:je(x.root,a,k==null?void 0:k.className),ownerState:K({},b,k==null?void 0:k.ownerState),classes:x,ref:n,children:l}))}))});function FQ(t){return bn("MuiBadge",t)}const ea=xn("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),BQ=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],gw=10,mw=4,HQ=t=>{const{color:e,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=t,l={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${ft(n.vertical)}${ft(n.horizontal)}`,`anchorOrigin${ft(n.vertical)}${ft(n.horizontal)}${ft(o)}`,`overlap${ft(o)}`,e!=="default"&&`color${ft(e)}`]};return Ln(l,FQ,s)},UQ=wt("span",{name:"MuiBadge",slot:"Root",overridesResolver:(t,e)=>e.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),WQ=wt("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.badge,e[n.variant],e[`anchorOrigin${ft(n.anchorOrigin.vertical)}${ft(n.anchorOrigin.horizontal)}${ft(n.overlap)}`],n.color!=="default"&&e[`color${ft(n.color)}`],n.invisible&&e.invisible]}})(({theme:t,ownerState:e})=>K({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:gw*2,lineHeight:1,padding:"0 6px",height:gw*2,borderRadius:gw,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen})},e.color!=="default"&&{backgroundColor:(t.vars||t).palette[e.color].main,color:(t.vars||t).palette[e.color].contrastText},e.variant==="dot"&&{borderRadius:mw,height:mw*2,minWidth:mw*2,padding:0},e.anchorOrigin.vertical==="top"&&e.anchorOrigin.horizontal==="right"&&e.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ea.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},e.anchorOrigin.vertical==="bottom"&&e.anchorOrigin.horizontal==="right"&&e.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ea.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},e.anchorOrigin.vertical==="top"&&e.anchorOrigin.horizontal==="left"&&e.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ea.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},e.anchorOrigin.vertical==="bottom"&&e.anchorOrigin.horizontal==="left"&&e.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ea.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},e.anchorOrigin.vertical==="top"&&e.anchorOrigin.horizontal==="right"&&e.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ea.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},e.anchorOrigin.vertical==="bottom"&&e.anchorOrigin.horizontal==="right"&&e.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ea.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},e.anchorOrigin.vertical==="top"&&e.anchorOrigin.horizontal==="left"&&e.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ea.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},e.anchorOrigin.vertical==="bottom"&&e.anchorOrigin.horizontal==="left"&&e.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ea.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},e.invisible&&{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})})),VQ=D.forwardRef(function(e,n){var r,o,i,s,l,a;const u=kn({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:h,components:p={},componentsProps:f={},children:g,overlap:m="rectangular",color:v="default",invisible:y=!1,max:b=99,badgeContent:x,slots:k,slotProps:w,showZero:S=!1,variant:A="standard"}=u,C=ze(u,BQ),{badgeContent:O,invisible:R,max:_,displayValue:T}=qZ({max:b,invisible:y,badgeContent:x,showZero:S}),E=JO({anchorOrigin:c,color:v,overlap:m,variant:A,badgeContent:x}),M=R||O==null&&A!=="dot",{color:I=v,overlap:N=m,anchorOrigin:L=c,variant:$=A}=M?E:u,P=$!=="dot"?T:void 0,F=K({},u,{badgeContent:O,invisible:M,max:_,displayValue:P,showZero:S,anchorOrigin:L,color:I,overlap:N,variant:$}),H=HQ(F),W=(r=(o=k==null?void 0:k.root)!=null?o:p.Root)!=null?r:UQ,B=(i=(s=k==null?void 0:k.badge)!=null?s:p.Badge)!=null?i:WQ,U=(l=w==null?void 0:w.root)!=null?l:f.root,G=(a=w==null?void 0:w.badge)!=null?a:f.badge,Y=Yi({elementType:W,externalSlotProps:U,externalForwardedProps:C,additionalProps:{ref:n,as:h},ownerState:F,className:je(U==null?void 0:U.className,H.root,d)}),X=Yi({elementType:B,externalSlotProps:G,ownerState:F,className:je(H.badge,G==null?void 0:G.className)});return V.jsxs(W,K({},Y,{children:[g,V.jsx(B,K({},X,{children:P}))]}))}),jQ=Yx(),_L=oq({themeId:Jc,defaultTheme:jQ,defaultClassName:"MuiBox-root",generateClassName:tI.generate});function GQ(t){return bn("MuiModal",t)}xn("MuiModal",["root","hidden","backdrop"]);const KQ=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],YQ=t=>{const{open:e,exited:n,classes:r}=t;return Ln({root:["root",!e&&n&&"hidden"],backdrop:["backdrop"]},GQ,r)},XQ=wt("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.open&&n.exited&&e.hidden]}})(({theme:t,ownerState:e})=>K({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&e.exited&&{visibility:"hidden"})),qQ=wt(zQ,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),ZQ=D.forwardRef(function(e,n){var r,o,i,s,l,a;const u=kn({name:"MuiModal",props:e}),{BackdropComponent:c=qQ,BackdropProps:d,className:h,closeAfterTransition:p=!1,children:f,container:g,component:m,components:v={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:k=!1,disablePortal:w=!1,disableRestoreFocus:S=!1,disableScrollLock:A=!1,hideBackdrop:C=!1,keepMounted:O=!1,onBackdropClick:R,open:_,slotProps:T,slots:E}=u,M=ze(u,KQ),I=K({},u,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:k,disablePortal:w,disableRestoreFocus:S,disableScrollLock:A,hideBackdrop:C,keepMounted:O}),{getRootProps:N,getBackdropProps:L,getTransitionProps:$,portalRef:P,isTopModal:F,exited:H,hasTransition:W}=_Q(K({},I,{rootRef:n})),B=K({},I,{exited:H}),U=YQ(B),G={};if(f.props.tabIndex===void 0&&(G.tabIndex="-1"),W){const{onEnter:ve,onExited:Re}=$();G.onEnter=ve,G.onExited=Re}const Y=(r=(o=E==null?void 0:E.root)!=null?o:v.Root)!=null?r:XQ,X=(i=(s=E==null?void 0:E.backdrop)!=null?s:v.Backdrop)!=null?i:c,Z=(l=T==null?void 0:T.root)!=null?l:y.root,ne=(a=T==null?void 0:T.backdrop)!=null?a:y.backdrop,de=Yi({elementType:Y,externalSlotProps:Z,externalForwardedProps:M,getSlotProps:N,additionalProps:{ref:n,as:m},ownerState:B,className:je(h,Z==null?void 0:Z.className,U==null?void 0:U.root,!B.open&&B.exited&&(U==null?void 0:U.hidden))}),Ie=Yi({elementType:X,externalSlotProps:ne,additionalProps:d,getSlotProps:ve=>L(K({},ve,{onClick:Re=>{R&&R(Re),ve!=null&&ve.onClick&&ve.onClick(Re)}})),className:je(ne==null?void 0:ne.className,d==null?void 0:d.className,U==null?void 0:U.backdrop),ownerState:B});return!O&&!_&&(!W||H)?null:V.jsx(CL,{ref:P,container:g,disablePortal:w,children:V.jsxs(Y,K({},de,{children:[!C&&c?V.jsx(X,K({},Ie)):null,V.jsx(rJ,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:F,open:_,children:D.cloneElement(f,G)})]}))})}),RL=xn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),JQ=Lq({createStyledComponent:wt("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>kn({props:t,name:"MuiStack"})}),QQ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function vw(t){return`scale(${t}, ${t**2})`}const eee={entering:{opacity:1,transform:vw(1)},entered:{opacity:1,transform:"none"}},yw=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ML=D.forwardRef(function(e,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:l,onEnter:a,onEntered:u,onEntering:c,onExit:d,onExited:h,onExiting:p,style:f,timeout:g="auto",TransitionComponent:m=ZI}=e,v=ze(e,QQ),y=D.useRef(),b=D.useRef(),x=Um(),k=D.useRef(null),w=_r(k,i.ref,n),S=M=>I=>{if(M){const N=k.current;I===void 0?M(N):M(N,I)}},A=S(c),C=S((M,I)=>{JI(M);const{duration:N,delay:L,easing:$}=Vm({style:f,timeout:g,easing:s},{mode:"enter"});let P;g==="auto"?(P=x.transitions.getAutoHeightDuration(M.clientHeight),b.current=P):P=N,M.style.transition=[x.transitions.create("opacity",{duration:P,delay:L}),x.transitions.create("transform",{duration:yw?P:P*.666,delay:L,easing:$})].join(","),a&&a(M,I)}),O=S(u),R=S(p),_=S(M=>{const{duration:I,delay:N,easing:L}=Vm({style:f,timeout:g,easing:s},{mode:"exit"});let $;g==="auto"?($=x.transitions.getAutoHeightDuration(M.clientHeight),b.current=$):$=I,M.style.transition=[x.transitions.create("opacity",{duration:$,delay:N}),x.transitions.create("transform",{duration:yw?$:$*.666,delay:yw?N:N||$*.333,easing:L})].join(","),M.style.opacity=0,M.style.transform=vw(.75),d&&d(M)}),T=S(h),E=M=>{g==="auto"&&(y.current=setTimeout(M,b.current||0)),r&&r(k.current,M)};return D.useEffect(()=>()=>{clearTimeout(y.current)},[]),V.jsx(m,K({appear:o,in:l,nodeRef:k,onEnter:C,onEntered:O,onEntering:A,onExit:_,onExited:T,onExiting:R,addEndListener:E,timeout:g==="auto"?null:g},v,{children:(M,I)=>D.cloneElement(i,K({style:K({opacity:0,transform:vw(.75),visibility:M==="exited"&&!l?"hidden":void 0},eee[M],f,i.props.style),ref:w},I))}))});ML.muiSupportAuto=!0;const bw=ML,Gh=D.createContext({});function tee(t){return bn("MuiList",t)}xn("MuiList",["root","padding","dense","subheader"]);const nee=["children","className","component","dense","disablePadding","subheader"],ree=t=>{const{classes:e,disablePadding:n,dense:r,subheader:o}=t;return Ln({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},tee,e)},oee=wt("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})(({ownerState:t})=>K({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})),iee=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:l=!1,disablePadding:a=!1,subheader:u}=r,c=ze(r,nee),d=D.useMemo(()=>({dense:l}),[l]),h=K({},r,{component:s,dense:l,disablePadding:a}),p=ree(h);return V.jsx(Gh.Provider,{value:d,children:V.jsxs(oee,K({as:s,className:je(p.root,i),ref:n,ownerState:h},c,{children:[u,o]}))})});function see(t){return bn("MuiListItemIcon",t)}const OL=xn("MuiListItemIcon",["root","alignItemsFlexStart"]),aee=["className"],lee=t=>{const{alignItems:e,classes:n}=t;return Ln({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},see,n)},cee=wt("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(({theme:t,ownerState:e})=>K({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},e.alignItems==="flex-start"&&{marginTop:8})),uee=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiListItemIcon"}),{className:o}=r,i=ze(r,aee),s=D.useContext(Gh),l=K({},r,{alignItems:s.alignItems}),a=lee(l);return V.jsx(cee,K({className:je(a.root,o),ownerState:l,ref:n},i))});function dee(t){return bn("MuiListItemText",t)}const qm=xn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),hee=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],pee=t=>{const{classes:e,inset:n,primary:r,secondary:o,dense:i}=t;return Ln({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},dee,e)},fee=wt("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${qm.primary}`]:e.primary},{[`& .${qm.secondary}`]:e.secondary},e.root,n.inset&&e.inset,n.primary&&n.secondary&&e.multiline,n.dense&&e.dense]}})(({ownerState:t})=>K({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})),gee=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:l=!1,primary:a,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,h=ze(r,hee),{dense:p}=D.useContext(Gh);let f=a??o,g=c;const m=K({},r,{disableTypography:s,inset:l,primary:!!f,secondary:!!g,dense:p}),v=pee(m);return f!=null&&f.type!==Dh&&!s&&(f=V.jsx(Dh,K({variant:p?"body2":"body1",className:v.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:f}))),g!=null&&g.type!==Dh&&!s&&(g=V.jsx(Dh,K({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},d,{children:g}))),V.jsxs(fee,K({className:je(v.root,i),ownerState:m,ref:n},h,{children:[f,g]}))}),mee=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function xw(t,e,n){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:n?null:t.firstChild}function IL(t,e,n){return t===e?n?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:n?null:t.lastChild}function LL(t,e){if(e===void 0)return!0;let n=t.innerText;return n===void 0&&(n=t.textContent),n=n.trim().toLowerCase(),n.length===0?!1:e.repeating?n[0]===e.keys[0]:n.indexOf(e.keys.join(""))===0}function Kh(t,e,n,r,o,i){let s=!1,l=o(t,e,e?n:!1);for(;l;){if(l===t.firstChild){if(s)return!1;s=!0}const a=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!LL(l,i)||a)l=o(t,l,n);else return l.focus(),!0}return!1}const vee=D.forwardRef(function(e,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:l,disabledItemsFocusable:a=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,h=ze(e,mee),p=D.useRef(null),f=D.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});tl(()=>{o&&p.current.focus()},[o]),D.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(b,x)=>{const k=!p.current.style.width;if(b.clientHeight{const x=p.current,k=b.key,w=Ar(x).activeElement;if(k==="ArrowDown")b.preventDefault(),Kh(x,w,u,a,xw);else if(k==="ArrowUp")b.preventDefault(),Kh(x,w,u,a,IL);else if(k==="Home")b.preventDefault(),Kh(x,null,u,a,xw);else if(k==="End")b.preventDefault(),Kh(x,null,u,a,IL);else if(k.length===1){const S=f.current,A=k.toLowerCase(),C=performance.now();S.keys.length>0&&(C-S.lastTime>500?(S.keys=[],S.repeating=!0,S.previousKeyMatched=!0):S.repeating&&A!==S.keys[0]&&(S.repeating=!1)),S.lastTime=C,S.keys.push(A);const O=w&&!S.repeating&&LL(w,S);S.previousKeyMatched&&(O||Kh(x,w,!1,a,xw,S))?b.preventDefault():S.previousKeyMatched=!1}c&&c(b)},m=_r(p,n);let v=-1;D.Children.forEach(s,(b,x)=>{if(!D.isValidElement(b)){v===x&&(v+=1,v>=s.length&&(v=-1));return}b.props.disabled||(d==="selectedMenu"&&b.props.selected||v===-1)&&(v=x),v===x&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(v+=1,v>=s.length&&(v=-1))});const y=D.Children.map(s,(b,x)=>{if(x===v){const k={};return i&&(k.autoFocus=!0),b.props.tabIndex===void 0&&d==="selectedMenu"&&(k.tabIndex=0),D.cloneElement(b,k)}return b});return V.jsx(iee,K({role:"menu",ref:m,className:l,onKeyDown:g,tabIndex:o?0:-1},h,{children:y}))});function yee(t){return bn("MuiPopover",t)}xn("MuiPopover",["root","paper"]);const bee=["onEntering"],xee=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],wee=["slotProps"];function NL(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.height/2:e==="bottom"&&(n=t.height),n}function $L(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.width/2:e==="right"&&(n=t.width),n}function DL(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function ww(t){return typeof t=="function"?t():t}const kee=t=>{const{classes:e}=t;return Ln({root:["root"],paper:["paper"]},yee,e)},Eee=wt(ZQ,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),PL=wt(vZ,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),See=D.forwardRef(function(e,n){var r,o,i;const s=kn({props:e,name:"MuiPopover"}),{action:l,anchorEl:a,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:h,className:p,container:f,elevation:g=8,marginThreshold:m=16,open:v,PaperProps:y={},slots:b,slotProps:x,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:w=bw,transitionDuration:S="auto",TransitionProps:{onEntering:A}={},disableScrollLock:C=!1}=s,O=ze(s.TransitionProps,bee),R=ze(s,xee),_=(r=x==null?void 0:x.paper)!=null?r:y,T=D.useRef(),E=_r(T,_.ref),M=K({},s,{anchorOrigin:u,anchorReference:d,elevation:g,marginThreshold:m,externalPaperSlotProps:_,transformOrigin:k,TransitionComponent:w,transitionDuration:S,TransitionProps:O}),I=kee(M),N=D.useCallback(()=>{if(d==="anchorPosition")return c;const ve=ww(a),Se=(ve&&ve.nodeType===1?ve:Ar(T.current).body).getBoundingClientRect();return{top:Se.top+NL(Se,u.vertical),left:Se.left+$L(Se,u.horizontal)}},[a,u.horizontal,u.vertical,c,d]),L=D.useCallback(ve=>({vertical:NL(ve,k.vertical),horizontal:$L(ve,k.horizontal)}),[k.horizontal,k.vertical]),$=D.useCallback(ve=>{const Re={width:ve.offsetWidth,height:ve.offsetHeight},Se=L(Re);if(d==="none")return{top:null,left:null,transformOrigin:DL(Se)};const yt=N();let Dt=yt.top-Se.vertical,Et=yt.left-Se.horizontal;const pr=Dt+Re.height,Pt=Et+Re.width,Dn=Th(ww(a)),En=Dn.innerHeight-m,Sn=Dn.innerWidth-m;if(m!==null&&DtEn){const Qe=pr-En;Dt-=Qe,Se.vertical+=Qe}if(m!==null&&EtSn){const Qe=Pt-Sn;Et-=Qe,Se.horizontal+=Qe}return{top:`${Math.round(Dt)}px`,left:`${Math.round(Et)}px`,transformOrigin:DL(Se)}},[a,d,N,L,m]),[P,F]=D.useState(v),H=D.useCallback(()=>{const ve=T.current;if(!ve)return;const Re=$(ve);Re.top!==null&&(ve.style.top=Re.top),Re.left!==null&&(ve.style.left=Re.left),ve.style.transformOrigin=Re.transformOrigin,F(!0)},[$]);D.useEffect(()=>(C&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[a,C,H]);const W=(ve,Re)=>{A&&A(ve,Re),H()},B=()=>{F(!1)};D.useEffect(()=>{v&&H()}),D.useImperativeHandle(l,()=>v?{updatePosition:()=>{H()}}:null,[v,H]),D.useEffect(()=>{if(!v)return;const ve=YK(()=>{H()}),Re=Th(a);return Re.addEventListener("resize",ve),()=>{ve.clear(),Re.removeEventListener("resize",ve)}},[a,v,H]);let U=S;S==="auto"&&!w.muiSupportAuto&&(U=void 0);const G=f||(a?Ar(ww(a)).body:void 0),Y=(o=b==null?void 0:b.root)!=null?o:Eee,X=(i=b==null?void 0:b.paper)!=null?i:PL,Z=Yi({elementType:X,externalSlotProps:K({},_,{style:P?_.style:K({},_.style,{opacity:0})}),additionalProps:{elevation:g,ref:E},ownerState:M,className:je(I.paper,_==null?void 0:_.className)}),ne=Yi({elementType:Y,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:R,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:G,open:v},ownerState:M,className:je(I.root,p)}),{slotProps:de}=ne,Ie=ze(ne,wee);return V.jsx(Y,K({},Ie,!oL(Y)&&{slotProps:de,disableScrollLock:C},{children:V.jsx(w,K({appear:!0,in:v,onEntering:W,onExited:B,timeout:U},O,{children:V.jsx(X,K({},Z,{children:h}))}))}))});function Cee(t){return bn("MuiMenu",t)}xn("MuiMenu",["root","paper","list"]);const Tee=["onEntering"],Aee=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],_ee={vertical:"top",horizontal:"right"},Ree={vertical:"top",horizontal:"left"},Mee=t=>{const{classes:e}=t;return Ln({root:["root"],paper:["paper"],list:["list"]},Cee,e)},Oee=wt(See,{shouldForwardProp:t=>qx(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Iee=wt(PL,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Lee=wt(vee,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),Nee=D.forwardRef(function(e,n){var r,o;const i=kn({props:e,name:"MuiMenu"}),{autoFocus:s=!0,children:l,className:a,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:h,PaperProps:p={},PopoverClasses:f,transitionDuration:g="auto",TransitionProps:{onEntering:m}={},variant:v="selectedMenu",slots:y={},slotProps:b={}}=i,x=ze(i.TransitionProps,Tee),k=ze(i,Aee),w=Um(),S=w.direction==="rtl",A=K({},i,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:g,TransitionProps:x,variant:v}),C=Mee(A),O=s&&!u&&h,R=D.useRef(null),_=($,P)=>{R.current&&R.current.adjustStyleForScrollbar($,w),m&&m($,P)},T=$=>{$.key==="Tab"&&($.preventDefault(),d&&d($,"tabKeyDown"))};let E=-1;D.Children.map(l,($,P)=>{D.isValidElement($)&&($.props.disabled||(v==="selectedMenu"&&$.props.selected||E===-1)&&(E=P))});const M=(r=y.paper)!=null?r:Iee,I=(o=b.paper)!=null?o:p,N=Yi({elementType:y.root,externalSlotProps:b.root,ownerState:A,className:[C.root,a]}),L=Yi({elementType:M,externalSlotProps:I,ownerState:A,className:C.paper});return V.jsx(Oee,K({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?_ee:Ree,slots:{paper:M,root:y.root},slotProps:{root:N,paper:L},open:h,ref:n,transitionDuration:g,TransitionProps:K({onEntering:_},x),ownerState:A},k,{classes:f,children:V.jsx(Lee,K({onKeyDown:T,actions:R,autoFocus:s&&(E===-1||u),autoFocusItem:O,variant:v},c,{className:je(C.list,c.className),children:l}))}))});function $ee(t){return bn("MuiMenuItem",t)}const Yh=xn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Dee=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Pee=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.divider&&e.divider,!n.disableGutters&&e.gutters]},zee=t=>{const{disabled:e,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=t,a=Ln({root:["root",n&&"dense",e&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},$ee,s);return K({},s,a)},Fee=wt(nw,{shouldForwardProp:t=>qx(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Pee})(({theme:t,ownerState:e})=>K({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yh.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Mr(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Yh.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Mr(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Yh.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Mr(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Mr(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Yh.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Yh.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${RL.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${RL.inset}`]:{marginLeft:52},[`& .${qm.root}`]:{marginTop:0,marginBottom:0},[`& .${qm.inset}`]:{paddingLeft:36},[`& .${OL.root}`]:{minWidth:36}},!e.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},e.dense&&K({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${OL.root} svg`]:{fontSize:"1.25rem"}}))),Bee=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:l=!1,disableGutters:a=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:h}=r,p=ze(r,Dee),f=D.useContext(Gh),g=D.useMemo(()=>({dense:s||f.dense||!1,disableGutters:a}),[f.dense,s,a]),m=D.useRef(null);tl(()=>{o&&m.current&&m.current.focus()},[o]);const v=K({},r,{dense:g.dense,divider:l,disableGutters:a}),y=zee(r),b=_r(m,n);let x;return r.disabled||(x=d!==void 0?d:-1),V.jsx(Gh.Provider,{value:g,children:V.jsx(Fee,K({ref:b,role:c,tabIndex:x,component:i,focusVisibleClassName:je(y.focusVisible,u),className:je(y.root,h)},p,{ownerState:v,classes:y}))})});function Hee(t){return bn("MuiTooltip",t)}const ta=xn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Uee=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Wee(t){return Math.round(t*1e5)/1e5}const Vee=t=>{const{classes:e,disableInteractive:n,arrow:r,touch:o,placement:i}=t,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ft(i.split("-")[0])}`],arrow:["arrow"]};return Ln(s,Hee,e)},jee=wt(fw,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.popper,!n.disableInteractive&&e.popperInteractive,n.arrow&&e.popperArrow,!n.open&&e.popperClose]}})(({theme:t,ownerState:e,open:n})=>K({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!e.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},e.arrow&&{[`&[data-popper-placement*="bottom"] .${ta.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ta.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ta.arrow}`]:K({},e.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${ta.arrow}`]:K({},e.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Gee=wt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.tooltip,n.touch&&e.touch,n.arrow&&e.tooltipArrow,e[`tooltipPlacement${ft(n.placement.split("-")[0])}`]]}})(({theme:t,ownerState:e})=>K({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Mr(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},e.arrow&&{position:"relative",margin:0},e.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${Wee(16/14)}em`,fontWeight:t.typography.fontWeightRegular},{[`.${ta.popper}[data-popper-placement*="left"] &`]:K({transformOrigin:"right center"},e.isRtl?K({marginLeft:"14px"},e.touch&&{marginLeft:"24px"}):K({marginRight:"14px"},e.touch&&{marginRight:"24px"})),[`.${ta.popper}[data-popper-placement*="right"] &`]:K({transformOrigin:"left center"},e.isRtl?K({marginRight:"14px"},e.touch&&{marginRight:"24px"}):K({marginLeft:"14px"},e.touch&&{marginLeft:"24px"})),[`.${ta.popper}[data-popper-placement*="top"] &`]:K({transformOrigin:"center bottom",marginBottom:"14px"},e.touch&&{marginBottom:"24px"}),[`.${ta.popper}[data-popper-placement*="bottom"] &`]:K({transformOrigin:"center top",marginTop:"14px"},e.touch&&{marginTop:"24px"})})),Kee=wt("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Mr(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Zm=!1,kw=null,Xh={x:0,y:0};function Jm(t,e){return n=>{e&&e(n),t(n)}}const zL=D.forwardRef(function(e,n){var r,o,i,s,l,a,u,c,d,h,p,f,g,m,v,y,b,x,k;const w=kn({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:A,components:C={},componentsProps:O={},describeChild:R=!1,disableFocusListener:_=!1,disableHoverListener:T=!1,disableInteractive:E=!1,disableTouchListener:M=!1,enterDelay:I=100,enterNextDelay:N=0,enterTouchDelay:L=700,followCursor:$=!1,id:P,leaveDelay:F=0,leaveTouchDelay:H=1500,onClose:W,onOpen:B,open:U,placement:G="bottom",PopperComponent:Y,PopperProps:X={},slotProps:Z={},slots:ne={},title:de,TransitionComponent:Ie=bw,TransitionProps:ve}=w,Re=ze(w,Uee),Se=D.isValidElement(A)?A:V.jsx("span",{children:A}),yt=Um(),Dt=yt.direction==="rtl",[Et,pr]=D.useState(),[Pt,Dn]=D.useState(null),En=D.useRef(!1),Sn=E||$,Qe=D.useRef(),Pn=D.useRef(),q=D.useRef(),ue=D.useRef(),[me,ie]=ZK({controlled:U,default:!1,name:"Tooltip",state:"open"});let Ce=me;const et=qK(P),Ye=D.useRef(),at=D.useCallback(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),clearTimeout(ue.current)},[]);D.useEffect(()=>()=>{clearTimeout(Qe.current),clearTimeout(Pn.current),clearTimeout(q.current),at()},[at]);const lt=Le=>{clearTimeout(kw),Zm=!0,ie(!0),B&&!Ce&&B(Le)},Fe=nl(Le=>{clearTimeout(kw),kw=setTimeout(()=>{Zm=!1},800+F),ie(!1),W&&Ce&&W(Le),clearTimeout(Qe.current),Qe.current=setTimeout(()=>{En.current=!1},yt.transitions.duration.shortest)}),Xt=Le=>{En.current&&Le.type!=="touchstart"||(Et&&Et.removeAttribute("title"),clearTimeout(Pn.current),clearTimeout(q.current),I||Zm&&N?Pn.current=setTimeout(()=>{lt(Le)},Zm?N:I):lt(Le))},Go=Le=>{clearTimeout(Pn.current),clearTimeout(q.current),q.current=setTimeout(()=>{Fe(Le)},F)},{isFocusVisibleRef:Sl,onBlur:Qi,onFocus:Ov,ref:VE}=qO(),[,Iv]=D.useState(!1),vu=Le=>{Qi(Le),Sl.current===!1&&(Iv(!1),Go(Le))},la=Le=>{Et||pr(Le.currentTarget),Ov(Le),Sl.current===!0&&(Iv(!0),Xt(Le))},yu=Le=>{En.current=!0;const gr=Se.props;gr.onTouchStart&&gr.onTouchStart(Le)},bu=Xt,xu=Go,Cl=Le=>{yu(Le),clearTimeout(q.current),clearTimeout(Qe.current),at(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ye.current,Xt(Le)},L)},jE=Le=>{Se.props.onTouchEnd&&Se.props.onTouchEnd(Le),at(),clearTimeout(q.current),q.current=setTimeout(()=>{Fe(Le)},H)};D.useEffect(()=>{if(!Ce)return;function Le(gr){(gr.key==="Escape"||gr.key==="Esc")&&Fe(gr)}return document.addEventListener("keydown",Le),()=>{document.removeEventListener("keydown",Le)}},[Fe,Ce]);const GE=_r(Se.ref,VE,pr,n);!de&&de!==0&&(Ce=!1);const vp=D.useRef(),KE=Le=>{const gr=Se.props;gr.onMouseMove&&gr.onMouseMove(Le),Xh={x:Le.clientX,y:Le.clientY},vp.current&&vp.current.update()},Tl={},wu=typeof de=="string";R?(Tl.title=!Ce&&wu&&!T?de:null,Tl["aria-describedby"]=Ce?et:null):(Tl["aria-label"]=wu?de:null,Tl["aria-labelledby"]=Ce&&!wu?et:null);const fr=K({},Tl,Re,Se.props,{className:je(Re.className,Se.props.className),onTouchStart:yu,ref:GE},$?{onMouseMove:KE}:{}),ro={};M||(fr.onTouchStart=Cl,fr.onTouchEnd=jE),T||(fr.onMouseOver=Jm(bu,fr.onMouseOver),fr.onMouseLeave=Jm(xu,fr.onMouseLeave),Sn||(ro.onMouseOver=bu,ro.onMouseLeave=xu)),_||(fr.onFocus=Jm(la,fr.onFocus),fr.onBlur=Jm(vu,fr.onBlur),Sn||(ro.onFocus=la,ro.onBlur=vu));const YE=D.useMemo(()=>{var Le;let gr=[{name:"arrow",enabled:!!Pt,options:{element:Pt,padding:4}}];return(Le=X.popperOptions)!=null&&Le.modifiers&&(gr=gr.concat(X.popperOptions.modifiers)),K({},X.popperOptions,{modifiers:gr})},[Pt,X]),Al=K({},w,{isRtl:Dt,arrow:S,disableInteractive:Sn,placement:G,PopperComponentProp:Y,touch:En.current}),yp=Vee(Al),Lv=(r=(o=ne.popper)!=null?o:C.Popper)!=null?r:jee,Nv=(i=(s=(l=ne.transition)!=null?l:C.Transition)!=null?s:Ie)!=null?i:bw,Co=(a=(u=ne.tooltip)!=null?u:C.Tooltip)!=null?a:Gee,$v=(c=(d=ne.arrow)!=null?d:C.Arrow)!=null?c:Kee,XE=Ph(Lv,K({},X,(h=Z.popper)!=null?h:O.popper,{className:je(yp.popper,X==null?void 0:X.className,(p=(f=Z.popper)!=null?f:O.popper)==null?void 0:p.className)}),Al),qE=Ph(Nv,K({},ve,(g=Z.transition)!=null?g:O.transition),Al),ZE=Ph(Co,K({},(m=Z.tooltip)!=null?m:O.tooltip,{className:je(yp.tooltip,(v=(y=Z.tooltip)!=null?y:O.tooltip)==null?void 0:v.className)}),Al),JE=Ph($v,K({},(b=Z.arrow)!=null?b:O.arrow,{className:je(yp.arrow,(x=(k=Z.arrow)!=null?k:O.arrow)==null?void 0:x.className)}),Al);return V.jsxs(D.Fragment,{children:[D.cloneElement(Se,fr),V.jsx(Lv,K({as:Y??fw,placement:G,anchorEl:$?{getBoundingClientRect:()=>({top:Xh.y,left:Xh.x,right:Xh.x,bottom:Xh.y,width:0,height:0})}:Et,popperRef:vp,open:Et?Ce:!1,id:et,transition:!0},ro,XE,{popperOptions:YE,children:({TransitionProps:Le})=>V.jsx(Nv,K({timeout:yt.transitions.duration.shorter},Le,qE,{children:V.jsxs(Co,K({},ZE,{children:[de,S?V.jsx($v,K({},JE,{ref:Dn})):null]}))}))}))]})});function Yee(t){return bn("MuiToggleButton",t)}const FL=xn("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),Xee=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],qee=t=>{const{classes:e,fullWidth:n,selected:r,disabled:o,size:i,color:s}=t,l={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${ft(i)}`,s]};return Ln(l,Yee,e)},Zee=wt(nw,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`size${ft(n.size)}`]]}})(({theme:t,ownerState:e})=>{let n=e.color==="standard"?t.palette.text.primary:t.palette[e.color].main,r;return t.vars&&(n=e.color==="standard"?t.vars.palette.text.primary:t.vars.palette[e.color].main,r=e.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[e.color].mainChannel),K({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},e.fullWidth&&{width:"100%"},{[`&.${FL.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Mr(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${FL.selected}`]:{color:n,backgroundColor:t.vars?`rgba(${r} / ${t.vars.palette.action.selectedOpacity})`:Mr(n,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${r} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Mr(n,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${r} / ${t.vars.palette.action.selectedOpacity})`:Mr(n,t.palette.action.selectedOpacity)}}}},e.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},e.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),Jee=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiToggleButton"}),{children:o,className:i,color:s="standard",disabled:l=!1,disableFocusRipple:a=!1,fullWidth:u=!1,onChange:c,onClick:d,selected:h,size:p="medium",value:f}=r,g=ze(r,Xee),m=K({},r,{color:s,disabled:l,disableFocusRipple:a,fullWidth:u,size:p}),v=qee(m),y=b=>{d&&(d(b,f),b.defaultPrevented)||c&&c(b,f)};return V.jsx(Zee,K({className:je(v.root,i),disabled:l,focusRipple:!a,ref:n,onClick:y,onChange:c,value:f,ownerState:m,"aria-pressed":h},g,{children:o}))});var Qee=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 15v2c0 1.054.95 2 2 2h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM3 3h6a3 3 0 0 1 2.235 5A3 3 0 0 1 9 13H3V3zm6 6H5v2h4a1 1 0 0 0 0-2zm8-6a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM9 5H5v2h4a1 1 0 1 0 0-2z"}}],ete=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"}}],tte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"}}],nte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M12.866 3l9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0zm-8.66 16h15.588L12 5.5 4.206 19zM11 16h2v2h-2v-2zm0-7h2v5h-2V9z"}}],rte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 19h18v2H3v-2zm5-6h3l-4 4-4-4h3V3h2v10zm10 0h3l-4 4-4-4h3V3h2v10z"}}],ote=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm2 15h14v2H5v-2zm-2-5h18v2H3v-2zm2-5h14v2H5V9z"}}],ite=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm0 15h18v2H3v-2zm0-5h18v2H3v-2zm0-5h18v2H3V9z"}}],ste=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm0 15h14v2H3v-2zm0-5h18v2H3v-2zm0-5h14v2H3V9z"}}],ate=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm4 15h14v2H7v-2zm-4-5h18v2H3v-2zm4-5h14v2H7V9z"}}],lte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 3h18v2H3V3zm5 8v10H6V11H3l4-4 4 4H8zm10 0v10h-2V11h-3l4-4 4 4h-3z"}}],cte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 11h18v2H3v-2zm15 7v3h-2v-3h-3l4-4 4 4h-3zM8 18v3H6v-3H3l4-4 4 4H8zM18 6h3l-4 4-4-4h3V3h2v3zM8 6h3l-4 4-4-4h3V3h2v3z"}}],ute=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6.75 2.5A4.25 4.25 0 0 1 11 6.75V11H6.75a4.25 4.25 0 1 1 0-8.5zM9 9V6.75A2.25 2.25 0 1 0 6.75 9H9zm-2.25 4H11v4.25A4.25 4.25 0 1 1 6.75 13zm0 2A2.25 2.25 0 1 0 9 17.25V15H6.75zm10.5-12.5a4.25 4.25 0 1 1 0 8.5H13V6.75a4.25 4.25 0 0 1 4.25-4.25zm0 6.5A2.25 2.25 0 1 0 15 6.75V9h2.25zM13 13h4.25A4.25 4.25 0 1 1 13 17.25V13zm2 2v2.25A2.25 2.25 0 1 0 17.25 15H15z"}}],dte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 16l-6-6h12z"}}],hte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 7v4L2 6l6-5v4h5a8 8 0 1 1 0 16H4v-2h9a6 6 0 1 0 0-12H8z"}}],pte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 7h-5a6 6 0 1 0 0 12h9v2h-9a8 8 0 1 1 0-16h5V1l6 5-6 5V7z"}}],fte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 12l6-6v12z"}}],gte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 12l-6 6V6z"}}],mte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8l6 6H6z"}}],vte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 3v7.267l6.294-3.633 1 1.732-6.293 3.633 6.293 3.635-1 1.732L13 13.732V21h-2v-7.268l-6.294 3.634-1-1.732L9.999 12 3.706 8.366l1-1.732L11 10.267V3z"}}],yte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14.828 7.757l-5.656 5.657a1 1 0 1 0 1.414 1.414l5.657-5.656A3 3 0 1 0 12 4.929l-5.657 5.657a5 5 0 1 0 7.071 7.07L19.071 12l1.414 1.414-5.657 5.657a7 7 0 1 1-9.9-9.9l5.658-5.656a5 5 0 0 1 7.07 7.07L12 16.244A3 3 0 1 1 7.757 12l5.657-5.657 1.414 1.414z"}}],bte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 11h4.5a2.5 2.5 0 1 0 0-5H8v5zm10 4.5a4.5 4.5 0 0 1-4.5 4.5H6V4h6.5a4.5 4.5 0 0 1 3.256 7.606A4.498 4.498 0 0 1 18 15.5zM8 13v5h5.5a2.5 2.5 0 1 0 0-5H8z"}}],xte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 18v-3.7a1.5 1.5 0 0 0-1.5-1.5H2v-1.6h.5A1.5 1.5 0 0 0 4 9.7V6a3 3 0 0 1 3-3h1v2H7a1 1 0 0 0-1 1v4.1A2 2 0 0 1 4.626 12 2 2 0 0 1 6 13.9V18a1 1 0 0 0 1 1h1v2H7a3 3 0 0 1-3-3zm16-3.7V18a3 3 0 0 1-3 3h-1v-2h1a1 1 0 0 0 1-1v-4.1a2 2 0 0 1 1.374-1.9A2 2 0 0 1 18 10.1V6a1 1 0 0 0-1-1h-1V3h1a3 3 0 0 1 3 3v3.7a1.5 1.5 0 0 0 1.5 1.5h.5v1.6h-.5a1.5 1.5 0 0 0-1.5 1.5z"}}],wte=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M14 3c.552 0 1 .448 1 1v5h5c.552 0 1 .448 1 1v10c0 .552-.448 1-1 1H10c-.552 0-1-.448-1-1v-5H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h10zm-1 2H5v8h8V5z"}}],kte=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M11 3c.552 0 1 .448 1 1v2h5c.552 0 1 .448 1 1v5h2c.552 0 1 .448 1 1v7c0 .552-.448 1-1 1h-7c-.552 0-1-.448-1-1v-2H7c-.552 0-1-.448-1-1v-5H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h7zm5 5H8v8h8V8z"}}],Ete=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14 3v2H4v13.385L5.763 17H20v-7h2v8a1 1 0 0 1-1 1H6.455L2 22.5V4a1 1 0 0 1 1-1h11zm5 0V0h2v3h3v2h-3v3h-2V5h-3V3h3z"}}],Ste=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-.997-4L6.76 11.757l1.414-1.414 2.829 2.829 5.656-5.657 1.415 1.414L11.003 16z"}}],Cte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M7 7V3a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-4v3.993c0 .556-.449 1.007-1.007 1.007H3.007A1.006 1.006 0 0 1 2 20.993l.003-12.986C2.003 7.451 2.452 7 3.01 7H7zm2 0h6.993C16.549 7 17 7.449 17 8.007V15h3V4H9v3zm6 2H4.003L4 20h11V9zm-6.497 9l-3.536-3.536 1.414-1.414 2.122 2.122 4.242-4.243 1.414 1.414L8.503 18z"}}],Tte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 4v4h12V4h2.007c.548 0 .993.445.993.993v16.014a.994.994 0 0 1-.993.993H3.993A.994.994 0 0 1 3 21.007V4.993C3 4.445 3.445 4 3.993 4H6zm2-2h8v4H8V2z"}}],Ate=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 4V2h10v2h3.007c.548 0 .993.445.993.993v16.014a.994.994 0 0 1-.993.993H3.993A.994.994 0 0 1 3 21.007V4.993C3 4.445 3.445 4 3.993 4H7zm0 2H5v14h14V6h-2v2H7V6zm2-2v2h6V4H9z"}}],_te=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-9.414l2.828-2.829 1.415 1.415L13.414 12l2.829 2.828-1.415 1.415L12 13.414l-2.828 2.829-1.415-1.415L10.586 12 7.757 9.172l1.415-1.415L12 10.586z"}}],Rte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"}}],Mte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"}}],Ote=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M23 12l-7.071 7.071-1.414-1.414L20.172 12l-5.657-5.657 1.414-1.414L23 12zM3.828 12l5.657 5.657-1.414 1.414L1 12l7.071-7.071 1.414 1.414L3.828 12z"}}],Ite=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.95 8.464l1.414-1.414 4.95 4.95-4.95 4.95-1.414-1.414L20.485 12 16.95 8.464zm-9.9 0L3.515 12l3.535 3.536-1.414 1.414L.686 12l4.95-4.95L7.05 8.464z"}}],Lte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3zm-8 5v6h2v-6H9zm4 0v6h2v-6h-2zM9 4v2h6V4H9z"}}],Nte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3zm1 2H6v12h12V8zm-9 3h2v6H9v-6zm4 0h2v6h-2v-6zM9 4v2h6V4H9z"}}],$te=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M12 3c.552 0 1 .448 1 1v8c.835-.628 1.874-1 3-1 2.761 0 5 2.239 5 5s-2.239 5-5 5c-1.032 0-1.99-.313-2.787-.848L13 20c0 .552-.448 1-1 1H6c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h6zm-1 2H7v14h4V5zm8 10h-6v2h6v-2z"}}],Dte=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 5c.552 0 1 .448 1 1v6c0 .552-.448 1-1 1 .628.835 1 1.874 1 3 0 2.761-2.239 5-5 5s-5-2.239-5-5c0-1.126.372-2.165 1-3H4c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1h16zm-7 10v2h6v-2h-6zm6-8H5v4h14V7z"}}],Pte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4.583 17.321C3.553 16.227 3 15 3 13.011c0-3.5 2.457-6.637 6.03-8.188l.893 1.378c-3.335 1.804-3.987 4.145-4.247 5.621.537-.278 1.24-.375 1.929-.311 1.804.167 3.226 1.648 3.226 3.489a3.5 3.5 0 0 1-3.5 3.5c-1.073 0-2.099-.49-2.748-1.179zm10 0C13.553 16.227 13 15 13 13.011c0-3.5 2.457-6.637 6.03-8.188l.893 1.378c-3.335 1.804-3.987 4.145-4.247 5.621.537-.278 1.24-.375 1.929-.311 1.804.167 3.226 1.648 3.226 3.489a3.5 3.5 0 0 1-3.5 3.5c-1.073 0-2.099-.49-2.748-1.179z"}}],zte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19.417 6.679C20.447 7.773 21 9 21 10.989c0 3.5-2.457 6.637-6.03 8.188l-.893-1.378c3.335-1.804 3.987-4.145 4.247-5.621-.537.278-1.24.375-1.929.311-1.804-.167-3.226-1.648-3.226-3.489a3.5 3.5 0 0 1 3.5-3.5c1.073 0 2.099.49 2.748 1.179zm-10 0C10.447 7.773 11 9 11 10.989c0 3.5-2.457 6.637-6.03 8.188l-.893-1.378c3.335-1.804 3.987-4.145 4.247-5.621-.537.278-1.24.375-1.929.311C4.591 12.322 3.17 10.841 3.17 9a3.5 3.5 0 0 1 3.5-3.5c1.073 0 2.099.49 2.748 1.179z"}}],Fte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 19h16v-7h2v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-8h2v7zM14 9h5l-7 7-7-7h5V3h4v6z"}}],Bte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M16 13l6.964 4.062-2.973.85 2.125 3.681-1.732 1-2.125-3.68-2.223 2.15L16 13zm-2-7h2v2h5a1 1 0 0 1 1 1v4h-2v-3H10v10h4v2H9a1 1 0 0 1-1-1v-5H6v-2h2V9a1 1 0 0 1 1-1h5V6zM4 14v2H2v-2h2zm0-4v2H2v-2h2zm0-4v2H2V6h2zm0-4v2H2V2h2zm4 0v2H6V2h2zm4 0v2h-2V2h2zm4 0v2h-2V2h2z"}}],Hte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 19a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm-5.5 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm11 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zM13 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.621 6.302 14.685 14.685 0 0 0 5.327 3.042l-.536 1.93A16.685 16.685 0 0 1 12 13.726a16.696 16.696 0 0 1-6.202 3.547l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042 18.077 18.077 0 0 1-2.822-4.3h2.24A16.031 16.031 0 0 0 12 10.876a16.168 16.168 0 0 0 2.91-4.876L5 6V4h6V2h2z"}}],Ute=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 19a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm-5.5 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm11 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zM18 3v2H8v4h9v2H8v4h10v2H6V3h12z"}}],Wte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14 10h2v.757a4.5 4.5 0 0 1 7 3.743V20h-2v-5.5c0-1.43-1.175-2.5-2.5-2.5S16 13.07 16 14.5V20h-2V10zm-2-6v2H4v5h8v2H4v5h8v2H2V4h10z"}}],Vte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-1-5h2v2h-2v-2zm0-8h2v6h-2V7z"}}],jte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm11-3v9l-3.794-3.793-5.999 6-1.414-1.414 5.999-6L12 3h9z"}}],Gte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1.001 1.001 0 0 1 3 21l.003-14c0-.552.45-1 1.007-1H7zM5.003 8L5 20h10V8H5.003zM9 6h8v10h2V4H9v2z"}}],Kte=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M6 21.5c-1.933 0-3.5-1.567-3.5-3.5s1.567-3.5 3.5-3.5c1.585 0 2.924 1.054 3.355 2.5H15v-2h2V9.242L14.757 7H9V9H3V3h6v2h5.757L18 1.756 22.243 6 19 9.241V15L21 15v6h-6v-2H9.355c-.43 1.446-1.77 2.5-3.355 2.5zm0-5c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm13 .5h-2v2h2v-2zM18 4.586L16.586 6 18 7.414 19.414 6 18 4.586zM7 5H5v2h2V5z"}}],Yte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.246 14H8.754l-1.6 4H5l6-15h2l6 15h-2.154l-1.6-4zm-.8-2L12 5.885 9.554 12h4.892zM3 20h18v2H3v-2z"}}],Xte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 6v15H8V6H2V4h14v2h-6zm8 8v7h-2v-7h-3v-2h8v2h-3z"}}],qte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11.246 15H4.754l-2 5H.6L7 4h2l6.4 16h-2.154l-2-5zm-.8-2L8 6.885 5.554 13h4.892zM21 12.535V12h2v8h-2v-.535a4 4 0 1 1 0-6.93zM19 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"}}],Zte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12.651 14.065L11.605 20H9.574l1.35-7.661-7.41-7.41L4.93 3.515 20.485 19.07l-1.414 1.414-6.42-6.42zm-.878-6.535l.27-1.53h-1.8l-2-2H20v2h-5.927L13.5 9.257 11.773 7.53z"}}],Jte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z"}}],Qte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 3h2v6h-2V5h-4V3h4zM4 3h4v2H4v4H2V3h2zm16 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z"}}],ene=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 18l7.68-6L5 6V4h14v2H8.263L16 12l-7.737 6H19v2H5v-2z"}}],tne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 1v4H4v14h16V3h1.008c.548 0 .992.445.992.993v16.014a1 1 0 0 1-.992.993H2.992A.993.993 0 0 1 2 20.007V3.993A1 1 0 0 1 2.992 3H6V1h2zm4 7l4 4h-3v4h-2v-4H8l4-4zm6-7v4h-8V3h6V1h2z"}}],nne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M13 20h-2v-7H4v7H2V4h2v7h7V4h2v16zm8-12v12h-2v-9.796l-2 .536V8.67L19.5 8H21z"}}],rne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M4 4v7h7V4h2v16h-2v-7H4v7H2V4h2zm14.5 4c2.071 0 3.75 1.679 3.75 3.75 0 .857-.288 1.648-.772 2.28l-.148.18L18.034 18H22v2h-7v-1.556l4.82-5.546c.268-.307.43-.709.43-1.148 0-.966-.784-1.75-1.75-1.75-.918 0-1.671.707-1.744 1.606l-.006.144h-2C14.75 9.679 16.429 8 18.5 8z"}}],one=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M22 8l-.002 2-2.505 2.883c1.59.435 2.757 1.89 2.757 3.617 0 2.071-1.679 3.75-3.75 3.75-1.826 0-3.347-1.305-3.682-3.033l1.964-.382c.156.806.866 1.415 1.718 1.415.966 0 1.75-.784 1.75-1.75s-.784-1.75-1.75-1.75c-.286 0-.556.069-.794.19l-1.307-1.547L19.35 10H15V8h7zM4 4v7h7V4h2v16h-2v-7H4v7H2V4h2z"}}],ine=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M13 20h-2v-7H4v7H2V4h2v7h7V4h2v16zm9-12v8h1.5v2H22v2h-2v-2h-5.5v-1.34l5-8.66H22zm-2 3.133L17.19 16H20v-4.867z"}}],sne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M22 8v2h-4.323l-.464 2.636c.33-.089.678-.136 1.037-.136 2.21 0 4 1.79 4 4s-1.79 4-4 4c-1.827 0-3.367-1.224-3.846-2.897l1.923-.551c.24.836 1.01 1.448 1.923 1.448 1.105 0 2-.895 2-2s-.895-2-2-2c-.63 0-1.193.292-1.56.748l-1.81-.904L16 8h6zM4 4v7h7V4h2v16h-2v-7H4v7H2V4h2z"}}],ane=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M21.097 8l-2.598 4.5c2.21 0 4.001 1.79 4.001 4s-1.79 4-4 4-4-1.79-4-4c0-.736.199-1.426.546-2.019L18.788 8h2.309zM4 4v7h7V4h2v16h-2v-7H4v7H2V4h2zm14.5 10.5c-1.105 0-2 .895-2 2s.895 2 2 2 2-.895 2-2-.895-2-2-2z"}}],lne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.784 14l.42-4H4V8h4.415l.525-5h2.011l-.525 5h3.989l.525-5h2.011l-.525 5H20v2h-3.784l-.42 4H20v2h-4.415l-.525 5h-2.011l.525-5H9.585l-.525 5H7.049l.525-5H4v-2h3.784zm2.011 0h3.99l.42-4h-3.99l-.42 4z"}}],cne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 11V4h2v17h-2v-8H7v8H5V4h2v7z"}}],une=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 15v3h3v2h-3v3h-2v-3h-3v-2h3v-3h2zm.008-12c.548 0 .992.445.992.993V13h-2V5H4v13.999L14 9l3 3v2.829l-3-3L6.827 19H14v2H2.992A.993.993 0 0 1 2 20.007V3.993A1 1 0 0 1 2.992 3h18.016zM8 7a2 2 0 1 1 0 4 2 2 0 0 1 0-4z"}}],dne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 3c.552 0 1 .448 1 1v1.757l-2 2V5H5v8.1l4-4 4.328 4.329-1.415 1.413L9 11.93l-4 3.999V19h10.533l.708.001 1.329-1.33L18.9 19h.1v-2.758l2-2V20c0 .552-.448 1-1 1H4c-.55 0-1-.45-1-1V4c0-.552.448-1 1-1h16zm1.778 4.808l1.414 1.414L15.414 17l-1.416-.002.002-1.412 7.778-7.778zM15.5 7c.828 0 1.5.672 1.5 1.5s-.672 1.5-1.5 1.5S14 9.328 14 8.5 14.672 7 15.5 7z"}}],hne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4.828 21l-.02.02-.021-.02H2.992A.993.993 0 0 1 2 20.007V3.993A1 1 0 0 1 2.992 3h18.016c.548 0 .992.445.992.993v16.014a1 1 0 0 1-.992.993H4.828zM20 15V5H4v14L14 9l6 6zm0 2.828l-6-6L6.828 19H20v-1.172zM8 11a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"}}],pne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm0 15h18v2H3v-2zm8-5h10v2H11v-2zm0-5h10v2H11V9zm-8 3.5L7 9v7l-4-3.5z"}}],fne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm0 15h18v2H3v-2zm8-5h10v2H11v-2zm0-5h10v2H11V9zm-4 3.5L3 16V9l4 3.5z"}}],gne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM11 7h2v2h-2V7zm0 4h2v6h-2v-6z"}}],mne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 21v-2h3V5H8V3h8v2h-3v14h3v2H8zM18.05 7.05L23 12l-4.95 4.95-1.414-1.414L20.172 12l-3.536-3.536L18.05 7.05zm-12.1 0l1.414 1.414L3.828 12l3.536 3.536L5.95 16.95 1 12l4.95-4.95z"}}],vne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 3c.552 0 1 .448 1 1v16c0 .552-.448 1-1 1h-6c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h6zm-1 2h-4v14h4V5zM6 7c2.761 0 5 2.239 5 5s-2.239 5-5 5-5-2.239-5-5 2.239-5 5-5zm1 2H5v1.999L3 11v2l2-.001V15h2v-2.001L9 13v-2l-2-.001V9z"}}],yne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M10 3c.552 0 1 .448 1 1v16c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h6zM9 5H5v14h4V5zm9 2c2.761 0 5 2.239 5 5s-2.239 5-5 5-5-2.239-5-5 2.239-5 5-5zm1 2h-2v1.999L15 11v2l2-.001V15h2v-2.001L21 13v-2l-2-.001V9z"}}],bne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M12 13c2.761 0 5 2.239 5 5s-2.239 5-5 5-5-2.239-5-5 2.239-5 5-5zm1 2h-2v1.999L9 17v2l2-.001V21h2v-2.001L15 19v-2l-2-.001V15zm7-12c.552 0 1 .448 1 1v6c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16zM5 5v4h14V5H5z"}}],xne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 13c.552 0 1 .448 1 1v6c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1v-6c0-.552.448-1 1-1h16zm-1 2H5v4h14v-4zM12 1c2.761 0 5 2.239 5 5s-2.239 5-5 5-5-2.239-5-5 2.239-5 5-5zm1 2h-2v1.999L9 5v2l2-.001V9h2V6.999L15 7V5l-2-.001V3z"}}],wne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15 20H7v-2h2.927l2.116-12H9V4h8v2h-2.927l-2.116 12H15z"}}],kne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M11 5H5v14h6V5zm2 0v14h6V5h-6zM4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"}}],Ene=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 4h10v2H11V4zM6 7v4H4V7H1l4-4 4 4H6zm0 10h3l-4 4-4-4h3v-4h2v4zm5 1h10v2H11v-2zm-2-7h12v2H9v-2z"}}],Sne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.657 14.828l-1.414-1.414L17.657 12A4 4 0 1 0 12 6.343l-1.414 1.414-1.414-1.414 1.414-1.414a6 6 0 0 1 8.485 8.485l-1.414 1.414zm-2.829 2.829l-1.414 1.414a6 6 0 1 1-8.485-8.485l1.414-1.414 1.414 1.414L6.343 12A4 4 0 1 0 12 17.657l1.414-1.414 1.414 1.414zm0-9.9l1.415 1.415-7.071 7.07-1.415-1.414 7.071-7.07z"}}],Cne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.657 14.828l-1.414-1.414L17.657 12A4 4 0 1 0 12 6.343l-1.414 1.414-1.414-1.414 1.414-1.414a6 6 0 0 1 8.485 8.485l-1.414 1.414zm-2.829 2.829l-1.414 1.414a6 6 0 1 1-8.485-8.485l1.414-1.414 1.414 1.414L6.343 12A4 4 0 1 0 12 17.657l1.414-1.414 1.414 1.414zm0-9.9l1.415 1.415-7.071 7.07-1.415-1.414 7.071-7.07zM5.775 2.293l1.932-.518L8.742 5.64l-1.931.518-1.036-3.864zm9.483 16.068l1.931-.518 1.036 3.864-1.932.518-1.035-3.864zM2.293 5.775l3.864 1.036-.518 1.931-3.864-1.035.518-1.932zm16.068 9.483l3.864 1.035-.518 1.932-3.864-1.036.518-1.931z"}}],Tne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 17h5v2h-3v3h-2v-5zM7 7H2V5h3V2h2v5zm11.364 8.536L16.95 14.12l1.414-1.414a5 5 0 1 0-7.071-7.071L9.879 7.05 8.464 5.636 9.88 4.222a7 7 0 0 1 9.9 9.9l-1.415 1.414zm-2.828 2.828l-1.415 1.414a7 7 0 0 1-9.9-9.9l1.415-1.414L7.05 9.88l-1.414 1.414a5 5 0 1 0 7.071 7.071l1.414-1.414 1.415 1.414zm-.708-10.607l1.415 1.415-7.071 7.07-1.415-1.414 7.071-7.07z"}}],Ane=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18.364 15.536L16.95 14.12l1.414-1.414a5 5 0 1 0-7.071-7.071L9.879 7.05 8.464 5.636 9.88 4.222a7 7 0 0 1 9.9 9.9l-1.415 1.414zm-2.828 2.828l-1.415 1.414a7 7 0 0 1-9.9-9.9l1.415-1.414L7.05 9.88l-1.414 1.414a5 5 0 1 0 7.071 7.071l1.414-1.414 1.415 1.414zm-.708-10.607l1.415 1.415-7.071 7.07-1.415-1.414 7.071-7.07z"}}],_ne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 4h10v2H11V4zm0 4h6v2h-6V8zm0 6h10v2H11v-2zm0 4h6v2h-6v-2zM3 4h6v6H3V4zm2 2v2h2V6H5zm-2 8h6v6H3v-6zm2 2v2h2v-2H5z"}}],Rne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 4h13v2H8V4zm-5-.5h3v3H3v-3zm0 7h3v3H3v-3zm0 7h3v3H3v-3zM8 11h13v2H8v-2zm0 7h13v2H8v-2z"}}],Mne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 4h13v2H8V4zM5 3v3h1v1H3V6h1V4H3V3h2zM3 14v-2.5h2V11H3v-1h3v2.5H4v.5h2v1H3zm2 5.5H3v-1h2V18H3v-1h3v4H3v-1h2v-.5zM8 11h13v2H8v-2zm0 7h13v2H8v-2z"}}],One=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 4h13v2H8V4zM4.5 6.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 6.9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM8 11h13v2H8v-2zm0 7h13v2H8v-2z"}}],Ine=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.243 4.515l-6.738 6.737-.707 2.121-1.04 1.041 2.828 2.829 1.04-1.041 2.122-.707 6.737-6.738-4.242-4.242zm6.364 3.535a1 1 0 0 1 0 1.414l-7.779 7.779-2.12.707-1.415 1.414a1 1 0 0 1-1.414 0l-4.243-4.243a1 1 0 0 1 0-1.414l1.414-1.414.707-2.121 7.779-7.779a1 1 0 0 1 1.414 0l5.657 5.657zm-6.364-.707l1.414 1.414-4.95 4.95-1.414-1.414 4.95-4.95zM4.283 16.89l2.828 2.829-1.414 1.414-4.243-1.414 2.828-2.829z"}}],Lne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm4 12.5v-4l2 2 2-2v4h2v-7h-2l-2 2-2-2H5v7h2zm11-3v-4h-2v4h-2l3 3 3-3h-2z"}}],Nne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm1 2v14h16V5H4zm3 10.5H5v-7h2l2 2 2-2h2v7h-2v-4l-2 2-2-2v4zm11-3h2l-3 3-3-3h2v-4h2v4z"}}],$ne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 3c.552 0 1 .448 1 1v16c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16zm-9 2H5v5.999h2V9l3 3-3 3v-2H5v6h6v-2h2v2h6v-6h-2v2l-3-3 3-3v1.999h2V5h-6v2h-2V5zm2 8v2h-2v-2h2zm0-4v2h-2V9h2z"}}],Dne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M21 20c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16c.552 0 1 .448 1 1v16zm-2-9V5h-5.999v2H15l-3 3-3-3h2V5H5v6h2v2H5v6h6v-2H9l3-3 3 3h-1.999v2H19v-6h-2v-2h2zm-8 2H9v-2h2v2zm4 0h-2v-2h2v2z"}}],Pne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M18 3c1.657 0 3 1.343 3 3s-1.343 3-3 3h-3c-1.306 0-2.417-.834-2.829-2H11c-1.1 0-2 .9-2 2v.171c1.166.412 2 1.523 2 2.829 0 1.306-.834 2.417-2 2.829V15c0 1.1.9 2 2 2h1.17c.412-1.165 1.524-2 2.83-2h3c1.657 0 3 1.343 3 3s-1.343 3-3 3h-3c-1.306 0-2.417-.834-2.829-2H11c-2.21 0-4-1.79-4-4H5c-1.657 0-3-1.343-3-3s1.343-3 3-3h2c0-2.21 1.79-4 4-4h1.17c.412-1.165 1.524-2 2.83-2h3zm0 14h-3c-.552 0-1 .448-1 1s.448 1 1 1h3c.552 0 1-.448 1-1s-.448-1-1-1zM8 11H5c-.552 0-1 .448-1 1s.448 1 1 1h3c.552 0 1-.448 1-1s-.448-1-1-1zm10-6h-3c-.552 0-1 .448-1 1s.448 1 1 1h3c.552 0 1-.448 1-1s-.448-1-1-1z"}}],zne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm14 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}],Fne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M10 2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H8v2h5V9c0-.552.448-1 1-1h6c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-6c-.552 0-1-.448-1-1v-1H8v6h5v-1c0-.552.448-1 1-1h6c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-6c-.552 0-1-.448-1-1v-1H7c-.552 0-1-.448-1-1V8H4c-.552 0-1-.448-1-1V3c0-.552.448-1 1-1h6zm9 16h-4v2h4v-2zm0-8h-4v2h4v-2zM9 4H5v2h4V4z"}}],Bne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 1.5c1.321 0 2.484.348 3.447.994.963.645 1.726 1.588 2.249 2.778.522 1.19.804 2.625.804 4.257v4.942c0 1.632-.282 3.068-.804 4.257-.523 1.19-1.286 2.133-2.25 2.778-.962.646-2.125.994-3.446.994-1.321 0-2.484-.348-3.447-.994-.963-.645-1.726-1.588-2.249-2.778-.522-1.19-.804-2.625-.804-4.257V9.529c0-1.632.282-3.068.804-4.257.523-1.19 1.286-2.133 2.25-2.778C9.515 1.848 10.678 1.5 12 1.5zm0 2c-.916 0-1.694.226-2.333.655-.637.427-1.158 1.07-1.532 1.92-.412.94-.635 2.108-.635 3.454v4.942c0 1.346.223 2.514.635 3.453.374.851.895 1.494 1.532 1.921.639.429 1.417.655 2.333.655.916 0 1.694-.226 2.333-.655.637-.427 1.158-1.07 1.532-1.92.412-.94.635-2.108.635-3.454V9.529c0-1.346-.223-2.514-.635-3.453-.374-.851-.895-1.494-1.532-1.921C13.694 3.726 12.916 3.5 12 3.5z"}}],Hne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14 1.5V22h-2V3.704L7.5 4.91V2.839l5-1.339z"}}],Une=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 7.5a4 4 0 1 0-8 0H6a6 6 0 1 1 10.663 3.776l-7.32 8.723L18 20v2H6v-1.127l9.064-10.802A3.982 3.982 0 0 0 16 7.5z"}}],Wne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 2v1.362L12.809 9.55a6.501 6.501 0 1 1-7.116 8.028l1.94-.486A4.502 4.502 0 0 0 16.5 16a4.5 4.5 0 0 0-6.505-4.03l-.228.122-.69-1.207L14.855 4 6.5 4V2H18z"}}],Vne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 1.5V16h3v2h-3v4h-2v-4H4v-1.102L14 1.5h2zM14 16V5.171L6.968 16H14z"}}],jne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 2v2H9.3l-.677 6.445a6.5 6.5 0 1 1-2.93 7.133l1.94-.486A4.502 4.502 0 0 0 16.5 16a4.5 4.5 0 0 0-4.5-4.5c-2.022 0-3.278.639-3.96 1.53l-1.575-1.182L7.5 2H18z"}}],Gne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14.886 2l-4.438 7.686A6.5 6.5 0 1 1 6.4 12.7L12.576 2h2.31zM12 11.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9z"}}],Kne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 2v1.5L10.763 22H8.574l8.013-18H6V2z"}}],Yne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 1.5a5.5 5.5 0 0 1 3.352 9.86C17.24 12.41 18.5 14.32 18.5 16.5c0 3.314-2.91 6-6.5 6s-6.5-2.686-6.5-6c0-2.181 1.261-4.09 3.147-5.141A5.5 5.5 0 0 1 12 1.5zm0 11c-2.52 0-4.5 1.828-4.5 4 0 2.172 1.98 4 4.5 4s4.5-1.828 4.5-4c0-2.172-1.98-4-4.5-4zm0-9a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7z"}}],Xne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 1.5a6.5 6.5 0 0 1 5.619 9.77l-6.196 10.729H9.114l4.439-7.686A6.5 6.5 0 1 1 12 1.5zm0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9z"}}],qne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M14 20v-2.157c1.863-1.192 3.5-3.875 3.5-6.959 0-3.073-2-6.029-5.5-6.029s-5.5 2.956-5.5 6.03c0 3.083 1.637 5.766 3.5 6.958V20H3v-2h4.76C5.666 16.505 4 13.989 4 10.884 4 6.247 7.5 3 12 3s8 3.247 8 7.884c0 3.105-1.666 5.621-3.76 7.116H21v2h-7z"}}],Zne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M15 3c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-2v2h4c.552 0 1 .448 1 1v3h2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-6c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1h2v-2H8v2h2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1h2v-3c0-.552.448-1 1-1h4V9H9c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h6zM9 17H5v2h4v-2zm10 0h-4v2h4v-2zM14 5h-4v2h4V5z"}}],Jne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 21v-4H7v4H5v-5a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v5h-2zM7 3v4h10V3h2v5a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V3h2zM2 9l4 3-4 3V9zm20 0v6l-4-3 4-3z"}}],Qne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 6v15h-2v-5a6 6 0 1 1 0-12h10v2h-3v15h-2V6h-3zm-2 0a4 4 0 1 0 0 8V6z"}}],ere=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12.9 6.858l4.242 4.243L7.242 21H3v-4.243l9.9-9.9zm1.414-1.414l2.121-2.122a1 1 0 0 1 1.414 0l2.829 2.829a1 1 0 0 1 0 1.414l-2.122 2.121-4.242-4.242z"}}],tre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.728 9.686l-1.414-1.414L5 17.586V19h1.414l9.314-9.314zm1.414-1.414l1.414-1.414-1.414-1.414-1.414 1.414 1.414 1.414zM7.242 21H3v-4.243L16.435 3.322a1 1 0 0 1 1.414 0l2.829 2.829a1 1 0 0 1 0 1.414L7.243 21z"}}],nre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.934 3.036l1.732 1L18.531 6H21v2h-2v4h2v2h-2v7h-2v-7h-3.084c-.325 2.862-1.564 5.394-3.37 7.193l-1.562-1.27c1.52-1.438 2.596-3.522 2.917-5.922L10 14v-2l2-.001V8h-2V6h2.467l-1.133-1.964 1.732-1L14.777 6h1.444l1.713-2.964zM5 13.803l-2 .536v-2.071l2-.536V8H3V6h2V3h2v3h2v2H7v3.197l2-.536v2.07l-2 .536V18.5A2.5 2.5 0 0 1 4.5 21H3v-2h1.5a.5.5 0 0 0 .492-.41L5 18.5v-4.697zM17 8h-3v4h3V8z"}}],rre=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M12 19c.828 0 1.5.672 1.5 1.5S12.828 22 12 22s-1.5-.672-1.5-1.5.672-1.5 1.5-1.5zm0-17c3.314 0 6 2.686 6 6 0 2.165-.753 3.29-2.674 4.923C13.399 14.56 13 15.297 13 17h-2c0-2.474.787-3.695 3.031-5.601C15.548 10.11 16 9.434 16 8c0-2.21-1.79-4-4-4S8 5.79 8 8v1H6V8c0-3.314 2.686-6 6-6z"}}],ore=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M21 19v2h-2v-2h2zm-4 0v2h-2v-2h2zm-4 0v2h-2v-2h2zm-4 0v2H7v-2h2zm-4 0v2H3v-2h2zm16-4v2h-2v-2h2zM5 15v2H3v-2h2zm0-4v2H3v-2h2zm11-8c2.687 0 4.882 2.124 4.995 4.783L21 8v5h-2V8c0-1.591-1.255-2.903-2.824-2.995L16 5h-5V3h5zM5 7v2H3V7h2zm0-4v2H3V3h2zm4 0v2H7V3h2z"}}],ire=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9.683 7.562L12 9.88l6.374-6.375a2 2 0 0 1 2.829 0l.707.707L9.683 16.438a4 4 0 1 1-2.121-2.121L9.88 12 7.562 9.683a4 4 0 1 1 2.121-2.121zM6 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 12a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm9.535-6.587l6.375 6.376-.707.707a2 2 0 0 1-2.829 0l-4.96-4.961 2.12-2.122z"}}],sre=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M14 3c.552 0 1 .448 1 1v5h5c.552 0 1 .448 1 1v10c0 .552-.448 1-1 1H10c-.552 0-1-.448-1-1v-5H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h10zm-1 2H5v8h4v-3c0-.552.448-1 1-1h3V5z"}}],are=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M11 3c.552 0 1 .448 1 1v2h5c.552 0 1 .448 1 1v5h2c.552 0 1 .448 1 1v7c0 .552-.448 1-1 1h-7c-.552 0-1-.448-1-1v-2H7c-.552 0-1-.448-1-1v-5H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h7zm5 5h-4v3c0 .552-.448 1-1 1H8v4h4v-3c0-.552.448-1 1-1h3V8z"}}],lre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M2 11h2v2H2v-2zm4 0h12v2H6v-2zm14 0h2v2h-2v-2z"}}],cre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9.583 17.321C8.553 16.227 8 15 8 13.011c0-3.5 2.457-6.637 6.03-8.188l.893 1.378c-3.335 1.804-3.987 4.145-4.247 5.621.537-.278 1.24-.375 1.929-.311 1.804.167 3.226 1.648 3.226 3.489a3.5 3.5 0 0 1-3.5 3.5c-1.073 0-2.099-.49-2.748-1.179z"}}],ure=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14.417 6.679C15.447 7.773 16 9 16 10.989c0 3.5-2.457 6.637-6.03 8.188l-.893-1.378c3.335-1.804 3.987-4.145 4.247-5.621-.537.278-1.24.375-1.929.311C9.591 12.322 8.17 10.841 8.17 9a3.5 3.5 0 0 1 3.5-3.5c1.073 0 2.099.49 2.748 1.179z"}}],dre=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M19 3l4 5h-3v12h-2V8h-3l4-5zm-5 15v2H3v-2h11zm0-7v2H3v-2h11zm-2-7v2H3V4h9z"}}],hre=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 4v12h3l-4 5-4-5h3V4h2zm-8 14v2H3v-2h9zm2-7v2H3v-2h11zm0-7v2H3V4h11z"}}],pre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 9v4h16V9h2v5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V9h2z"}}],fre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M17.5 2.5L23 12l-5.5 9.5h-11L1 12l5.5-9.5h11zm-1.153 2H7.653L3.311 12l4.342 7.5h8.694l4.342-7.5-4.342-7.5zM11 15h2v2h-2v-2zm0-8h2v6h-2V7z"}}],gre=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 3c.552 0 1 .448 1 1v16c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16zm-9 2H5v14h6v-4h2v4h6V5h-6v4h-2V5zm4 4l3 3-3 3v-2H9v2l-3-3 3-3v2h6V9z"}}],mre=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 3c.552 0 1 .448 1 1v16c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16zm-1 2H5v5.999L9 11v2H5v6h14v-6h-4v-2l4-.001V5zm-7 1l3 3h-2v6h2l-3 3-3-3h2V9H9l3-3z"}}],vre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 9h-2V6H5V4h14v2h-6v3zm0 6v5h-2v-5h2zM3 11h18v2H3v-2z"}}],yre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.154 14c.23.516.346 1.09.346 1.72 0 1.342-.524 2.392-1.571 3.147C14.88 19.622 13.433 20 11.586 20c-1.64 0-3.263-.381-4.87-1.144V16.6c1.52.877 3.075 1.316 4.666 1.316 2.551 0 3.83-.732 3.839-2.197a2.21 2.21 0 0 0-.648-1.603l-.12-.117H3v-2h18v2h-3.846zm-4.078-3H7.629a4.086 4.086 0 0 1-.481-.522C6.716 9.92 6.5 9.246 6.5 8.452c0-1.236.466-2.287 1.397-3.153C8.83 4.433 10.271 4 12.222 4c1.471 0 2.879.328 4.222.984v2.152c-1.2-.687-2.515-1.03-3.946-1.03-2.48 0-3.719.782-3.719 2.346 0 .42.218.786.654 1.099.436.313.974.562 1.613.75.62.18 1.297.414 2.03.699z"}}],bre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 6v13H9V6H3V4h14v2h-6zm8.55 10.58a.8.8 0 1 0-1.32-.36l-1.154.33A2.001 2.001 0 0 1 19 14a2 2 0 0 1 1.373 3.454L18.744 19H21v1h-4v-1l2.55-2.42z"}}],xre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5.596 4L10.5 9.928 15.404 4H18l-6.202 7.497L18 18.994V19h-2.59l-4.91-5.934L5.59 19H3v-.006l6.202-7.497L3 4h2.596zM21.55 16.58a.8.8 0 1 0-1.32-.36l-1.155.33A2.001 2.001 0 0 1 21 14a2 2 0 0 1 1.373 3.454L20.744 19H23v1h-4v-1l2.55-2.42z"}}],wre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 11h14v2H5z"}}],kre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 7v13H9V7H3V5h12v2h-4zm8.55-.42a.8.8 0 1 0-1.32-.36l-1.154.33A2.001 2.001 0 0 1 19 4a2 2 0 0 1 1.373 3.454L18.744 9H21v1h-4V9l2.55-2.42z"}}],Ere=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5.596 5l4.904 5.928L15.404 5H18l-6.202 7.497L18 19.994V20h-2.59l-4.91-5.934L5.59 20H3v-.006l6.202-7.497L3 5h2.596zM21.55 6.58a.8.8 0 1 0-1.32-.36l-1.155.33A2.001 2.001 0 0 1 21 4a2 2 0 0 1 1.373 3.454L20.744 9H23v1h-4V9l2.55-2.42z"}}],Sre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M13 10v4h6v-4h-6zm-2 0H5v4h6v-4zm2 9h6v-3h-6v3zm-2 0v-3H5v3h6zm2-14v3h6V5h-6zm-2 0H5v3h6V5zM4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"}}],Cre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 8h16V5H4v3zm10 11v-9h-4v9h4zm2 0h4v-9h-4v9zm-8 0v-9H4v9h4zM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"}}],Tre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2zM9 5a2 2 0 1 0 0 4V5zm8 12v-2.5l4 3.5-4 3.5V19H5v-2h12z"}}],Are=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2zM9 5a2 2 0 1 0 0 4V5zM7 17h12v2H7v2.5L3 18l4-3.5V17z"}}],_re=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 17h10v-2.5l3.5 3.5-3.5 3.5V19H7v2.5L3.5 18 7 14.5V17zm6-11v9h-2V6H5V4h14v2h-6z"}}],Rre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15 18h1.5a2.5 2.5 0 1 0 0-5H3v-2h13.5a4.5 4.5 0 1 1 0 9H15v2l-4-3 4-3v2zM3 4h18v2H3V4zm6 14v2H3v-2h6z"}}],Mre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 6v15h-2V6H5V4h14v2z"}}],Ore=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301 14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"}}],Ire=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z"}}],Lre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 3v9a4 4 0 1 0 8 0V3h2v9a6 6 0 1 1-12 0V3h2zM4 20h16v2H4v-2z"}}],Nre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 19h16v-7h2v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-8h2v7zM14 9v6h-4V9H5l7-7 7 7h-5z"}}],$re=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 3.993C3 3.445 3.445 3 3.993 3h16.014c.548 0 .993.445.993.993v16.014a.994.994 0 0 1-.993.993H3.993A.994.994 0 0 1 3 20.007V3.993zM5 5v14h14V5H5zm5.622 3.415l4.879 3.252a.4.4 0 0 1 0 .666l-4.88 3.252a.4.4 0 0 1-.621-.332V8.747a.4.4 0 0 1 .622-.332z"}}],Dre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 21v-2h3.662l1.234-7H5v-2h3.249l.881-5H4V3h16v2h-8.839l-.882 5H18v9h3v2H3zm13-9H9.927l-1.235 7H16v-7z"}}];const Pre=Object.freeze(Object.defineProperty({__proto__:null,ab:Qee,addFill:ete,addLine:tte,alertLine:nte,alignBottom:rte,alignCenter:ote,alignJustify:ite,alignLeft:ste,alignRight:ate,alignTop:lte,alignVertically:cte,appsLine:ute,arrowDownSFill:dte,arrowGoBackFill:hte,arrowGoForwardFill:pte,arrowLeftSFill:fte,arrowRightSFill:gte,arrowUpSFill:mte,asterisk:vte,attachment2:yte,bold:bte,bracesLine:xte,bringForward:wte,bringToFront:kte,chatNewLine:Ete,checkboxCircleLine:Ste,checkboxMultipleLine:Cte,clipboardFill:Tte,clipboardLine:Ate,closeCircleLine:_te,closeFill:Rte,closeLine:Mte,codeLine:Ote,codeView:Ite,deleteBinFill:Lte,deleteBinLine:Nte,deleteColumn:$te,deleteRow:Dte,doubleQuotesL:Pte,doubleQuotesR:zte,download2Fill:Fte,dragDropLine:Bte,emphasis:Ute,emphasisCn:Hte,englishInput:Wte,errorWarningLine:Vte,externalLinkFill:jte,fileCopyLine:Gte,flowChart:Kte,fontColor:Yte,fontSize:qte,fontSize2:Xte,formatClear:Zte,fullscreenExitLine:Jte,fullscreenLine:Qte,functions:ene,galleryUploadLine:tne,h1:nne,h2:rne,h3:one,h4:ine,h5:sne,h6:ane,hashtag:lne,heading:cne,imageAddLine:une,imageEditLine:dne,imageLine:hne,indentDecrease:pne,indentIncrease:fne,informationLine:gne,inputCursorMove:mne,insertColumnLeft:vne,insertColumnRight:yne,insertRowBottom:bne,insertRowTop:xne,italic:wne,layoutColumnLine:kne,lineHeight:Ene,link:Ane,linkM:Sne,linkUnlink:Tne,linkUnlinkM:Cne,listCheck:Rne,listCheck2:_ne,listOrdered:Mne,listUnordered:One,markPenLine:Ine,markdownFill:Lne,markdownLine:Nne,mergeCellsHorizontal:$ne,mergeCellsVertical:Dne,mindMap:Pne,moreFill:zne,nodeTree:Fne,number0:Bne,number1:Hne,number2:Une,number3:Wne,number4:Vne,number5:jne,number6:Gne,number7:Kne,number8:Yne,number9:Xne,omega:qne,organizationChart:Zne,pageSeparator:Jne,paragraph:Qne,pencilFill:ere,pencilLine:tre,pinyinInput:nre,questionMark:rre,roundedCorner:ore,scissorsFill:ire,sendBackward:sre,sendToBack:are,separator:lre,singleQuotesL:cre,singleQuotesR:ure,sortAsc:dre,sortDesc:hre,space:pre,spamLine:fre,splitCellsHorizontal:gre,splitCellsVertical:mre,strikethrough:yre,strikethrough2:vre,subscript:xre,subscript2:bre,subtractLine:wre,superscript:Ere,superscript2:kre,table2:Sre,tableLine:Cre,text:Mre,textDirectionL:Tre,textDirectionR:Are,textSpacing:_re,textWrap:Rre,translate:Ire,translate2:Ore,underline:Lre,upload2Fill:Nre,videoLine:$re,wubiInput:Dre},Symbol.toStringTag,{value:"Module"}));function zre(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),l=!1,a=s;if(!s)return!1;if(s.depth>=2&&o.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(o.index(s.depth-1)==0)return!1;let c=n.doc.resolve(s.start-2);a=new ga(c,c,s.depth),s.endIndex=0;c--)i=J.from(n[c].type.create(n[c].attrs,i));t.step(new Gt(e.start-(r?2:0),e.end,e.start,e.end,new ae(i,0,0),n.length,!0));let s=0;for(let c=0;cs.childCount>0&&s.firstChild.type==t);return i?n?r.node(i.depth-1).type==t?Hre(e,n,t,i):Ure(e,n,i):!0:!1}}function Hre(t,e,n,r){let o=t.tr,i=r.end,s=r.$to.end(r.depth);ig;f--)p-=o.child(f).nodeSize,r.delete(p-1,p+1);let i=r.doc.resolve(n.start),s=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let l=n.startIndex==0,a=n.endIndex==o.childCount,u=i.node(-1),c=i.index(-1);if(!u.canReplace(c+(l?0:1),c+1,s.content.append(a?J.empty:J.from(o))))return!1;let d=i.pos,h=d+s.nodeSize;return r.step(new Gt(d-(l?1:0),h+(a?1:0),d+1,h-1,new ae((l?J.empty:J.from(o.copy(J.empty))).append(a?J.empty:J.from(o.copy(J.empty))),l?0:1,a?0:1),l?0:1)),e(r.scrollIntoView()),!0}var Wre=Object.defineProperty,Vre=Object.getOwnPropertyDescriptor,So=(t,e,n,r)=>{for(var o=r>1?void 0:r?Vre(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Wre(e,n,o),o};function Ew(t){var e;return!!((e=t.spec.group)!=null&&e.includes(we.ListContainerNode))}function jre(t){var e;return!!((e=t.spec.group)!=null&&e.includes(we.ListItemNode))}function na(t){return Ew(t.type)}function ra(t){return jre(t.type)}function Sw(t,e){return n=>{const{dispatch:r,tr:o}=n,i=Z1(o,n.state),{$from:s,$to:l}=o.selection,a=s.blockRange(l);if(!a)return!1;const u=Ku({predicate:c=>Ew(c.type),selection:o.selection});if(u&&a.depth-u.depth<=1&&a.startIndex===0){if(u.node.type===t)return UL(e)(n);if(Ew(u.node.type))return t.validContent(u.node.content)?(r==null||r(o.setNodeMarkup(u.pos,t)),!0):Gre(o,u,t,e)?(r==null||r(o.scrollIntoView()),!0):!1}return zre(t)(i,r)}}function BL(t,e=["checked"]){return function({tr:n,dispatch:r,state:o}){var i,s;const l=H3(t,o.schema),{$from:a,$to:u}=n.selection;if(qu(n.selection)&&n.selection.node.isBlock||a.depth<2||!a.sameParent(u))return!1;const c=a.node(-1);if(c.type!==l)return!1;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==l||a.index(-2)!==a.node(-2).childCount-1)return!1;if(r){const g=a.index(-1)>0;let m=J.empty;for(let b=a.depth-(g?1:2);b>=a.depth-3;b--)m=J.from(a.node(b).copy(m));const v=((i=l.contentMatch.defaultType)==null?void 0:i.createAndFill())||void 0;m=m.append(J.from(l.createAndFill(null,v)||void 0));const y=a.indexAfter(-1)!e.includes(g))),h=u.pos===a.end()?c.contentMatchAt(0).defaultType:null,p={...a.node().attrs};n.delete(a.pos,u.pos);const f=h?[{type:l,attrs:d},{type:h,attrs:p}]:[{type:l,attrs:d}];return Fl(n.doc,a.pos,2)?(r&&r(n.split(a.pos,2,f).scrollIntoView()),!0):!1}}function Gre(t,e,n,r){const o=e.node,i=t.doc.resolve(e.start),s=i.node(-1),l=i.index(-1);if(!s||!s.canReplace(l,l+1,J.from(n.create())))return!1;const a=[];for(let p=0;pm;g--)f-=o.child(g).nodeSize,r.delete(f-1,f+1);const s=r.doc.resolve(n.start),l=s.nodeAfter;if(!l||r.mapping.slice(i).map(n.end)!==n.start+l.nodeSize)return!1;const a=n.startIndex===0,u=n.endIndex===o.childCount,c=s.node(-1),d=s.index(-1);if(!c.canReplace(d+(a?0:1),d+1,l.content.append(u?J.empty:J.from(o))))return!1;const h=s.pos,p=h+l.nodeSize;return r.step(new Gt(h-(a?1:0),p+(u?1:0),h+1,p-1,new ae((a?J.empty:J.from(o.copy(J.empty))).append(u?J.empty:J.from(o.copy(J.empty))),a?0:1,u?0:1),a?0:1)),e(r.scrollIntoView()),!0}function HL(t,e){const n=e||t.selection.$from;let r=[],o,i,s,l;for(let u=n.depth;u>=0;u--){if(i=n.node(u),o=n.index(u),s=i.maybeChild(o-1),l=i.maybeChild(o),s&&l&&s.type.name===l.type.name&&na(s)){const c=n.before(u+1);r.push(c)}if(o=n.indexAfter(u),s=i.maybeChild(o-1),l=i.maybeChild(o),s&&l&&s.type.name===l.type.name&&na(s)){const c=n.after(u+1);r.push(c)}}r=[...new Set(r)].sort((u,c)=>c-u);let a=!1;for(const u of r)Iu(t.doc,u)&&(t.join(u),a=!0);return a}function UL(t){return e=>{const{dispatch:n,tr:r}=e,o=Z1(r,e.state),i=Xre(t,r.selection);return i?(n&&Yre(o,n,i),!0):!1}}function Xre(t,e){const{$from:n,$to:r}=e;return n.blockRange(r,i=>{var s;return((s=i.firstChild)==null?void 0:s.type)===t})}function Qm(t){const{$from:e,$to:n}=t;return e.blockRange(n,na)}function qre(t){const e=t.selection.$from,n=e.blockRange();if(!n||!ra(n.parent)||n.startIndex!==0)return!1;const r=e.node(n.depth-2),o=e.index(n.depth),i=e.index(n.depth-1),s=e.index(n.depth-2),l=r.maybeChild(s-1),a=l==null?void 0:l.lastChild;if(o!==0||i!==0)return!1;if(l&&na(l)&&a&&ra(a))return cu({listType:l.type,itemType:a.type,tr:t});if(ra(r)){const u=r,c=e.node(n.depth-3);if(na(c))return cu({listType:c.type,itemType:u.type,tr:t})}return!1}function WL({view:t}){if(!t)return!1;{const e=t.state.selection.$cursor;if(!e||e.parentOffset>0)return!1;const n=e.blockRange();if(!n||!ra(n.parent)||n.startIndex!==0)return!1}{const e=t.state.tr;qre(e)&&t.dispatch(e)}{const e=t.state.selection.$cursor;if(!e||e.parentOffset>0)return!1;const n=e.blockRange();if(!n||!ra(n.parent)||n.startIndex!==0)return!1;const r=e.index(n.depth),o=e.index(n.depth-1),i=e.index(n.depth-2),s=n.depth-2>=1&&ra(e.node(n.depth-2));r===0&&o===0&&i<=1&&s&&Bre(n.parent.type)(t.state,t.dispatch)}return RA(t.state,t.dispatch,t),!0}function VL({node:t,mark:e,updateDOM:n,updateMark:r}){const o=document.createElement("label");o.contentEditable="false",o.classList.add(_s.LIST_ITEM_MARKER_CONTAINER),o.append(e);const i=document.createElement("div"),s=document.createElement("li");s.classList.add(_s.LIST_ITEM_WITH_CUSTOM_MARKER),s.append(o),s.append(i);const l=a=>a.type!==t.type?!1:(t=a,n(t,s),r(t,e),!0);return l(t),{dom:s,contentDOM:i,update:l}}function Zre(t,e){const n=t.node(e.depth-1),r=t.node(e.depth-2);return!ra(n)||!na(r)?!1:{parentItem:n,parentList:r}}function Jre(t,e){const n=e.parent,r=e.parent.child(e.endIndex-1),o=e.end,i=e.$to.end(e.depth);return otoe(t)?(e==null||e(t.scrollIntoView()),!0):!1;function roe(t,e,n){let r,o,i,s;const l=e.doc;if(n.startIndex>=1){r=t.child(n.startIndex-1),o=t,s=l.resolve(n.start).start(n.depth),i=s+1;for(let a=0;a=1){const u=e.node(n.depth-1),c=e.start(n.depth-1);if(o=u.child(a-1),!na(o))return!1;s=c+1;for(let d=0;d=n.depth+2?e.end(n.depth+2):n.end-1,l=n.end;return s+1>=l?(r=t.slice(i,l),o=null):(r=t.slice(i,s),o=t.slice(s+1,l-1)),{selectedSlice:r,unselectedSlice:o}}function ioe(t){const{$from:e,$to:n}=t.selection,r=Qm(t.selection);if(!r)return!1;const o=t.doc.resolve(r.start).node();if(!na(o))return!1;const i=roe(o,e,r);if(!i)return!1;const{previousItem:s,previousList:l,previousItemStart:a}=i,{selectedSlice:u,unselectedSlice:c}=ooe(t.doc,n,r),d=s.content.append(J.fromArray([o.copy(u.content)])).append(c?c.content:J.empty);t.deleteRange(r.start,r.end);const h=a+s.nodeSize-2,p=s.copy(d);return p.check(),t.replaceRangeWith(a-1,h+1,p),t.setSelection(l===o?Me.between(t.doc.resolve(e.pos),t.doc.resolve(n.pos)):Me.between(t.doc.resolve(e.pos-2),t.doc.resolve(n.pos-2))),!0}var soe=({tr:t,dispatch:e})=>ioe(t)?(e==null||e(t.scrollIntoView()),!0):!1,jL=class extends ht{get name(){return"listItemShared"}createKeymap(){const t={Tab:soe,"Shift-Tab":noe,Backspace:WL,"Mod-Backspace":WL};if(br.isMac){const e={"Ctrl-h":t.Backspace,"Alt-Backspace":t["Mod-Backspace"]};return{...t,...e}}return t}createPlugin(){return{appendTransaction:(t,e,n)=>{const r=n.tr;return HL(r)?r:null}}}},ul=class extends Rn{get name(){return"listItem"}createTags(){return[we.ListItemNode]}createNodeSpec(t,e){return{content:"paragraph block*",defining:!0,draggable:!1,...e,attrs:{...t.defaults(),closed:{default:!1},nested:{default:!1}},parseDOM:[{tag:"li",getAttrs:t.parse,priority:tt.Lowest},...e.parseDOM??[]],toDOM:n=>["li",t.dom(n),0]}}createNodeViews(){return this.options.enableCollapsible?(t,e,n)=>{const r=document.createElement("div");return r.classList.add(_s.COLLAPSIBLE_LIST_ITEM_BUTTON),r.contentEditable="false",r.addEventListener("click",()=>{if(r.classList.contains("disabled"))return;const o=n(),i=Oe.create(e.state.doc,o);return e.dispatch(e.state.tr.setSelection(i)),this.store.commands.toggleListItemClosed(),!0}),VL({mark:r,node:t,updateDOM:aoe,updateMark:loe})}:{}}createKeymap(){return{Enter:BL(this.type)}}createExtensions(){return[new jL]}toggleListItemClosed(t){return({state:{tr:e,selection:n},dispatch:r})=>{if(!qu(n)||n.node.type.name!==this.name)return!1;const{node:o,from:i}=n;return t=n1(t)?t:!o.attrs.closed,r==null||r(e.setNodeMarkup(i,void 0,{...o.attrs,closed:t})),!0}}liftListItemOutOfList(t){return UL(t??this.type)}};So([le()],ul.prototype,"toggleListItemClosed",1),So([le()],ul.prototype,"liftListItemOutOfList",1),ul=So([Ne({defaultOptions:{enableCollapsible:!1},staticKeys:["enableCollapsible"]})],ul);function aoe(t,e){t.attrs.closed?e.classList.add(_s.COLLAPSIBLE_LIST_ITEM_CLOSED):e.classList.remove(_s.COLLAPSIBLE_LIST_ITEM_CLOSED)}function loe(t,e){t.childCount<=1?e.classList.add("disabled"):e.classList.remove("disabled")}var qh=class extends Rn{get name(){return"bulletList"}createTags(){return[we.Block,we.ListContainerNode]}createNodeSpec(t,e){return{content:"listItem+",...e,attrs:t.defaults(),parseDOM:[{tag:"ul",getAttrs:t.parse},...e.parseDOM??[]],toDOM:n=>["ul",t.dom(n),0]}}createNodeViews(){return this.options.enableSpine?(t,e,n)=>{var r;const o=document.createElement("div");o.style.position="relative";const i=n(),s=e.state.doc.resolve(i+1),l=s.node(s.depth-1);if(!(((r=l==null?void 0:l.type)==null?void 0:r.name)!=="listItem")){const c=document.createElement("div");c.contentEditable="false",c.classList.add(_s.LIST_SPINE),c.addEventListener("click",d=>{const h=n(),p=e.state.doc.resolve(h+1),f=p.start(p.depth-1),g=Oe.create(e.state.doc,f-1);e.dispatch(e.state.tr.setSelection(g)),this.store.commands.toggleListItemClosed(),d.preventDefault(),d.stopPropagation()}),o.append(c)}const u=document.createElement("ul");return u.classList.add(_s.UL_LIST_CONTENT),o.append(u),{dom:o,contentDOM:u}}:{}}createExtensions(){return[new ul({priority:tt.Low,enableCollapsible:this.options.enableSpine})]}toggleBulletList(){return Sw(this.type,_t(this.store.schema.nodes,"listItem"))}listShortcut(t){return this.toggleBulletList()(t)}createInputRules(){const t=/^\s*([*+-])\s$/;return[Hp(t,this.type),new xa(t,(e,n,r,o)=>{const i=e.tr;return i.deleteRange(r,o),cu({listType:this.type,itemType:_t(this.store.schema.nodes,"listItem"),tr:i})?i:null})]}};So([le({icon:"listUnordered",label:({t})=>t(S1.BULLET_LIST_LABEL)})],qh.prototype,"toggleBulletList",1),So([Zt({shortcut:oe.BulletList,command:"toggleBulletList"})],qh.prototype,"listShortcut",1),qh=So([Ne({defaultOptions:{enableSpine:!1},staticKeys:["enableSpine"]})],qh);var Zh=class extends Rn{get name(){return"orderedList"}createTags(){return[we.Block,we.ListContainerNode]}createNodeSpec(t,e){return{content:"listItem+",...e,attrs:{...t.defaults(),order:{default:1}},parseDOM:[{tag:"ol",getAttrs:n=>Ft(n)?{...t.parse(n),order:+(n.getAttribute("start")??1)}:{}},...e.parseDOM??[]],toDOM:n=>{const r=t.dom(n);return n.attrs.order===1?["ol",r,0]:["ol",{...r,start:n.attrs.order},0]}}}createExtensions(){return[new ul({priority:tt.Low})]}toggleOrderedList(){return Sw(this.type,_t(this.store.schema.nodes,"listItem"))}listShortcut(t){return this.toggleOrderedList()(t)}createInputRules(){const t=/^(\d+)\.\s$/;return[Hp(t,this.type,e=>({order:+_t(e,1)}),(e,n)=>n.childCount+n.attrs.order===+_t(e,1)),new xa(t,(e,n,r,o)=>{const i=e.tr;if(i.deleteRange(r,o),!cu({listType:this.type,itemType:_t(this.store.schema.nodes,"listItem"),tr:i}))return null;const l=+_t(n,1);if(l!==1){const a=ti({selection:i.selection,types:this.type});a&&i.setNodeMarkup(a.pos,void 0,{order:l})}return i})]}};So([le({icon:"listOrdered",label:({t})=>t(S1.ORDERED_LIST_LABEL)})],Zh.prototype,"toggleOrderedList",1),So([Zt({shortcut:oe.OrderedList,command:"toggleOrderedList"})],Zh.prototype,"listShortcut",1),Zh=So([Ne({})],Zh);var GL=class extends Rn{get name(){return"taskListItem"}createTags(){return[we.ListItemNode]}createNodeSpec(t,e){return{content:"paragraph block*",defining:!0,draggable:!1,...e,attrs:{...t.defaults(),checked:{default:!1}},parseDOM:[{tag:"li[data-task-list-item]",getAttrs:n=>{let r=!1;return Ft(n)&&n.getAttribute("data-checked")!==null&&(r=!0),{checked:r,...t.parse(n)}},priority:tt.Medium},...e.parseDOM??[]],toDOM:n=>["li",{...t.dom(n),"data-task-list-item":"","data-checked":n.attrs.checked?"":void 0},0]}}createNodeViews(){return(t,e,n)=>{const r=document.createElement("input");return r.type="checkbox",r.classList.add(_s.LIST_ITEM_CHECKBOX),r.contentEditable="false",r.addEventListener("click",o=>{e.editable||o.preventDefault()}),r.addEventListener("change",()=>{const o=n(),i=e.state.doc.resolve(o+1);this.store.commands.toggleCheckboxChecked({$pos:i})}),r.checked=t.attrs.checked,VL({node:t,mark:r,updateDOM:coe,updateMark:uoe})}}createKeymap(){return{Enter:BL(this.type)}}createExtensions(){return[new jL]}toggleCheckboxChecked(t){let e,n;return typeof t=="boolean"?e=t:t&&(e=t.checked,n=t.$pos),({tr:r,dispatch:o})=>{const i=ti({selection:n??r.selection.$from,types:this.type});if(!i)return!1;const{node:s,pos:l}=i,a={...s.attrs,checked:e??!s.attrs.checked};return o==null||o(r.setNodeMarkup(l,void 0,a)),!0}}createInputRules(){const t=/^\s*(\[( ?|x|X)]\s)$/;return[Hp(t,this.type,e=>({checked:["x","X"].includes(Ql(e,2))})),new xa(t,(e,n,r,o)=>{const i=e.tr;if(i.deleteRange(r,o),!cu({listType:_t(this.store.schema.nodes,"taskList"),itemType:this.type,tr:i}))return null;const l=["x","X"].includes(Ql(n,2));if(l){const a=ti({selection:i.selection,types:this.type});a&&i.setNodeMarkup(a.pos,void 0,{checked:l})}return i})]}};So([le()],GL.prototype,"toggleCheckboxChecked",1);function coe(t,e){t.attrs.checked?e.setAttribute("data-checked",""):e.removeAttribute("data-checked"),e.setAttribute("data-task-list-item","")}function uoe(t,e){e.checked=!!t.attrs.checked}var KL=class extends Rn{get name(){return"taskList"}createTags(){return[we.Block,we.ListContainerNode]}createNodeSpec(t,e){return{content:"taskListItem+",...e,attrs:t.defaults(),parseDOM:[{tag:"ul[data-task-list]",getAttrs:t.parse,priority:tt.Medium},...e.parseDOM??[]],toDOM:n=>["ul",{...t.dom(n),"data-task-list":""},0]}}createExtensions(){return[new GL({})]}toggleTaskList(){return Sw(this.type,_t(this.store.schema.nodes,"taskListItem"))}listShortcut(t){return this.toggleTaskList()(t)}};So([le({icon:"checkboxMultipleLine",label:({t})=>t(S1.TASK_LIST_LABEL)})],KL.prototype,"toggleTaskList",1),So([Zt({shortcut:oe.TaskList,command:"toggleTaskList"})],KL.prototype,"listShortcut",1);var vi,doe=(t=document)=>vi||(vi=t.createElement("div"),vi.setAttribute("id","a11y-status-message"),vi.setAttribute("role","status"),vi.setAttribute("aria-live","polite"),vi.setAttribute("aria-relevant","additions text"),Object.assign(vi.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),t.body.append(vi),vi);AS(500,()=>{doe().textContent=""});function YL(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function XL(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function Cw(t,e){if(t.clientHeighte||i>t&&s=e&&l>=n?i-t-r:s>e&&ln?s-e+o:0}var hoe=function(t,e){var n=window,r=e.scrollMode,o=e.block,i=e.inline,s=e.boundary,l=e.skipOverflowHiddenElements,a=typeof s=="function"?s:function(Re){return Re!==s};if(!YL(t))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,h=[],p=t;YL(p)&&a(p);){if((p=(c=(u=p).parentElement)==null?u.getRootNode().host||null:c)===d){h.push(p);break}p!=null&&p===document.body&&Cw(p)&&!Cw(document.documentElement)||p!=null&&Cw(p,l)&&h.push(p)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,y=t.getBoundingClientRect(),b=y.height,x=y.width,k=y.top,w=y.right,S=y.bottom,A=y.left,C=o==="start"||o==="nearest"?k:o==="end"?S:k+b/2,O=i==="center"?A+x/2:i==="end"?w:A,R=[],_=0;_=0&&A>=0&&S<=g&&w<=f&&k>=N&&S<=$&&A>=P&&w<=L)return R;var F=getComputedStyle(T),H=parseInt(F.borderLeftWidth,10),W=parseInt(F.borderTopWidth,10),B=parseInt(F.borderRightWidth,10),U=parseInt(F.borderBottomWidth,10),G=0,Y=0,X="offsetWidth"in T?T.offsetWidth-T.clientWidth-H-B:0,Z="offsetHeight"in T?T.offsetHeight-T.clientHeight-W-U:0,ne="offsetWidth"in T?T.offsetWidth===0?0:I/T.offsetWidth:0,de="offsetHeight"in T?T.offsetHeight===0?0:M/T.offsetHeight:0;if(d===T)G=o==="start"?C:o==="end"?C-g:o==="nearest"?ev(v,v+g,g,W,U,v+C,v+C+b,b):C-g/2,Y=i==="start"?O:i==="center"?O-f/2:i==="end"?O-f:ev(m,m+f,f,H,B,m+O,m+O+x,x),G=Math.max(0,G+v),Y=Math.max(0,Y+m);else{G=o==="start"?C-N-W:o==="end"?C-$+U+Z:o==="nearest"?ev(N,$,M,W,U+Z,C,C+b,b):C-(N+M/2)+Z/2,Y=i==="start"?O-P-H:i==="center"?O-(P+I/2)+X/2:i==="end"?O-L+B+X:ev(P,L,I,H,B+X,O,O+x,x);var Ie=T.scrollLeft,ve=T.scrollTop;C+=ve-(G=Math.max(0,Math.min(ve+G/de,T.scrollHeight-M/de+Z))),O+=Ie-(Y=Math.max(0,Math.min(Ie+Y/ne,T.scrollWidth-I/ne+X)))}R.push({el:T,top:G,left:Y})}return R};typeof ur=="object"&&ur.__esModule&&ur.default&&ur.default,Ap(hoe);var poe=typeof document<"u"?D.useLayoutEffect:D.useEffect;function foe(t){const e=D.useRef();return poe(()=>{e.current=t}),e.current}function goe(t,e){const[n,r]=D.useState([]),[o,i]=D.useState(()=>ey(t)),[s,l]=D.useState([]),a=D.useRef(t),u=foe(o);return a.current=t,kh(hc,({addCustomHandler:c})=>{const d=ey(a.current),h=c("positioner",d);return i(d),h},e),D.useLayoutEffect(()=>{const c=o.addListener("update",h=>{const p=[];for(const{id:f,data:g,setElement:m}of h){const v=y=>{y&&m(y)};p.push({id:f,data:g,ref:v})}l(p)}),d=o.addListener("done",h=>{r(h)});return u!=null&&u.recentUpdate&&o.onActiveChanged(u==null?void 0:u.recentUpdate),()=>{c(),d()}},[o,u]),D.useMemo(()=>{const c=[];for(const[d,{ref:h,data:p,id:f}]of s.entries()){const g=n[d],{element:m,position:v={}}=g??{},y={...Af,...OS(v)};c.push({ref:h,element:m,data:p,key:f,...y})}return c},[s,n])}function qL(t,e){const n=e==null||n1(e)?[t]:e,r=n1(e)?e:!0,o=D.useRef(Ll()),s=goe(t,n)[0];return D.useMemo(()=>s&&r?{...s,active:!0}:{...Af,ref:void 0,data:{},active:!1,key:o.current},[r,s])}function Tw(t,e){return Xe(t)?t(e):t}function moe(t){return ke(t[0])}function voe(t,e){var n;return ke(t)?t:Ot(t)?moe(t)?t[0]??"":((n=t.find(r=>IS(r.attrs,e))??t[0])==null?void 0:n.shortcut)??"":t.shortcut}var yoe={title:t=>s4(t),upper:t=>t.toLocaleUpperCase(),lower:t=>t.toLocaleLowerCase()};function boe(t,e){const{casing:n="title",namedAsSymbol:r=!1,modifierAsSymbol:o=!0,separator:i=" ",t:s}=e,l=bz(t),a=[],u=yoe[n];for(const c of l){if(c.type==="char"){a.push(u(c.key));continue}if(c.type==="named"){const h=r===!0||Ot(r)&&Jn(r,c.key)?c.symbol??s(c.i18n):s(c.i18n);a.push(u(h));continue}const d=o===!0||Ot(o)&&Jn(o,c.key)?c.symbol:s(c.i18n);a.push(u(d))}return a.join(i)}var ZL=({commandName:t,active:e,enabled:n,attrs:r})=>{const{t:o}=RK(),{getCommandOptions:i}=Eh(),s=i(t),{description:l,label:a,icon:u,shortcut:c}=s||{},d=D.useMemo(()=>({active:e,attrs:r,enabled:n,t:o}),[e,r,n,o]),h=D.useMemo(()=>{if(c)return boe(voe(c,r??{}),{t:o,separator:""})},[c,r,o]);return D.useMemo(()=>({description:Tw(l,d),label:Tw(a,d),icon:Tw(u,d),shortcut:h}),[d,l,a,u,h])},xoe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},JL=D.createContext(xoe);JL.Provider;function QL(t){return t.map((e,n)=>D.createElement(e.tag,{key:n,...e.attr},QL(e.child??[])))}var tv=t=>{const{name:e}=t;return ee.createElement(woe,{...t},QL(Pre[e]))},woe=t=>{const e=n=>{const r=t.size??n.size??"1em";let o;n.className&&(o=n.className),t.className&&(o=(o?`${o} `:"")+t.className);const{title:i,...s}=t;return ee.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",...n.attr,...s,className:o,style:{color:t.color??n.color,...n.style,...t.style},height:r,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},i&&ee.createElement("title",null,i),t.children)};return ee.createElement(JL.Consumer,null,e)},koe=t=>ns(t)?!!t.name:!1,Eoe=({icon:t})=>ke(t)?ee.createElement(tv,{name:t,size:"1rem"}):t,Soe=({icon:t,children:e})=>{if(!koe(t))return ee.createElement(ee.Fragment,null,e);const{sub:n,sup:r}=t,o=n??r,i=n!==void 0;return o===void 0?ee.createElement(ee.Fragment,null,e):ee.createElement(VQ,{anchorOrigin:{vertical:i?"bottom":"top",horizontal:"right"},badgeContent:o,sx:{"& > .MuiBadge-badge":{bgcolor:"background.paper",color:"text.secondary",minWidth:12,height:12,margin:"2px 0",padding:"1px"}}},e)},kt=({commandName:t,active:e=!1,enabled:n,attrs:r,onSelect:o,onChange:i,icon:s,displayShortcut:l=!0,"aria-label":a,label:u,...c})=>{const d=D.useCallback((y,b)=>{o(),i==null||i(y,b)},[o,i]),h=D.useCallback(y=>{y.preventDefault()},[]),p=ZL({commandName:t,active:e,enabled:n,attrs:r});let f=null;p.icon&&(f=ke(p.icon)?p.icon:p.icon.name);const g=a??p.label??"",m=u??g,v=l&&p.shortcut?` (${p.shortcut})`:"";return ee.createElement(zL,{title:`${m}${v}`},ee.createElement(_L,{component:"span",sx:{"&:not(:first-of-type)":{marginLeft:"-1px"}}},ee.createElement(Jee,{"aria-label":g,selected:e,disabled:!n,onMouseDown:h,color:"primary",size:"small",sx:{padding:"6px 12px","&.Mui-selected":{backgroundColor:"primary.main",color:"primary.contrastText"},"&.Mui-selected:hover":{backgroundColor:"primary.dark",color:"primary.contrastText"},"&:not(:first-of-type)":{borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0}},...c,value:t,onChange:d},ee.createElement(Soe,{icon:p.icon},ee.createElement(Eoe,{icon:s??f})))))},Coe=({icon:t})=>ke(t)?ee.createElement(tv,{name:t,size:"1rem"}):t,eN=({label:t,"aria-label":e,icon:n,children:r,onClose:o,...i})=>{const s=D.useRef(Ll()),[l,a]=D.useState(null),u=!!l,c=D.useCallback(p=>{p.preventDefault()},[]),d=D.useCallback(p=>{a(p.currentTarget)},[]),h=D.useCallback((p,f)=>{a(null),o==null||o(p,f)},[o]);return ee.createElement(ee.Fragment,null,ee.createElement(zL,{title:t??e},ee.createElement(PZ,{"aria-label":e,"aria-controls":u?s.current:void 0,"aria-haspopup":!0,"aria-expanded":u?"true":void 0,onMouseDown:c,onClick:d,size:"small",sx:p=>({border:`1px solid ${p.palette.divider}`,borderRadius:`${p.shape.borderRadius}px`,padding:"6px 12px","&:not(:first-of-type)":{marginLeft:"-1px",borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0}})},n&&ee.createElement(Coe,{icon:n}),ee.createElement(tv,{name:"arrowDownSFill",size:"1rem"}))),ee.createElement(Nee,{...i,id:s.current,anchorEl:l,open:u,onClose:h},r))},Toe=t=>{const{insertHorizontalRule:e}=un();Zg();const n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=e.enabled();return ee.createElement(kt,{...t,commandName:"insertHorizontalRule",enabled:r,onSelect:n})},Aoe=t=>{const{redo:e}=un(),{redoDepth:n}=Eh(!0),r=D.useCallback(()=>{e.enabled()&&e()},[e]),o=n()>0;return ee.createElement(kt,{...t,commandName:"redo",active:!1,enabled:o,onSelect:r})},_oe=t=>{const{toggleBlockquote:e}=un(),n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=dr().blockquote(),o=e.enabled();return ee.createElement(kt,{...t,commandName:"toggleBlockquote",active:r,enabled:o,onSelect:n})},Aw=t=>{const{toggleBold:e}=un(),n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=dr().bold(),o=e.enabled();return ee.createElement(kt,{...t,commandName:"toggleBold",active:r,enabled:o,onSelect:n})},Roe=t=>{const{toggleBulletList:e}=un(),n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=dr().bulletList(),o=e.enabled();return ee.createElement(kt,{...t,commandName:"toggleBulletList",active:r,enabled:o,onSelect:n})},Moe=({attrs:t={},...e})=>{const{toggleCodeBlock:n}=un(),r=D.useCallback(()=>{n.enabled(t)&&n(t)},[n,t]),o=dr().codeBlock(),i=n.enabled(t);return ee.createElement(kt,{...e,commandName:"toggleCodeBlock",active:o,enabled:i,attrs:t,onSelect:r})},_w=t=>{const{toggleCode:e}=un(),n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=dr().code(),o=e.enabled();return ee.createElement(kt,{...t,commandName:"toggleCode",active:r,enabled:o,onSelect:n})},Rw=({attrs:t,...e})=>{const{toggleHeading:n}=un(),r=D.useCallback(()=>{n.enabled(t)&&n(t)},[n,t]),o=dr().heading(t),i=n.enabled(t);return ee.createElement(kt,{...e,commandName:"toggleHeading",active:o,enabled:i,attrs:t,onSelect:r})},Mw=t=>{const{toggleItalic:e}=un(),n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=dr().italic(),o=e.enabled();return ee.createElement(kt,{...t,commandName:"toggleItalic",active:r,enabled:o,onSelect:n})},Ooe=t=>{const{toggleOrderedList:e}=un(),n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=dr().orderedList(),o=e.enabled();return ee.createElement(kt,{...t,commandName:"toggleOrderedList",active:r,enabled:o,onSelect:n})},Ioe=t=>{const{toggleStrike:e}=un(),n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=dr().strike(),o=e.enabled();return ee.createElement(kt,{...t,commandName:"toggleStrike",active:r,enabled:o,onSelect:n})},Ow=t=>{const{toggleUnderline:e}=un(),n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=dr().underline(),o=e.enabled();return ee.createElement(kt,{...t,commandName:"toggleUnderline",active:r,enabled:o,onSelect:n})},Loe=t=>{const{undo:e}=un(),{undoDepth:n}=Eh(!0),r=D.useCallback(()=>{e.enabled()&&e()},[e]),o=n()>0;return ee.createElement(kt,{...t,commandName:"undo",active:!1,enabled:o,onSelect:r})},to=t=>ee.createElement(_L,{sx:{display:"flex",alignItems:"center",width:"fit-content",bgcolor:"background.paper",color:"text.secondary"},...t}),Noe=({children:t})=>ee.createElement(to,null,ee.createElement(Aw,null),ee.createElement(Mw,null),ee.createElement(Ow,null),ee.createElement(Ioe,null),ee.createElement(_w,null),t),$oe=({icon:t})=>t?ee.createElement(uee,null,ke(t)?ee.createElement(tv,{name:t,size:"1rem"}):ee.createElement(ee.Fragment,null,t)):null,Iw=({commandName:t,active:e=!1,enabled:n,attrs:r,onSelect:o,onClick:i,icon:s,displayShortcut:l=!0,label:a,description:u,displayDescription:c=!0,...d})=>{const h=D.useCallback(y=>{o(),i==null||i(y)},[o,i]),p=D.useCallback(y=>{y.preventDefault()},[]),f=ZL({commandName:t,active:e,enabled:n,attrs:r});let g=null;f.icon&&(g=ke(f.icon)?f.icon:f.icon.name);const m=a??f.label??"",v=c&&(u??f.description);return ee.createElement(Bee,{selected:e,disabled:!n,onMouseDown:p,...d,onClick:h},s!==null&&ee.createElement($oe,{icon:s??g}),ee.createElement(gee,{primary:m,secondary:v}),l&&f.shortcut&&ee.createElement(Dh,{variant:"body2",color:"text.secondary",sx:{ml:2}},f.shortcut))},nv=({attrs:t,...e})=>{const{toggleHeading:n}=un(),r=D.useCallback(()=>{n.enabled(t)&&n(t)},[n,t]),o=dr().heading(t),i=n.enabled(t);return ee.createElement(Iw,{...e,commandName:"toggleHeading",active:o,enabled:i,attrs:t,onSelect:r})},Doe={level:1},Poe={level:2},tN={level:3},zoe={level:4},Foe={level:5},Boe={level:6},Hoe=({showAll:t=!1,children:e})=>ee.createElement(to,null,ee.createElement(Rw,{attrs:Doe}),ee.createElement(Rw,{attrs:Poe}),t?ee.createElement(eN,{"aria-label":"More heading options"},ee.createElement(nv,{attrs:tN}),ee.createElement(nv,{attrs:zoe}),ee.createElement(nv,{attrs:Foe}),ee.createElement(nv,{attrs:Boe})):ee.createElement(Rw,{attrs:tN}),e),Uoe=({children:t})=>ee.createElement(to,null,ee.createElement(Loe,null),ee.createElement(Aoe,null),t);typeof ur=="object"&&ur.__esModule&&ur.default&&ur.default;var Woe=t=>{const e=Eh().getPositionerWidget();return fh.createPortal(ee.createElement(ee.Fragment,null,t.children),e)},nN=D.createContext({});function Voe(t={}){const e=D.useContext(nN),n=D.useMemo(()=>$S(e,t.theme??{}),[e,t.theme]),r=D.useMemo(()=>EU(n).styles,[n]),o=tc(kU,t.className);return D.useMemo(()=>({style:r,className:o,theme:n}),[r,o,n])}var joe=t=>{var e,n,r,o,i,s,l,a;const{children:u,as:c="div"}=t,{theme:d,style:h,className:p}=Voe({theme:t.theme??$a}),f=Yx({palette:{primary:{main:((e=d.color)==null?void 0:e.primary)??$a.color.primary,dark:((r=(n=d.color)==null?void 0:n.hover)==null?void 0:r.primary)??$a.color.hover.primary,contrastText:((o=d.color)==null?void 0:o.primaryText)??$a.color.primaryText},secondary:{main:((i=d.color)==null?void 0:i.secondary)??$a.color.secondary,dark:((l=(s=d.color)==null?void 0:s.hover)==null?void 0:l.secondary)??$a.color.hover.secondary,contrastText:((a=d.color)==null?void 0:a.secondaryText)??$a.color.secondaryText}}});return ee.createElement(oZ,{theme:f},ee.createElement(nN.Provider,{value:d},ee.createElement(c,{style:h,className:p},u)))},rN=t=>ee.createElement(JQ,{direction:"row",spacing:1,sx:{backgroundColor:"background.paper",overflowX:"auto"},...t}),Goe=[{name:"offset",options:{offset:[0,8]}}],Koe=({positioner:t="selection",children:e,...n})=>{const{ref:r,x:o,y:i,width:s,height:l,active:a}=qL(()=>ey(t),[t]),[u,c]=D.useState(null),d=D.useMemo(()=>({position:"absolute",pointerEvents:"none",left:o,top:i,width:s,height:l}),[o,i,s,l]),h=D.useCallback(p=>{c(p),r==null||r(p)},[r]);return ee.createElement(ee.Fragment,null,ee.createElement("div",{ref:h,style:d}),ee.createElement(fw,{placement:"top",modifiers:Goe,...n,open:a,anchorEl:u},ee.createElement(rN,null,e?ee.createElement(ee.Fragment,null,e):ee.createElement(Noe,null))))},Yoe=({languages:t=[],className:e="",offset:n={x:0,y:0},onLanguageChange:r,onPointerDownSelect:o,onSelectChange:i})=>{var s;const l=qL(qoe,[]),{getExtension:a,getState:u}=Xr(),{focus:c,updateCodeBlock:d}=un(),h=a(ho).options,[p]=D.useState(()=>{const x=new Map;return h.supportedLanguages.forEach(k=>{k.aliases.forEach(w=>!t.some(S=>S.displayName===w)&&x.set(w,k.displayName))}),x}),[f]=D.useState([...t,{displayName:h.defaultLanguage},...h.supportedLanguages]),{selection:g}=u(),[m,v]=D.useState("auto"),y=(s=ti({selection:g,types:"codeBlock"}))==null?void 0:s.node.attrs.language,b=D.useMemo(()=>{const x=p.get(y);return x||(h.supportedLanguages.some(k=>y===k.displayName)?y:h.defaultLanguage)},[p,h.defaultLanguage,h.supportedLanguages,y]);return D.useEffect(()=>{var x;const k=l.element;if(r!=null&&r(b,k,v))return;if((S=>S&&S.nodeName==="SELECT"||!1)(k)){const S=(x=k.options[k.selectedIndex])==null?void 0:x.dataset.width;v(S?`${S}px`:"auto")}},[l.element,b,r]),ee.createElement(Woe,null,ee.createElement("select",{ref:l.ref,className:e,onBlur:()=>c(),onChange:x=>{var k;i!=null&&i(x,v)||(v(`${(k=x.target.options[x.target.selectedIndex])==null?void 0:k.dataset.width}px`),d({language:x.target.dataset.value||x.target.value}))},onPointerDown:o,style:{"--w":m,"--x":`${l.x+n.x}px`,"--y":`${l.y+n.y}px`,display:y?"block":"none"},value:b},y?Xoe(f):null))},Xoe=DB(t=>r1(t.map(({displayName:n,value:r})=>({displayName:n,value:r||n})),"displayName").sort((n,r)=>n.displayName>r.displayName?1:n.displayName{const r=document.createElement("select"),o=document.createElement("option");let i="0px";return r.append(o),document.body.append(r),o.textContent=n.displayName,i=String(r.getBoundingClientRect().width),r.remove(),{...n,width:i}}).map(({displayName:n,value:r,width:o})=>ee.createElement("option",{key:n,"data-value":r,"data-width":o,value:n},n)));function qoe(){return Br.create({getActive(t){const{selection:e}=t.state,n=ti({selection:e,types:"codeBlock"});return n?[{codeBlockResult:n}]:Br.EMPTY},getPosition(t){const{data:e,view:n}=t,{pos:r}=e.codeBlockResult,o=n.nodeDOM(r);if(!o||!Ft(o))return Af;const i=o.getBoundingClientRect(),s=n.dom.getBoundingClientRect(),l=n.dom.scrollLeft+i.left-s.left,a=n.dom.scrollTop+i.top-s.top,u=Z0(i,n.dom);return{height:0,rect:i,visible:u,width:0,x:l,y:a}},hasChanged:q0})}var tn=Ap(Am),Lw=Yt` +`),wo.rippleVisible,UZ,iw,({theme:t})=>t.transitions.easing.easeInOut,wo.ripplePulsate,({theme:t})=>t.transitions.duration.shorter,wo.child,wo.childLeaving,WZ,iw,({theme:t})=>t.transitions.easing.easeInOut,wo.childPulsate,VZ,({theme:t})=>t.transitions.easing.easeInOut),KZ=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,l=ze(r,BZ),[a,u]=D.useState([]),c=D.useRef(0),d=D.useRef(null);D.useEffect(()=>{d.current&&(d.current(),d.current=null)},[a]);const h=D.useRef(!1),p=D.useRef(0),f=D.useRef(null),g=D.useRef(null);D.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=D.useCallback(x=>{const{pulsate:k,rippleX:w,rippleY:S,rippleSize:T,cb:C}=x;u(O=>[...O,V.jsx(GZ,{classes:{ripple:je(i.ripple,wo.ripple),rippleVisible:je(i.rippleVisible,wo.rippleVisible),ripplePulsate:je(i.ripplePulsate,wo.ripplePulsate),child:je(i.child,wo.child),childLeaving:je(i.childLeaving,wo.childLeaving),childPulsate:je(i.childPulsate,wo.childPulsate)},timeout:iw,pulsate:k,rippleX:w,rippleY:S,rippleSize:T},c.current)]),c.current+=1,d.current=C},[i]),v=D.useCallback((x={},k={},w=()=>{})=>{const{pulsate:S=!1,center:T=o||k.pulsate,fakeElement:C=!1}=k;if((x==null?void 0:x.type)==="mousedown"&&h.current){h.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(h.current=!0);const O=C?null:g.current,R=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,A,E;if(T||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)_=Math.round(R.width/2),A=Math.round(R.height/2);else{const{clientX:M,clientY:I}=x.touches&&x.touches.length>0?x.touches[0]:x;_=Math.round(M-R.left),A=Math.round(I-R.top)}if(T)E=Math.sqrt((2*R.width**2+R.height**2)/3),E%2===0&&(E+=1);else{const M=Math.max(Math.abs((O?O.clientWidth:0)-_),_)*2+2,I=Math.max(Math.abs((O?O.clientHeight:0)-A),A)*2+2;E=Math.sqrt(M**2+I**2)}x!=null&&x.touches?f.current===null&&(f.current=()=>{m({pulsate:S,rippleX:_,rippleY:A,rippleSize:E,cb:w})},p.current=setTimeout(()=>{f.current&&(f.current(),f.current=null)},HZ)):m({pulsate:S,rippleX:_,rippleY:A,rippleSize:E,cb:w})},[o,m]),y=D.useCallback(()=>{v({},{pulsate:!0})},[v]),b=D.useCallback((x,k)=>{if(clearTimeout(p.current),(x==null?void 0:x.type)==="touchend"&&f.current){f.current(),f.current=null,p.current=setTimeout(()=>{b(x,k)});return}f.current=null,u(w=>w.length>0?w.slice(1):w),d.current=k},[]);return D.useImperativeHandle(n,()=>({pulsate:y,start:v,stop:b}),[y,v,b]),V.jsx(jZ,K({className:je(wo.root,i.root,s),ref:g},l,{children:V.jsx(LZ,{component:null,exit:!0,children:a})}))});function YZ(t){return bn("MuiButtonBase",t)}const XZ=xn("MuiButtonBase",["root","disabled","focusVisible"]),qZ=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ZZ=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:o}=t,s=Nn({root:["root",e&&"disabled",n&&"focusVisible"]},YZ,o);return n&&r&&(s.root+=` ${r}`),s},JZ=wt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${XZ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),sw=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:l,component:a="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:h=!1,LinkComponent:p="a",onBlur:f,onClick:g,onContextMenu:m,onDragLeave:v,onFocus:y,onFocusVisible:b,onKeyDown:x,onKeyUp:k,onMouseDown:w,onMouseLeave:S,onMouseUp:T,onTouchEnd:C,onTouchMove:O,onTouchStart:R,tabIndex:_=0,TouchRippleProps:A,touchRippleRef:E,type:M}=r,I=ze(r,qZ),N=D.useRef(null),L=D.useRef(null),$=Rr(L,E),{isFocusVisibleRef:P,onFocus:F,onBlur:H,ref:W}=uI(),[B,U]=D.useState(!1);u&&B&&U(!1),D.useImperativeHandle(o,()=>({focusVisible:()=>{U(!0),N.current.focus()}}),[]);const[G,Y]=D.useState(!1);D.useEffect(()=>{Y(!0)},[]);const X=G&&!c&&!u;D.useEffect(()=>{B&&h&&!c&&G&&L.current.pulsate()},[c,h,B,G]);function Z(ie,Ce,et=d){return rl(Ye=>(Ce&&Ce(Ye),!et&&L.current&&L.current[ie](Ye),!0))}const ne=Z("start",w),de=Z("stop",m),Ie=Z("stop",v),ve=Z("stop",T),Me=Z("stop",ie=>{B&&ie.preventDefault(),S&&S(ie)}),Se=Z("start",R),yt=Z("stop",C),Dt=Z("stop",O),Et=Z("stop",ie=>{H(ie),P.current===!1&&U(!1),f&&f(ie)},!1),fr=rl(ie=>{N.current||(N.current=ie.currentTarget),F(ie),P.current===!0&&(U(!0),b&&b(ie)),y&&y(ie)}),Pt=()=>{const ie=N.current;return a&&a!=="button"&&!(ie.tagName==="A"&&ie.href)},Pn=D.useRef(!1),En=rl(ie=>{h&&!Pn.current&&B&&L.current&&ie.key===" "&&(Pn.current=!0,L.current.stop(ie,()=>{L.current.start(ie)})),ie.target===ie.currentTarget&&Pt()&&ie.key===" "&&ie.preventDefault(),x&&x(ie),ie.target===ie.currentTarget&&Pt()&&ie.key==="Enter"&&!u&&(ie.preventDefault(),g&&g(ie))}),Sn=rl(ie=>{h&&ie.key===" "&&L.current&&B&&!ie.defaultPrevented&&(Pn.current=!1,L.current.stop(ie,()=>{L.current.pulsate(ie)})),k&&k(ie),g&&ie.target===ie.currentTarget&&Pt()&&ie.key===" "&&!ie.defaultPrevented&&g(ie)});let Qe=a;Qe==="button"&&(I.href||I.to)&&(Qe=p);const zn={};Qe==="button"?(zn.type=M===void 0?"button":M,zn.disabled=u):(!I.href&&!I.to&&(zn.role="button"),u&&(zn["aria-disabled"]=u));const q=Rr(n,W,N),ue=K({},r,{centerRipple:i,component:a,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:h,tabIndex:_,focusVisible:B}),me=ZZ(ue);return V.jsxs(JZ,K({as:Qe,className:je(me.root,l),ownerState:ue,onBlur:Et,onClick:g,onContextMenu:de,onFocus:fr,onKeyDown:En,onKeyUp:Sn,onMouseDown:ne,onMouseLeave:Me,onMouseUp:ve,onDragLeave:Ie,onTouchEnd:yt,onTouchMove:Dt,onTouchStart:Se,ref:q,tabIndex:u?-1:_,type:M},zn,I,{children:[s,X?V.jsx(KZ,K({ref:$,center:i},A)):null]}))});function QZ(t){return bn("MuiIconButton",t)}const eJ=xn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),tJ=["edge","children","className","color","disabled","disableFocusRipple","size"],nJ=t=>{const{classes:e,disabled:n,color:r,edge:o,size:i}=t,s={root:["root",n&&"disabled",r!=="default"&&`color${ft(r)}`,o&&`edge${ft(o)}`,`size${ft(i)}`]};return Nn(s,QZ,e)},rJ=wt(sw,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="default"&&e[`color${ft(n.color)}`],n.edge&&e[`edge${ft(n.edge)}`],e[`size${ft(n.size)}`]]}})(({theme:t,ownerState:e})=>K({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Or(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12}),({theme:t,ownerState:e})=>{var n;const r=(n=(t.vars||t).palette)==null?void 0:n[e.color];return K({},e.color==="inherit"&&{color:"inherit"},e.color!=="inherit"&&e.color!=="default"&&K({color:r==null?void 0:r.main},!e.disableRipple&&{"&:hover":K({},r&&{backgroundColor:t.vars?`rgba(${r.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Or(r.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),e.size==="small"&&{padding:5,fontSize:t.typography.pxToRem(18)},e.size==="large"&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${eJ.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})}),oJ=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:l="default",disabled:a=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=ze(r,tJ),h=K({},r,{edge:o,color:l,disabled:a,disableFocusRipple:u,size:c}),p=nJ(h);return V.jsx(rJ,K({className:je(p.root,s),centerRipple:!0,focusRipple:!u,disabled:a,ref:n,ownerState:h},d,{children:i}))});function iJ(t){return bn("MuiTypography",t)}xn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const sJ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],aJ=t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=t,l={root:["root",i,t.align!=="inherit"&&`align${ft(e)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Nn(l,iJ,s)},lJ=wt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],n.align!=="inherit"&&e[`align${ft(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(({theme:t,ownerState:e})=>K({margin:0},e.variant==="inherit"&&{font:"inherit"},e.variant!=="inherit"&&t.typography[e.variant],e.align!=="inherit"&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),vL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},cJ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},uJ=t=>cJ[t]||t,zh=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiTypography"}),o=uJ(r.color),i=Xx(K({},r,{color:o})),{align:s="inherit",className:l,component:a,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:h="body1",variantMapping:p=vL}=i,f=ze(i,sJ),g=K({},i,{align:s,color:o,className:l,component:a,gutterBottom:u,noWrap:c,paragraph:d,variant:h,variantMapping:p}),m=a||(d?"p":p[h]||vL[h])||"span",v=aJ(g);return V.jsx(lJ,K({as:m,ref:n,ownerState:g,className:je(v.root,l)},f))});function yL(t){return typeof t=="string"}function Fh(t,e,n){return t===void 0||yL(t)?e:K({},e,{ownerState:K({},e.ownerState,n)})}const dJ={disableDefaultClasses:!1},hJ=D.createContext(dJ);function pJ(t){const{disableDefaultClasses:e}=D.useContext(hJ);return n=>e?"":t(n)}function bL(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function fJ(t,e,n){return typeof t=="function"?t(e,n):t}function xL(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function gJ(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=t;if(!e){const p=je(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),f=K({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=K({},n,o,r);return p.length>0&&(g.className=p),Object.keys(f).length>0&&(g.style=f),{props:g,internalRef:void 0}}const s=bL(K({},o,r)),l=xL(r),a=xL(o),u=e(s),c=je(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=K({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=K({},u,n,a,l);return c.length>0&&(h.className=c),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:u.ref}}const mJ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Xi(t){var e;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=t,s=ze(t,mJ),l=i?{}:fJ(r,o),{props:a,internalRef:u}=gJ(K({},s,{externalSlotProps:l})),c=Rr(u,l==null?void 0:l.ref,(e=t.additionalProps)==null?void 0:e.ref);return Fh(n,K({},a,{ref:c}),o)}function vJ(t){const{badgeContent:e,invisible:n=!1,max:r=99,showZero:o=!1}=t,i=hI({badgeContent:e,max:r});let s=n;n===!1&&e===0&&!o&&(s=!0);const{badgeContent:l,max:a=r}=s?i:t,u=l&&Number(l)>a?`${a}+`:l;return{badgeContent:l,invisible:s,max:a,displayValue:u}}const yJ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function bJ(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function xJ(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=r=>t.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=e(`[name="${t.name}"]:checked`);return n||(n=e(`[name="${t.name}"]`)),n!==t}function wJ(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||xJ(t))}function kJ(t){const e=[],n=[];return Array.from(t.querySelectorAll(yJ)).forEach((r,o)=>{const i=bJ(r);i===-1||!wJ(r)||(i===0?e.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(e)}function EJ(){return!0}function SJ(t){const{children:e,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=kJ,isEnabled:s=EJ,open:l}=t,a=D.useRef(!1),u=D.useRef(null),c=D.useRef(null),d=D.useRef(null),h=D.useRef(null),p=D.useRef(!1),f=D.useRef(null),g=Rr(e.ref,f),m=D.useRef(null);D.useEffect(()=>{!l||!f.current||(p.current=!n)},[n,l]),D.useEffect(()=>{if(!l||!f.current)return;const b=_r(f.current);return f.current.contains(b.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),p.current&&f.current.focus()),()=>{o||(d.current&&d.current.focus&&(a.current=!0,d.current.focus()),d.current=null)}},[l]),D.useEffect(()=>{if(!l||!f.current)return;const b=_r(f.current),x=S=>{m.current=S,!(r||!s()||S.key!=="Tab")&&b.activeElement===f.current&&S.shiftKey&&(a.current=!0,c.current&&c.current.focus())},k=()=>{const S=f.current;if(S===null)return;if(!b.hasFocus()||!s()||a.current){a.current=!1;return}if(S.contains(b.activeElement)||r&&b.activeElement!==u.current&&b.activeElement!==c.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!p.current)return;let T=[];if((b.activeElement===u.current||b.activeElement===c.current)&&(T=i(f.current)),T.length>0){var C,O;const R=!!((C=m.current)!=null&&C.shiftKey&&((O=m.current)==null?void 0:O.key)==="Tab"),_=T[0],A=T[T.length-1];typeof _!="string"&&typeof A!="string"&&(R?A.focus():_.focus())}else S.focus()};b.addEventListener("focusin",k),b.addEventListener("keydown",x,!0);const w=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(w),b.removeEventListener("focusin",k),b.removeEventListener("keydown",x,!0)}},[n,r,o,s,l,i]);const v=b=>{d.current===null&&(d.current=b.relatedTarget),p.current=!0,h.current=b.target;const x=e.props.onFocus;x&&x(b)},y=b=>{d.current===null&&(d.current=b.relatedTarget),p.current=!0};return V.jsxs(D.Fragment,{children:[V.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),D.cloneElement(e,{ref:g,onFocus:v}),V.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}var Ir="top",ko="bottom",Eo="right",Lr="left",aw="auto",Bh=[Ir,ko,Eo,Lr],ou="start",Hh="end",CJ="clippingParents",wL="viewport",Uh="popper",TJ="reference",kL=Bh.reduce(function(t,e){return t.concat([e+"-"+ou,e+"-"+Hh])},[]),EL=[].concat(Bh,[aw]).reduce(function(t,e){return t.concat([e,e+"-"+ou,e+"-"+Hh])},[]),AJ="beforeRead",_J="read",RJ="afterRead",MJ="beforeMain",OJ="main",IJ="afterMain",LJ="beforeWrite",NJ="write",$J="afterWrite",DJ=[AJ,_J,RJ,MJ,OJ,IJ,LJ,NJ,$J];function fi(t){return t?(t.nodeName||"").toLowerCase():null}function to(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function cl(t){var e=to(t).Element;return t instanceof e||t instanceof Element}function So(t){var e=to(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function lw(t){if(typeof ShadowRoot>"u")return!1;var e=to(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function PJ(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!So(i)||!fi(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function zJ(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),l=s.reduce(function(a,u){return a[u]="",a},{});!So(o)||!fi(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const FJ={name:"applyStyles",enabled:!0,phase:"write",fn:PJ,effect:zJ,requires:["computeStyles"]};function gi(t){return t.split("-")[0]}var ul=Math.max,Ym=Math.min,iu=Math.round;function cw(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function SL(){return!/^((?!chrome|android).)*safari/i.test(cw())}function su(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&So(t)&&(o=t.offsetWidth>0&&iu(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&iu(r.height)/t.offsetHeight||1);var s=cl(t)?to(t):window,l=s.visualViewport,a=!SL()&&n,u=(r.left+(a&&l?l.offsetLeft:0))/o,c=(r.top+(a&&l?l.offsetTop:0))/i,d=r.width/o,h=r.height/i;return{width:d,height:h,top:c,right:u+d,bottom:c+h,left:u,x:u,y:c}}function uw(t){var e=su(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function CL(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&lw(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qi(t){return to(t).getComputedStyle(t)}function BJ(t){return["table","td","th"].indexOf(fi(t))>=0}function ea(t){return((cl(t)?t.ownerDocument:t.document)||window.document).documentElement}function Xm(t){return fi(t)==="html"?t:t.assignedSlot||t.parentNode||(lw(t)?t.host:null)||ea(t)}function TL(t){return!So(t)||qi(t).position==="fixed"?null:t.offsetParent}function HJ(t){var e=/firefox/i.test(cw()),n=/Trident/i.test(cw());if(n&&So(t)){var r=qi(t);if(r.position==="fixed")return null}var o=Xm(t);for(lw(o)&&(o=o.host);So(o)&&["html","body"].indexOf(fi(o))<0;){var i=qi(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Wh(t){for(var e=to(t),n=TL(t);n&&BJ(n)&&qi(n).position==="static";)n=TL(n);return n&&(fi(n)==="html"||fi(n)==="body"&&qi(n).position==="static")?e:n||HJ(t)||e}function dw(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Vh(t,e,n){return ul(t,Ym(e,n))}function UJ(t,e,n){var r=Vh(t,e,n);return r>n?n:r}function AL(){return{top:0,right:0,bottom:0,left:0}}function _L(t){return Object.assign({},AL(),t)}function RL(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var WJ=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,_L(typeof e!="number"?e:RL(e,Bh))};function VJ(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=gi(n.placement),a=dw(l),u=[Lr,Eo].indexOf(l)>=0,c=u?"height":"width";if(!(!i||!s)){var d=WJ(o.padding,n),h=uw(i),p=a==="y"?Ir:Lr,f=a==="y"?ko:Eo,g=n.rects.reference[c]+n.rects.reference[a]-s[a]-n.rects.popper[c],m=s[a]-n.rects.reference[a],v=Wh(i),y=v?a==="y"?v.clientHeight||0:v.clientWidth||0:0,b=g/2-m/2,x=d[p],k=y-h[c]-d[f],w=y/2-h[c]/2+b,S=Vh(x,w,k),T=a;n.modifiersData[r]=(e={},e[T]=S,e.centerOffset=S-w,e)}}function jJ(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||CL(e.elements.popper,o)&&(e.elements.arrow=o))}const GJ={name:"arrow",enabled:!0,phase:"main",fn:VJ,effect:jJ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function au(t){return t.split("-")[1]}var KJ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function YJ(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:iu(n*o)/o||0,y:iu(r*o)/o||0}}function ML(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,l=t.position,a=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,d=t.isFixed,h=s.x,p=h===void 0?0:h,f=s.y,g=f===void 0?0:f,m=typeof c=="function"?c({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=Lr,x=Ir,k=window;if(u){var w=Wh(n),S="clientHeight",T="clientWidth";if(w===to(n)&&(w=ea(n),qi(w).position!=="static"&&l==="absolute"&&(S="scrollHeight",T="scrollWidth")),w=w,o===Ir||(o===Lr||o===Eo)&&i===Hh){x=ko;var C=d&&w===k&&k.visualViewport?k.visualViewport.height:w[S];g-=C-r.height,g*=a?1:-1}if(o===Lr||(o===Ir||o===ko)&&i===Hh){b=Eo;var O=d&&w===k&&k.visualViewport?k.visualViewport.width:w[T];p-=O-r.width,p*=a?1:-1}}var R=Object.assign({position:l},u&&KJ),_=c===!0?YJ({x:p,y:g},to(n)):{x:p,y:g};if(p=_.x,g=_.y,a){var A;return Object.assign({},R,(A={},A[x]=y?"0":"",A[b]=v?"0":"",A.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",A))}return Object.assign({},R,(e={},e[x]=y?g+"px":"",e[b]=v?p+"px":"",e.transform="",e))}function XJ(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,a=l===void 0?!0:l,u={placement:gi(e.placement),variation:au(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ML(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:a})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ML(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const qJ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:XJ,data:{}};var qm={passive:!0};function ZJ(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,a=to(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,qm)}),l&&a.addEventListener("resize",n.update,qm),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,qm)}),l&&a.removeEventListener("resize",n.update,qm)}}const JJ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ZJ,data:{}};var QJ={left:"right",right:"left",bottom:"top",top:"bottom"};function Zm(t){return t.replace(/left|right|bottom|top/g,function(e){return QJ[e]})}var eQ={start:"end",end:"start"};function OL(t){return t.replace(/start|end/g,function(e){return eQ[e]})}function hw(t){var e=to(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function pw(t){return su(ea(t)).left+hw(t).scrollLeft}function tQ(t,e){var n=to(t),r=ea(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;var u=SL();(u||!u&&e==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l+pw(t),y:a}}function nQ(t){var e,n=ea(t),r=hw(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=ul(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ul(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+pw(t),a=-r.scrollTop;return qi(o||n).direction==="rtl"&&(l+=ul(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:a}}function fw(t){var e=qi(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function IL(t){return["html","body","#document"].indexOf(fi(t))>=0?t.ownerDocument.body:So(t)&&fw(t)?t:IL(Xm(t))}function jh(t,e){var n;e===void 0&&(e=[]);var r=IL(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=to(r),s=o?[i].concat(i.visualViewport||[],fw(r)?r:[]):r,l=e.concat(s);return o?l:l.concat(jh(Xm(s)))}function gw(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function rQ(t,e){var n=su(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function LL(t,e,n){return e===wL?gw(tQ(t,n)):cl(e)?rQ(e,n):gw(nQ(ea(t)))}function oQ(t){var e=jh(Xm(t)),n=["absolute","fixed"].indexOf(qi(t).position)>=0,r=n&&So(t)?Wh(t):t;return cl(r)?e.filter(function(o){return cl(o)&&CL(o,r)&&fi(o)!=="body"}):[]}function iQ(t,e,n,r){var o=e==="clippingParents"?oQ(t):[].concat(e),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(a,u){var c=LL(t,u,r);return a.top=ul(c.top,a.top),a.right=Ym(c.right,a.right),a.bottom=Ym(c.bottom,a.bottom),a.left=ul(c.left,a.left),a},LL(t,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function NL(t){var e=t.reference,n=t.element,r=t.placement,o=r?gi(r):null,i=r?au(r):null,s=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,a;switch(o){case Ir:a={x:s,y:e.y-n.height};break;case ko:a={x:s,y:e.y+e.height};break;case Eo:a={x:e.x+e.width,y:l};break;case Lr:a={x:e.x-n.width,y:l};break;default:a={x:e.x,y:e.y}}var u=o?dw(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case ou:a[u]=a[u]-(e[c]/2-n[c]/2);break;case Hh:a[u]=a[u]+(e[c]/2-n[c]/2);break}}return a}function Gh(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,s=i===void 0?t.strategy:i,l=n.boundary,a=l===void 0?CJ:l,u=n.rootBoundary,c=u===void 0?wL:u,d=n.elementContext,h=d===void 0?Uh:d,p=n.altBoundary,f=p===void 0?!1:p,g=n.padding,m=g===void 0?0:g,v=_L(typeof m!="number"?m:RL(m,Bh)),y=h===Uh?TJ:Uh,b=t.rects.popper,x=t.elements[f?y:h],k=iQ(cl(x)?x:x.contextElement||ea(t.elements.popper),a,c,s),w=su(t.elements.reference),S=NL({reference:w,element:b,strategy:"absolute",placement:o}),T=gw(Object.assign({},b,S)),C=h===Uh?T:w,O={top:k.top-C.top+v.top,bottom:C.bottom-k.bottom+v.bottom,left:k.left-C.left+v.left,right:C.right-k.right+v.right},R=t.modifiersData.offset;if(h===Uh&&R){var _=R[o];Object.keys(O).forEach(function(A){var E=[Eo,ko].indexOf(A)>=0?1:-1,M=[Ir,ko].indexOf(A)>=0?"y":"x";O[A]+=_[M]*E})}return O}function sQ(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?EL:a,c=au(r),d=c?l?kL:kL.filter(function(f){return au(f)===c}):Bh,h=d.filter(function(f){return u.indexOf(f)>=0});h.length===0&&(h=d);var p=h.reduce(function(f,g){return f[g]=Gh(t,{placement:g,boundary:o,rootBoundary:i,padding:s})[gi(g)],f},{});return Object.keys(p).sort(function(f,g){return p[f]-p[g]})}function aQ(t){if(gi(t)===aw)return[];var e=Zm(t);return[OL(t),e,OL(e)]}function lQ(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,a=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=p===void 0?!0:p,g=n.allowedAutoPlacements,m=e.options.placement,v=gi(m),y=v===m,b=a||(y||!f?[Zm(m)]:aQ(m)),x=[m].concat(b).reduce(function(B,U){return B.concat(gi(U)===aw?sQ(e,{placement:U,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:g}):U)},[]),k=e.rects.reference,w=e.rects.popper,S=new Map,T=!0,C=x[0],O=0;O=0,M=E?"width":"height",I=Gh(e,{placement:R,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),N=E?A?Eo:Lr:A?ko:Ir;k[M]>w[M]&&(N=Zm(N));var L=Zm(N),$=[];if(i&&$.push(I[_]<=0),l&&$.push(I[N]<=0,I[L]<=0),$.every(function(B){return B})){C=R,T=!1;break}S.set(R,$)}if(T)for(var P=f?3:1,F=function(U){var G=x.find(function(Y){var X=S.get(Y);if(X)return X.slice(0,U).every(function(Z){return Z})});if(G)return C=G,"break"},H=P;H>0;H--){var W=F(H);if(W==="break")break}e.placement!==C&&(e.modifiersData[r]._skip=!0,e.placement=C,e.reset=!0)}}const cQ={name:"flip",enabled:!0,phase:"main",fn:lQ,requiresIfExists:["offset"],data:{_skip:!1}};function $L(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function DL(t){return[Ir,Eo,ko,Lr].some(function(e){return t[e]>=0})}function uQ(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=Gh(e,{elementContext:"reference"}),l=Gh(e,{altBoundary:!0}),a=$L(s,r),u=$L(l,o,i),c=DL(a),d=DL(u);e.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const dQ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:uQ};function hQ(t,e,n){var r=gi(t),o=[Lr,Ir].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[Lr,Eo].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function pQ(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=EL.reduce(function(c,d){return c[d]=hQ(d,e.rects,i),c},{}),l=s[e.placement],a=l.x,u=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}const fQ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pQ};function gQ(t){var e=t.state,n=t.name;e.modifiersData[n]=NL({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const mQ={name:"popperOffsets",enabled:!0,phase:"read",fn:gQ,data:{}};function vQ(t){return t==="x"?"y":"x"}function yQ(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,a=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,p=h===void 0?!0:h,f=n.tetherOffset,g=f===void 0?0:f,m=Gh(e,{boundary:a,rootBoundary:u,padding:d,altBoundary:c}),v=gi(e.placement),y=au(e.placement),b=!y,x=dw(v),k=vQ(x),w=e.modifiersData.popperOffsets,S=e.rects.reference,T=e.rects.popper,C=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,O=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),R=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,_={x:0,y:0};if(w){if(i){var A,E=x==="y"?Ir:Lr,M=x==="y"?ko:Eo,I=x==="y"?"height":"width",N=w[x],L=N+m[E],$=N-m[M],P=p?-T[I]/2:0,F=y===ou?S[I]:T[I],H=y===ou?-T[I]:-S[I],W=e.elements.arrow,B=p&&W?uw(W):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:AL(),G=U[E],Y=U[M],X=Vh(0,S[I],B[I]),Z=b?S[I]/2-P-X-G-O.mainAxis:F-X-G-O.mainAxis,ne=b?-S[I]/2+P+X+Y+O.mainAxis:H+X+Y+O.mainAxis,de=e.elements.arrow&&Wh(e.elements.arrow),Ie=de?x==="y"?de.clientTop||0:de.clientLeft||0:0,ve=(A=R==null?void 0:R[x])!=null?A:0,Me=N+Z-ve-Ie,Se=N+ne-ve,yt=Vh(p?Ym(L,Me):L,N,p?ul($,Se):$);w[x]=yt,_[x]=yt-N}if(l){var Dt,Et=x==="x"?Ir:Lr,fr=x==="x"?ko:Eo,Pt=w[k],Pn=k==="y"?"height":"width",En=Pt+m[Et],Sn=Pt-m[fr],Qe=[Ir,Lr].indexOf(v)!==-1,zn=(Dt=R==null?void 0:R[k])!=null?Dt:0,q=Qe?En:Pt-S[Pn]-T[Pn]-zn+O.altAxis,ue=Qe?Pt+S[Pn]+T[Pn]-zn-O.altAxis:Sn,me=p&&Qe?UJ(q,Pt,ue):Vh(p?q:En,Pt,p?ue:Sn);w[k]=me,_[k]=me-Pt}e.modifiersData[r]=_}}const bQ={name:"preventOverflow",enabled:!0,phase:"main",fn:yQ,requiresIfExists:["offset"]};function xQ(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function wQ(t){return t===to(t)||!So(t)?hw(t):xQ(t)}function kQ(t){var e=t.getBoundingClientRect(),n=iu(e.width)/t.offsetWidth||1,r=iu(e.height)/t.offsetHeight||1;return n!==1||r!==1}function EQ(t,e,n){n===void 0&&(n=!1);var r=So(e),o=So(e)&&kQ(e),i=ea(e),s=su(t,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((fi(e)!=="body"||fw(i))&&(l=wQ(e)),So(e)?(a=su(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=pw(i))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function SQ(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var a=e.get(l);a&&o(a)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function CQ(t){var e=SQ(t);return DJ.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function TQ(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function AQ(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var PL={placement:"bottom",modifiers:[],strategy:"absolute"};function zL(){for(var t=arguments.length,e=new Array(t),n=0;n{i||l(OQ(o)||document.body)},[o,i]),nl(()=>{if(s&&!i)return Ax(n,s),()=>{Ax(n,null)}},[n,s,i]),i){if(D.isValidElement(r)){const u={ref:a};return D.cloneElement(r,u)}return V.jsx(D.Fragment,{children:r})}return V.jsx(D.Fragment,{children:s&&mh.createPortal(r,s)})});function IQ(t){return bn("MuiPopper",t)}xn("MuiPopper",["root"]);const LQ=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],NQ=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function $Q(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function mw(t){return typeof t=="function"?t():t}function DQ(t){return t.nodeType!==void 0}const PQ=()=>Nn({root:["root"]},pJ(IQ)),zQ={},FQ=D.forwardRef(function(e,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:l,modifiers:a,open:u,placement:c,popperOptions:d,popperRef:h,slotProps:p={},slots:f={},TransitionProps:g}=e,m=ze(e,LQ),v=D.useRef(null),y=Rr(v,n),b=D.useRef(null),x=Rr(b,h),k=D.useRef(x);nl(()=>{k.current=x},[x]),D.useImperativeHandle(h,()=>b.current,[]);const w=$Q(c,s),[S,T]=D.useState(w),[C,O]=D.useState(mw(o));D.useEffect(()=>{b.current&&b.current.forceUpdate()}),D.useEffect(()=>{o&&O(mw(o))},[o]),nl(()=>{if(!C||!u)return;const M=L=>{T(L.placement)};let I=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{M(L)}}];a!=null&&(I=I.concat(a)),d&&d.modifiers!=null&&(I=I.concat(d.modifiers));const N=MQ(C,v.current,K({placement:w},d,{modifiers:I}));return k.current(N),()=>{N.destroy(),k.current(null)}},[C,l,a,u,d,w]);const R={placement:S};g!==null&&(R.TransitionProps=g);const _=PQ(),A=(r=f.root)!=null?r:"div",E=Xi({elementType:A,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:_.root});return V.jsx(A,K({},E,{children:typeof i=="function"?i(R):i}))}),BQ=D.forwardRef(function(e,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:l=!1,keepMounted:a=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:h=zQ,popperRef:p,style:f,transition:g=!1,slotProps:m={},slots:v={}}=e,y=ze(e,NQ),[b,x]=D.useState(!0),k=()=>{x(!1)},w=()=>{x(!0)};if(!a&&!c&&(!g||b))return null;let S;if(i)S=i;else if(r){const O=mw(r);S=O&&DQ(O)?_r(O).body:_r(null).body}const T=!c&&a&&(!g||b)?"none":void 0,C=g?{in:c,onEnter:k,onExited:w}:void 0;return V.jsx(FL,{disablePortal:l,container:S,children:V.jsx(FQ,K({anchorEl:r,direction:s,disablePortal:l,modifiers:u,ref:n,open:g?!b:c,placement:d,popperOptions:h,popperRef:p,slotProps:m,slots:v},y,{style:K({position:"fixed",top:0,left:0,display:T},f),TransitionProps:C,children:o}))})});function HQ(t){const e=_r(t);return e.body===t?_h(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Kh(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function BL(t){return parseInt(_h(t).getComputedStyle(t).paddingRight,10)||0}function UQ(t){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(t.tagName)!==-1,r=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return n||r}function HL(t,e,n,r,o){const i=[e,n,...r];[].forEach.call(t.children,s=>{const l=i.indexOf(s)===-1,a=!UQ(s);l&&a&&Kh(s,o)})}function vw(t,e){let n=-1;return t.some((r,o)=>e(r)?(n=o,!0):!1),n}function WQ(t,e){const n=[],r=t.container;if(!e.disableScrollLock){if(HQ(r)){const s=dI(_r(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${BL(r)+s}px`;const l=_r(r).querySelectorAll(".mui-fixed");[].forEach.call(l,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${BL(a)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=_r(r).body;else{const s=r.parentElement,l=_h(r);i=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:l})=>{i?s.style.setProperty(l,i):s.style.removeProperty(l)})}}function VQ(t){const e=[];return[].forEach.call(t.children,n=>{n.getAttribute("aria-hidden")==="true"&&e.push(n)}),e}class jQ{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,n){let r=this.modals.indexOf(e);if(r!==-1)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Kh(e.modalRef,!1);const o=VQ(n);HL(n,e.mount,e.modalRef,o,!0);const i=vw(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(e),r):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblings:o}),r)}mount(e,n){const r=vw(this.containers,i=>i.modals.indexOf(e)!==-1),o=this.containers[r];o.restore||(o.restore=WQ(o,n))}remove(e,n=!0){const r=this.modals.indexOf(e);if(r===-1)return r;const o=vw(this.containers,s=>s.modals.indexOf(e)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Kh(e.modalRef,n),HL(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Kh(s.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}function GQ(t){return typeof t=="function"?t():t}function KQ(t){return t?t.props.hasOwnProperty("in"):!1}const YQ=new jQ;function XQ(t){const{container:e,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=YQ,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:l,children:a,onClose:u,open:c,rootRef:d}=t,h=D.useRef({}),p=D.useRef(null),f=D.useRef(null),g=Rr(f,d),[m,v]=D.useState(!c),y=KQ(a);let b=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(b=!1);const x=()=>_r(p.current),k=()=>(h.current.modalRef=f.current,h.current.mount=p.current,h.current),w=()=>{o.mount(k(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},S=rl(()=>{const I=GQ(e)||x().body;o.add(k(),I),f.current&&w()}),T=D.useCallback(()=>o.isTopModal(k()),[o]),C=rl(I=>{p.current=I,I&&(c&&T()?w():f.current&&Kh(f.current,b))}),O=D.useCallback(()=>{o.remove(k(),b)},[b,o]);D.useEffect(()=>()=>{O()},[O]),D.useEffect(()=>{c?S():(!y||!i)&&O()},[c,O,y,i,S]);const R=I=>N=>{var L;(L=I.onKeyDown)==null||L.call(I,N),!(N.key!=="Escape"||!T())&&(n||(N.stopPropagation(),u&&u(N,"escapeKeyDown")))},_=I=>N=>{var L;(L=I.onClick)==null||L.call(I,N),N.target===N.currentTarget&&u&&u(N,"backdropClick")};return{getRootProps:(I={})=>{const N=bL(t);delete N.onTransitionEnter,delete N.onTransitionExited;const L=K({},N,I);return K({role:"presentation"},L,{onKeyDown:R(L),ref:g})},getBackdropProps:(I={})=>{const N=I;return K({"aria-hidden":!0},N,{onClick:_(N),open:c})},getTransitionProps:()=>{const I=()=>{v(!1),s&&s()},N=()=>{v(!0),l&&l(),i&&O()};return{onEnter:sI(I,a==null?void 0:a.props.onEnter),onExited:sI(N,a==null?void 0:a.props.onExited)}},rootRef:g,portalRef:C,isTopModal:T,exited:m,hasTransition:y}}const qQ=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ZQ=wt(BQ,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),yw=D.forwardRef(function(e,n){var r;const o=Kx(),i=kn({props:e,name:"MuiPopper"}),{anchorEl:s,component:l,components:a,componentsProps:u,container:c,disablePortal:d,keepMounted:h,modifiers:p,open:f,placement:g,popperOptions:m,popperRef:v,transition:y,slots:b,slotProps:x}=i,k=ze(i,qQ),w=(r=b==null?void 0:b.root)!=null?r:a==null?void 0:a.Root,S=K({anchorEl:s,container:c,disablePortal:d,keepMounted:h,modifiers:p,open:f,placement:g,popperOptions:m,popperRef:v,transition:y},k);return V.jsx(ZQ,K({as:l,direction:o==null?void 0:o.direction,slots:{root:w},slotProps:x??u},S,{ref:n}))}),JQ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],QQ={entering:{opacity:1},entered:{opacity:1}},eee=D.forwardRef(function(e,n){const r=Vm(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,easing:a,in:u,onEnter:c,onEntered:d,onEntering:h,onExit:p,onExited:f,onExiting:g,style:m,timeout:v=o,TransitionComponent:y=dL}=e,b=ze(e,JQ),x=D.useRef(null),k=Rr(x,l.ref,n),w=E=>M=>{if(E){const I=x.current;M===void 0?E(I):E(I,M)}},S=w(h),T=w((E,M)=>{hL(E);const I=Gm({style:m,timeout:v,easing:a},{mode:"enter"});E.style.webkitTransition=r.transitions.create("opacity",I),E.style.transition=r.transitions.create("opacity",I),c&&c(E,M)}),C=w(d),O=w(g),R=w(E=>{const M=Gm({style:m,timeout:v,easing:a},{mode:"exit"});E.style.webkitTransition=r.transitions.create("opacity",M),E.style.transition=r.transitions.create("opacity",M),p&&p(E)}),_=w(f),A=E=>{i&&i(x.current,E)};return V.jsx(y,K({appear:s,in:u,nodeRef:x,onEnter:T,onEntered:C,onEntering:S,onExit:R,onExited:_,onExiting:O,addEndListener:A,timeout:v},b,{children:(E,M)=>D.cloneElement(l,K({style:K({opacity:0,visibility:E==="exited"&&!u?"hidden":void 0},QQ[E],m,l.props.style),ref:k},M))}))});function tee(t){return bn("MuiBackdrop",t)}xn("MuiBackdrop",["root","invisible"]);const nee=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ree=t=>{const{classes:e,invisible:n}=t;return Nn({root:["root",n&&"invisible"]},tee,e)},oee=wt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.invisible]}})(({ownerState:t})=>K({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})),iee=D.forwardRef(function(e,n){var r,o,i;const s=kn({props:e,name:"MuiBackdrop"}),{children:l,className:a,component:u="div",components:c={},componentsProps:d={},invisible:h=!1,open:p,slotProps:f={},slots:g={},TransitionComponent:m=eee,transitionDuration:v}=s,y=ze(s,nee),b=K({},s,{component:u,invisible:h}),x=ree(b),k=(r=f.root)!=null?r:d.root;return V.jsx(m,K({in:p,timeout:v},y,{children:V.jsx(oee,K({"aria-hidden":!0},k,{as:(o=(i=g.root)!=null?i:c.Root)!=null?o:u,className:je(x.root,a,k==null?void 0:k.className),ownerState:K({},b,k==null?void 0:k.ownerState),classes:x,ref:n,children:l}))}))});function see(t){return bn("MuiBadge",t)}const ta=xn("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),aee=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],bw=10,xw=4,lee=t=>{const{color:e,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=t,l={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${ft(n.vertical)}${ft(n.horizontal)}`,`anchorOrigin${ft(n.vertical)}${ft(n.horizontal)}${ft(o)}`,`overlap${ft(o)}`,e!=="default"&&`color${ft(e)}`]};return Nn(l,see,s)},cee=wt("span",{name:"MuiBadge",slot:"Root",overridesResolver:(t,e)=>e.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),uee=wt("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.badge,e[n.variant],e[`anchorOrigin${ft(n.anchorOrigin.vertical)}${ft(n.anchorOrigin.horizontal)}${ft(n.overlap)}`],n.color!=="default"&&e[`color${ft(n.color)}`],n.invisible&&e.invisible]}})(({theme:t,ownerState:e})=>K({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:bw*2,lineHeight:1,padding:"0 6px",height:bw*2,borderRadius:bw,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen})},e.color!=="default"&&{backgroundColor:(t.vars||t).palette[e.color].main,color:(t.vars||t).palette[e.color].contrastText},e.variant==="dot"&&{borderRadius:xw,height:xw*2,minWidth:xw*2,padding:0},e.anchorOrigin.vertical==="top"&&e.anchorOrigin.horizontal==="right"&&e.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ta.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},e.anchorOrigin.vertical==="bottom"&&e.anchorOrigin.horizontal==="right"&&e.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ta.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},e.anchorOrigin.vertical==="top"&&e.anchorOrigin.horizontal==="left"&&e.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ta.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},e.anchorOrigin.vertical==="bottom"&&e.anchorOrigin.horizontal==="left"&&e.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ta.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},e.anchorOrigin.vertical==="top"&&e.anchorOrigin.horizontal==="right"&&e.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ta.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},e.anchorOrigin.vertical==="bottom"&&e.anchorOrigin.horizontal==="right"&&e.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ta.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},e.anchorOrigin.vertical==="top"&&e.anchorOrigin.horizontal==="left"&&e.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ta.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},e.anchorOrigin.vertical==="bottom"&&e.anchorOrigin.horizontal==="left"&&e.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ta.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},e.invisible&&{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})})),dee=D.forwardRef(function(e,n){var r,o,i,s,l,a;const u=kn({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:h,components:p={},componentsProps:f={},children:g,overlap:m="rectangular",color:v="default",invisible:y=!1,max:b=99,badgeContent:x,slots:k,slotProps:w,showZero:S=!1,variant:T="standard"}=u,C=ze(u,aee),{badgeContent:O,invisible:R,max:_,displayValue:A}=vJ({max:b,invisible:y,badgeContent:x,showZero:S}),E=hI({anchorOrigin:c,color:v,overlap:m,variant:T,badgeContent:x}),M=R||O==null&&T!=="dot",{color:I=v,overlap:N=m,anchorOrigin:L=c,variant:$=T}=M?E:u,P=$!=="dot"?A:void 0,F=K({},u,{badgeContent:O,invisible:M,max:_,displayValue:P,showZero:S,anchorOrigin:L,color:I,overlap:N,variant:$}),H=lee(F),W=(r=(o=k==null?void 0:k.root)!=null?o:p.Root)!=null?r:cee,B=(i=(s=k==null?void 0:k.badge)!=null?s:p.Badge)!=null?i:uee,U=(l=w==null?void 0:w.root)!=null?l:f.root,G=(a=w==null?void 0:w.badge)!=null?a:f.badge,Y=Xi({elementType:W,externalSlotProps:U,externalForwardedProps:C,additionalProps:{ref:n,as:h},ownerState:F,className:je(U==null?void 0:U.className,H.root,d)}),X=Xi({elementType:B,externalSlotProps:G,ownerState:F,className:je(H.badge,G==null?void 0:G.className)});return V.jsxs(W,K({},Y,{children:[g,V.jsx(B,K({},X,{children:P}))]}))}),hee=Jx(),UL=Cq({themeId:Zc,defaultTheme:hee,defaultClassName:"MuiBox-root",generateClassName:gI.generate});function pee(t){return bn("MuiModal",t)}xn("MuiModal",["root","hidden","backdrop"]);const fee=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],gee=t=>{const{open:e,exited:n,classes:r}=t;return Nn({root:["root",!e&&n&&"hidden"],backdrop:["backdrop"]},pee,r)},mee=wt("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.open&&n.exited&&e.hidden]}})(({theme:t,ownerState:e})=>K({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&e.exited&&{visibility:"hidden"})),vee=wt(iee,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),yee=D.forwardRef(function(e,n){var r,o,i,s,l,a;const u=kn({name:"MuiModal",props:e}),{BackdropComponent:c=vee,BackdropProps:d,className:h,closeAfterTransition:p=!1,children:f,container:g,component:m,components:v={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:k=!1,disablePortal:w=!1,disableRestoreFocus:S=!1,disableScrollLock:T=!1,hideBackdrop:C=!1,keepMounted:O=!1,onBackdropClick:R,open:_,slotProps:A,slots:E}=u,M=ze(u,fee),I=K({},u,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:k,disablePortal:w,disableRestoreFocus:S,disableScrollLock:T,hideBackdrop:C,keepMounted:O}),{getRootProps:N,getBackdropProps:L,getTransitionProps:$,portalRef:P,isTopModal:F,exited:H,hasTransition:W}=XQ(K({},I,{rootRef:n})),B=K({},I,{exited:H}),U=gee(B),G={};if(f.props.tabIndex===void 0&&(G.tabIndex="-1"),W){const{onEnter:ve,onExited:Me}=$();G.onEnter=ve,G.onExited=Me}const Y=(r=(o=E==null?void 0:E.root)!=null?o:v.Root)!=null?r:mee,X=(i=(s=E==null?void 0:E.backdrop)!=null?s:v.Backdrop)!=null?i:c,Z=(l=A==null?void 0:A.root)!=null?l:y.root,ne=(a=A==null?void 0:A.backdrop)!=null?a:y.backdrop,de=Xi({elementType:Y,externalSlotProps:Z,externalForwardedProps:M,getSlotProps:N,additionalProps:{ref:n,as:m},ownerState:B,className:je(h,Z==null?void 0:Z.className,U==null?void 0:U.root,!B.open&&B.exited&&(U==null?void 0:U.hidden))}),Ie=Xi({elementType:X,externalSlotProps:ne,additionalProps:d,getSlotProps:ve=>L(K({},ve,{onClick:Me=>{R&&R(Me),ve!=null&&ve.onClick&&ve.onClick(Me)}})),className:je(ne==null?void 0:ne.className,d==null?void 0:d.className,U==null?void 0:U.backdrop),ownerState:B});return!O&&!_&&(!W||H)?null:V.jsx(FL,{ref:P,container:g,disablePortal:w,children:V.jsxs(Y,K({},de,{children:[!C&&c?V.jsx(X,K({},Ie)):null,V.jsx(SJ,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:F,open:_,children:D.cloneElement(f,G)})]}))})}),WL=xn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),bee=eZ({createStyledComponent:wt("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>kn({props:t,name:"MuiStack"})}),xee=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ww(t){return`scale(${t}, ${t**2})`}const wee={entering:{opacity:1,transform:ww(1)},entered:{opacity:1,transform:"none"}},kw=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),VL=D.forwardRef(function(e,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:l,onEnter:a,onEntered:u,onEntering:c,onExit:d,onExited:h,onExiting:p,style:f,timeout:g="auto",TransitionComponent:m=dL}=e,v=ze(e,xee),y=D.useRef(),b=D.useRef(),x=Vm(),k=D.useRef(null),w=Rr(k,i.ref,n),S=M=>I=>{if(M){const N=k.current;I===void 0?M(N):M(N,I)}},T=S(c),C=S((M,I)=>{hL(M);const{duration:N,delay:L,easing:$}=Gm({style:f,timeout:g,easing:s},{mode:"enter"});let P;g==="auto"?(P=x.transitions.getAutoHeightDuration(M.clientHeight),b.current=P):P=N,M.style.transition=[x.transitions.create("opacity",{duration:P,delay:L}),x.transitions.create("transform",{duration:kw?P:P*.666,delay:L,easing:$})].join(","),a&&a(M,I)}),O=S(u),R=S(p),_=S(M=>{const{duration:I,delay:N,easing:L}=Gm({style:f,timeout:g,easing:s},{mode:"exit"});let $;g==="auto"?($=x.transitions.getAutoHeightDuration(M.clientHeight),b.current=$):$=I,M.style.transition=[x.transitions.create("opacity",{duration:$,delay:N}),x.transitions.create("transform",{duration:kw?$:$*.666,delay:kw?N:N||$*.333,easing:L})].join(","),M.style.opacity=0,M.style.transform=ww(.75),d&&d(M)}),A=S(h),E=M=>{g==="auto"&&(y.current=setTimeout(M,b.current||0)),r&&r(k.current,M)};return D.useEffect(()=>()=>{clearTimeout(y.current)},[]),V.jsx(m,K({appear:o,in:l,nodeRef:k,onEnter:C,onEntered:O,onEntering:T,onExit:_,onExited:A,onExiting:R,addEndListener:E,timeout:g==="auto"?null:g},v,{children:(M,I)=>D.cloneElement(i,K({style:K({opacity:0,transform:ww(.75),visibility:M==="exited"&&!l?"hidden":void 0},wee[M],f,i.props.style),ref:w},I))}))});VL.muiSupportAuto=!0;const Ew=VL,Yh=D.createContext({});function kee(t){return bn("MuiList",t)}xn("MuiList",["root","padding","dense","subheader"]);const Eee=["children","className","component","dense","disablePadding","subheader"],See=t=>{const{classes:e,disablePadding:n,dense:r,subheader:o}=t;return Nn({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},kee,e)},Cee=wt("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})(({ownerState:t})=>K({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})),Tee=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:l=!1,disablePadding:a=!1,subheader:u}=r,c=ze(r,Eee),d=D.useMemo(()=>({dense:l}),[l]),h=K({},r,{component:s,dense:l,disablePadding:a}),p=See(h);return V.jsx(Yh.Provider,{value:d,children:V.jsxs(Cee,K({as:s,className:je(p.root,i),ref:n,ownerState:h},c,{children:[u,o]}))})});function Aee(t){return bn("MuiListItemIcon",t)}const jL=xn("MuiListItemIcon",["root","alignItemsFlexStart"]),_ee=["className"],Ree=t=>{const{alignItems:e,classes:n}=t;return Nn({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},Aee,n)},Mee=wt("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(({theme:t,ownerState:e})=>K({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},e.alignItems==="flex-start"&&{marginTop:8})),Oee=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiListItemIcon"}),{className:o}=r,i=ze(r,_ee),s=D.useContext(Yh),l=K({},r,{alignItems:s.alignItems}),a=Ree(l);return V.jsx(Mee,K({className:je(a.root,o),ownerState:l,ref:n},i))});function Iee(t){return bn("MuiListItemText",t)}const Jm=xn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Lee=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Nee=t=>{const{classes:e,inset:n,primary:r,secondary:o,dense:i}=t;return Nn({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Iee,e)},$ee=wt("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${Jm.primary}`]:e.primary},{[`& .${Jm.secondary}`]:e.secondary},e.root,n.inset&&e.inset,n.primary&&n.secondary&&e.multiline,n.dense&&e.dense]}})(({ownerState:t})=>K({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})),Dee=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:l=!1,primary:a,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,h=ze(r,Lee),{dense:p}=D.useContext(Yh);let f=a??o,g=c;const m=K({},r,{disableTypography:s,inset:l,primary:!!f,secondary:!!g,dense:p}),v=Nee(m);return f!=null&&f.type!==zh&&!s&&(f=V.jsx(zh,K({variant:p?"body2":"body1",className:v.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:f}))),g!=null&&g.type!==zh&&!s&&(g=V.jsx(zh,K({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},d,{children:g}))),V.jsxs($ee,K({className:je(v.root,i),ownerState:m,ref:n},h,{children:[f,g]}))}),Pee=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Sw(t,e,n){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:n?null:t.firstChild}function GL(t,e,n){return t===e?n?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:n?null:t.lastChild}function KL(t,e){if(e===void 0)return!0;let n=t.innerText;return n===void 0&&(n=t.textContent),n=n.trim().toLowerCase(),n.length===0?!1:e.repeating?n[0]===e.keys[0]:n.indexOf(e.keys.join(""))===0}function Xh(t,e,n,r,o,i){let s=!1,l=o(t,e,e?n:!1);for(;l;){if(l===t.firstChild){if(s)return!1;s=!0}const a=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!KL(l,i)||a)l=o(t,l,n);else return l.focus(),!0}return!1}const zee=D.forwardRef(function(e,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:l,disabledItemsFocusable:a=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,h=ze(e,Pee),p=D.useRef(null),f=D.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});nl(()=>{o&&p.current.focus()},[o]),D.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(b,x)=>{const k=!p.current.style.width;if(b.clientHeight{const x=p.current,k=b.key,w=_r(x).activeElement;if(k==="ArrowDown")b.preventDefault(),Xh(x,w,u,a,Sw);else if(k==="ArrowUp")b.preventDefault(),Xh(x,w,u,a,GL);else if(k==="Home")b.preventDefault(),Xh(x,null,u,a,Sw);else if(k==="End")b.preventDefault(),Xh(x,null,u,a,GL);else if(k.length===1){const S=f.current,T=k.toLowerCase(),C=performance.now();S.keys.length>0&&(C-S.lastTime>500?(S.keys=[],S.repeating=!0,S.previousKeyMatched=!0):S.repeating&&T!==S.keys[0]&&(S.repeating=!1)),S.lastTime=C,S.keys.push(T);const O=w&&!S.repeating&&KL(w,S);S.previousKeyMatched&&(O||Xh(x,w,!1,a,Sw,S))?b.preventDefault():S.previousKeyMatched=!1}c&&c(b)},m=Rr(p,n);let v=-1;D.Children.forEach(s,(b,x)=>{if(!D.isValidElement(b)){v===x&&(v+=1,v>=s.length&&(v=-1));return}b.props.disabled||(d==="selectedMenu"&&b.props.selected||v===-1)&&(v=x),v===x&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(v+=1,v>=s.length&&(v=-1))});const y=D.Children.map(s,(b,x)=>{if(x===v){const k={};return i&&(k.autoFocus=!0),b.props.tabIndex===void 0&&d==="selectedMenu"&&(k.tabIndex=0),D.cloneElement(b,k)}return b});return V.jsx(Tee,K({role:"menu",ref:m,className:l,onKeyDown:g,tabIndex:o?0:-1},h,{children:y}))});function Fee(t){return bn("MuiPopover",t)}xn("MuiPopover",["root","paper"]);const Bee=["onEntering"],Hee=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Uee=["slotProps"];function YL(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.height/2:e==="bottom"&&(n=t.height),n}function XL(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.width/2:e==="right"&&(n=t.width),n}function qL(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Cw(t){return typeof t=="function"?t():t}const Wee=t=>{const{classes:e}=t;return Nn({root:["root"],paper:["paper"]},Fee,e)},Vee=wt(yee,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),ZL=wt(zZ,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),jee=D.forwardRef(function(e,n){var r,o,i;const s=kn({props:e,name:"MuiPopover"}),{action:l,anchorEl:a,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:h,className:p,container:f,elevation:g=8,marginThreshold:m=16,open:v,PaperProps:y={},slots:b,slotProps:x,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:w=Ew,transitionDuration:S="auto",TransitionProps:{onEntering:T}={},disableScrollLock:C=!1}=s,O=ze(s.TransitionProps,Bee),R=ze(s,Hee),_=(r=x==null?void 0:x.paper)!=null?r:y,A=D.useRef(),E=Rr(A,_.ref),M=K({},s,{anchorOrigin:u,anchorReference:d,elevation:g,marginThreshold:m,externalPaperSlotProps:_,transformOrigin:k,TransitionComponent:w,transitionDuration:S,TransitionProps:O}),I=Wee(M),N=D.useCallback(()=>{if(d==="anchorPosition")return c;const ve=Cw(a),Se=(ve&&ve.nodeType===1?ve:_r(A.current).body).getBoundingClientRect();return{top:Se.top+YL(Se,u.vertical),left:Se.left+XL(Se,u.horizontal)}},[a,u.horizontal,u.vertical,c,d]),L=D.useCallback(ve=>({vertical:YL(ve,k.vertical),horizontal:XL(ve,k.horizontal)}),[k.horizontal,k.vertical]),$=D.useCallback(ve=>{const Me={width:ve.offsetWidth,height:ve.offsetHeight},Se=L(Me);if(d==="none")return{top:null,left:null,transformOrigin:qL(Se)};const yt=N();let Dt=yt.top-Se.vertical,Et=yt.left-Se.horizontal;const fr=Dt+Me.height,Pt=Et+Me.width,Pn=_h(Cw(a)),En=Pn.innerHeight-m,Sn=Pn.innerWidth-m;if(m!==null&&DtEn){const Qe=fr-En;Dt-=Qe,Se.vertical+=Qe}if(m!==null&&EtSn){const Qe=Pt-Sn;Et-=Qe,Se.horizontal+=Qe}return{top:`${Math.round(Dt)}px`,left:`${Math.round(Et)}px`,transformOrigin:qL(Se)}},[a,d,N,L,m]),[P,F]=D.useState(v),H=D.useCallback(()=>{const ve=A.current;if(!ve)return;const Me=$(ve);Me.top!==null&&(ve.style.top=Me.top),Me.left!==null&&(ve.style.left=Me.left),ve.style.transformOrigin=Me.transformOrigin,F(!0)},[$]);D.useEffect(()=>(C&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[a,C,H]);const W=(ve,Me)=>{T&&T(ve,Me),H()},B=()=>{F(!1)};D.useEffect(()=>{v&&H()}),D.useImperativeHandle(l,()=>v?{updatePosition:()=>{H()}}:null,[v,H]),D.useEffect(()=>{if(!v)return;const ve=gY(()=>{H()}),Me=_h(a);return Me.addEventListener("resize",ve),()=>{ve.clear(),Me.removeEventListener("resize",ve)}},[a,v,H]);let U=S;S==="auto"&&!w.muiSupportAuto&&(U=void 0);const G=f||(a?_r(Cw(a)).body:void 0),Y=(o=b==null?void 0:b.root)!=null?o:Vee,X=(i=b==null?void 0:b.paper)!=null?i:ZL,Z=Xi({elementType:X,externalSlotProps:K({},_,{style:P?_.style:K({},_.style,{opacity:0})}),additionalProps:{elevation:g,ref:E},ownerState:M,className:je(I.paper,_==null?void 0:_.className)}),ne=Xi({elementType:Y,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:R,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:G,open:v},ownerState:M,className:je(I.root,p)}),{slotProps:de}=ne,Ie=ze(ne,Uee);return V.jsx(Y,K({},Ie,!yL(Y)&&{slotProps:de,disableScrollLock:C},{children:V.jsx(w,K({appear:!0,in:v,onEntering:W,onExited:B,timeout:U},O,{children:V.jsx(X,K({},Z,{children:h}))}))}))});function Gee(t){return bn("MuiMenu",t)}xn("MuiMenu",["root","paper","list"]);const Kee=["onEntering"],Yee=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Xee={vertical:"top",horizontal:"right"},qee={vertical:"top",horizontal:"left"},Zee=t=>{const{classes:e}=t;return Nn({root:["root"],paper:["paper"],list:["list"]},Gee,e)},Jee=wt(jee,{shouldForwardProp:t=>ew(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Qee=wt(ZL,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ete=wt(zee,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),tte=D.forwardRef(function(e,n){var r,o;const i=kn({props:e,name:"MuiMenu"}),{autoFocus:s=!0,children:l,className:a,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:h,PaperProps:p={},PopoverClasses:f,transitionDuration:g="auto",TransitionProps:{onEntering:m}={},variant:v="selectedMenu",slots:y={},slotProps:b={}}=i,x=ze(i.TransitionProps,Kee),k=ze(i,Yee),w=Vm(),S=w.direction==="rtl",T=K({},i,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:g,TransitionProps:x,variant:v}),C=Zee(T),O=s&&!u&&h,R=D.useRef(null),_=($,P)=>{R.current&&R.current.adjustStyleForScrollbar($,w),m&&m($,P)},A=$=>{$.key==="Tab"&&($.preventDefault(),d&&d($,"tabKeyDown"))};let E=-1;D.Children.map(l,($,P)=>{D.isValidElement($)&&($.props.disabled||(v==="selectedMenu"&&$.props.selected||E===-1)&&(E=P))});const M=(r=y.paper)!=null?r:Qee,I=(o=b.paper)!=null?o:p,N=Xi({elementType:y.root,externalSlotProps:b.root,ownerState:T,className:[C.root,a]}),L=Xi({elementType:M,externalSlotProps:I,ownerState:T,className:C.paper});return V.jsx(Jee,K({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Xee:qee,slots:{paper:M,root:y.root},slotProps:{root:N,paper:L},open:h,ref:n,transitionDuration:g,TransitionProps:K({onEntering:_},x),ownerState:T},k,{classes:f,children:V.jsx(ete,K({onKeyDown:A,actions:R,autoFocus:s&&(E===-1||u),autoFocusItem:O,variant:v},c,{className:je(C.list,c.className),children:l}))}))});function nte(t){return bn("MuiMenuItem",t)}const qh=xn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),rte=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ote=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.divider&&e.divider,!n.disableGutters&&e.gutters]},ite=t=>{const{disabled:e,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=t,a=Nn({root:["root",n&&"dense",e&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},nte,s);return K({},s,a)},ste=wt(sw,{shouldForwardProp:t=>ew(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ote})(({theme:t,ownerState:e})=>K({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${qh.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Or(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${qh.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Or(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${qh.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Or(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Or(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${qh.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${qh.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${WL.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${WL.inset}`]:{marginLeft:52},[`& .${Jm.root}`]:{marginTop:0,marginBottom:0},[`& .${Jm.inset}`]:{paddingLeft:36},[`& .${jL.root}`]:{minWidth:36}},!e.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},e.dense&&K({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${jL.root} svg`]:{fontSize:"1.25rem"}}))),ate=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:l=!1,disableGutters:a=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:h}=r,p=ze(r,rte),f=D.useContext(Yh),g=D.useMemo(()=>({dense:s||f.dense||!1,disableGutters:a}),[f.dense,s,a]),m=D.useRef(null);nl(()=>{o&&m.current&&m.current.focus()},[o]);const v=K({},r,{dense:g.dense,divider:l,disableGutters:a}),y=ite(r),b=Rr(m,n);let x;return r.disabled||(x=d!==void 0?d:-1),V.jsx(Yh.Provider,{value:g,children:V.jsx(ste,K({ref:b,role:c,tabIndex:x,component:i,focusVisibleClassName:je(y.focusVisible,u),className:je(y.root,h)},p,{ownerState:v,classes:y}))})});function lte(t){return bn("MuiTooltip",t)}const na=xn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),cte=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function ute(t){return Math.round(t*1e5)/1e5}const dte=t=>{const{classes:e,disableInteractive:n,arrow:r,touch:o,placement:i}=t,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ft(i.split("-")[0])}`],arrow:["arrow"]};return Nn(s,lte,e)},hte=wt(yw,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.popper,!n.disableInteractive&&e.popperInteractive,n.arrow&&e.popperArrow,!n.open&&e.popperClose]}})(({theme:t,ownerState:e,open:n})=>K({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!e.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},e.arrow&&{[`&[data-popper-placement*="bottom"] .${na.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${na.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${na.arrow}`]:K({},e.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${na.arrow}`]:K({},e.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),pte=wt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.tooltip,n.touch&&e.touch,n.arrow&&e.tooltipArrow,e[`tooltipPlacement${ft(n.placement.split("-")[0])}`]]}})(({theme:t,ownerState:e})=>K({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Or(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},e.arrow&&{position:"relative",margin:0},e.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${ute(16/14)}em`,fontWeight:t.typography.fontWeightRegular},{[`.${na.popper}[data-popper-placement*="left"] &`]:K({transformOrigin:"right center"},e.isRtl?K({marginLeft:"14px"},e.touch&&{marginLeft:"24px"}):K({marginRight:"14px"},e.touch&&{marginRight:"24px"})),[`.${na.popper}[data-popper-placement*="right"] &`]:K({transformOrigin:"left center"},e.isRtl?K({marginRight:"14px"},e.touch&&{marginRight:"24px"}):K({marginLeft:"14px"},e.touch&&{marginLeft:"24px"})),[`.${na.popper}[data-popper-placement*="top"] &`]:K({transformOrigin:"center bottom",marginBottom:"14px"},e.touch&&{marginBottom:"24px"}),[`.${na.popper}[data-popper-placement*="bottom"] &`]:K({transformOrigin:"center top",marginTop:"14px"},e.touch&&{marginTop:"24px"})})),fte=wt("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Or(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Qm=!1,Tw=null,Zh={x:0,y:0};function ev(t,e){return n=>{e&&e(n),t(n)}}const JL=D.forwardRef(function(e,n){var r,o,i,s,l,a,u,c,d,h,p,f,g,m,v,y,b,x,k;const w=kn({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:T,components:C={},componentsProps:O={},describeChild:R=!1,disableFocusListener:_=!1,disableHoverListener:A=!1,disableInteractive:E=!1,disableTouchListener:M=!1,enterDelay:I=100,enterNextDelay:N=0,enterTouchDelay:L=700,followCursor:$=!1,id:P,leaveDelay:F=0,leaveTouchDelay:H=1500,onClose:W,onOpen:B,open:U,placement:G="bottom",PopperComponent:Y,PopperProps:X={},slotProps:Z={},slots:ne={},title:de,TransitionComponent:Ie=Ew,TransitionProps:ve}=w,Me=ze(w,cte),Se=D.isValidElement(T)?T:V.jsx("span",{children:T}),yt=Vm(),Dt=yt.direction==="rtl",[Et,fr]=D.useState(),[Pt,Pn]=D.useState(null),En=D.useRef(!1),Sn=E||$,Qe=D.useRef(),zn=D.useRef(),q=D.useRef(),ue=D.useRef(),[me,ie]=yY({controlled:U,default:!1,name:"Tooltip",state:"open"});let Ce=me;const et=vY(P),Ye=D.useRef(),at=D.useCallback(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),clearTimeout(ue.current)},[]);D.useEffect(()=>()=>{clearTimeout(Qe.current),clearTimeout(zn.current),clearTimeout(q.current),at()},[at]);const lt=Le=>{clearTimeout(Tw),Qm=!0,ie(!0),B&&!Ce&&B(Le)},Fe=rl(Le=>{clearTimeout(Tw),Tw=setTimeout(()=>{Qm=!1},800+F),ie(!1),W&&Ce&&W(Le),clearTimeout(Qe.current),Qe.current=setTimeout(()=>{En.current=!1},yt.transitions.duration.shortest)}),Xt=Le=>{En.current&&Le.type!=="touchstart"||(Et&&Et.removeAttribute("title"),clearTimeout(zn.current),clearTimeout(q.current),I||Qm&&N?zn.current=setTimeout(()=>{lt(Le)},Qm?N:I):lt(Le))},Go=Le=>{clearTimeout(zn.current),clearTimeout(q.current),q.current=setTimeout(()=>{Fe(Le)},F)},{isFocusVisibleRef:Cl,onBlur:es,onFocus:Lv,ref:YE}=uI(),[,Nv]=D.useState(!1),mu=Le=>{es(Le),Cl.current===!1&&(Nv(!1),Go(Le))},ca=Le=>{Et||fr(Le.currentTarget),Lv(Le),Cl.current===!0&&(Nv(!0),Xt(Le))},vu=Le=>{En.current=!0;const mr=Se.props;mr.onTouchStart&&mr.onTouchStart(Le)},yu=Xt,bu=Go,Tl=Le=>{vu(Le),clearTimeout(q.current),clearTimeout(Qe.current),at(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ye.current,Xt(Le)},L)},XE=Le=>{Se.props.onTouchEnd&&Se.props.onTouchEnd(Le),at(),clearTimeout(q.current),q.current=setTimeout(()=>{Fe(Le)},H)};D.useEffect(()=>{if(!Ce)return;function Le(mr){(mr.key==="Escape"||mr.key==="Esc")&&Fe(mr)}return document.addEventListener("keydown",Le),()=>{document.removeEventListener("keydown",Le)}},[Fe,Ce]);const qE=Rr(Se.ref,YE,fr,n);!de&&de!==0&&(Ce=!1);const bp=D.useRef(),ZE=Le=>{const mr=Se.props;mr.onMouseMove&&mr.onMouseMove(Le),Zh={x:Le.clientX,y:Le.clientY},bp.current&&bp.current.update()},Al={},xu=typeof de=="string";R?(Al.title=!Ce&&xu&&!A?de:null,Al["aria-describedby"]=Ce?et:null):(Al["aria-label"]=xu?de:null,Al["aria-labelledby"]=Ce&&!xu?et:null);const gr=K({},Al,Me,Se.props,{className:je(Me.className,Se.props.className),onTouchStart:vu,ref:qE},$?{onMouseMove:ZE}:{}),ro={};M||(gr.onTouchStart=Tl,gr.onTouchEnd=XE),A||(gr.onMouseOver=ev(yu,gr.onMouseOver),gr.onMouseLeave=ev(bu,gr.onMouseLeave),Sn||(ro.onMouseOver=yu,ro.onMouseLeave=bu)),_||(gr.onFocus=ev(ca,gr.onFocus),gr.onBlur=ev(mu,gr.onBlur),Sn||(ro.onFocus=ca,ro.onBlur=mu));const JE=D.useMemo(()=>{var Le;let mr=[{name:"arrow",enabled:!!Pt,options:{element:Pt,padding:4}}];return(Le=X.popperOptions)!=null&&Le.modifiers&&(mr=mr.concat(X.popperOptions.modifiers)),K({},X.popperOptions,{modifiers:mr})},[Pt,X]),_l=K({},w,{isRtl:Dt,arrow:S,disableInteractive:Sn,placement:G,PopperComponentProp:Y,touch:En.current}),xp=dte(_l),$v=(r=(o=ne.popper)!=null?o:C.Popper)!=null?r:hte,Dv=(i=(s=(l=ne.transition)!=null?l:C.Transition)!=null?s:Ie)!=null?i:Ew,To=(a=(u=ne.tooltip)!=null?u:C.Tooltip)!=null?a:pte,Pv=(c=(d=ne.arrow)!=null?d:C.Arrow)!=null?c:fte,QE=Fh($v,K({},X,(h=Z.popper)!=null?h:O.popper,{className:je(xp.popper,X==null?void 0:X.className,(p=(f=Z.popper)!=null?f:O.popper)==null?void 0:p.className)}),_l),eS=Fh(Dv,K({},ve,(g=Z.transition)!=null?g:O.transition),_l),tS=Fh(To,K({},(m=Z.tooltip)!=null?m:O.tooltip,{className:je(xp.tooltip,(v=(y=Z.tooltip)!=null?y:O.tooltip)==null?void 0:v.className)}),_l),nS=Fh(Pv,K({},(b=Z.arrow)!=null?b:O.arrow,{className:je(xp.arrow,(x=(k=Z.arrow)!=null?k:O.arrow)==null?void 0:x.className)}),_l);return V.jsxs(D.Fragment,{children:[D.cloneElement(Se,gr),V.jsx($v,K({as:Y??yw,placement:G,anchorEl:$?{getBoundingClientRect:()=>({top:Zh.y,left:Zh.x,right:Zh.x,bottom:Zh.y,width:0,height:0})}:Et,popperRef:bp,open:Et?Ce:!1,id:et,transition:!0},ro,QE,{popperOptions:JE,children:({TransitionProps:Le})=>V.jsx(Dv,K({timeout:yt.transitions.duration.shorter},Le,eS,{children:V.jsxs(To,K({},tS,{children:[de,S?V.jsx(Pv,K({},nS,{ref:Pn})):null]}))}))}))]})});function gte(t){return bn("MuiToggleButton",t)}const QL=xn("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),mte=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],vte=t=>{const{classes:e,fullWidth:n,selected:r,disabled:o,size:i,color:s}=t,l={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${ft(i)}`,s]};return Nn(l,gte,e)},yte=wt(sw,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`size${ft(n.size)}`]]}})(({theme:t,ownerState:e})=>{let n=e.color==="standard"?t.palette.text.primary:t.palette[e.color].main,r;return t.vars&&(n=e.color==="standard"?t.vars.palette.text.primary:t.vars.palette[e.color].main,r=e.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[e.color].mainChannel),K({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},e.fullWidth&&{width:"100%"},{[`&.${QL.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Or(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${QL.selected}`]:{color:n,backgroundColor:t.vars?`rgba(${r} / ${t.vars.palette.action.selectedOpacity})`:Or(n,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${r} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Or(n,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${r} / ${t.vars.palette.action.selectedOpacity})`:Or(n,t.palette.action.selectedOpacity)}}}},e.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},e.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),bte=D.forwardRef(function(e,n){const r=kn({props:e,name:"MuiToggleButton"}),{children:o,className:i,color:s="standard",disabled:l=!1,disableFocusRipple:a=!1,fullWidth:u=!1,onChange:c,onClick:d,selected:h,size:p="medium",value:f}=r,g=ze(r,mte),m=K({},r,{color:s,disabled:l,disableFocusRipple:a,fullWidth:u,size:p}),v=vte(m),y=b=>{d&&(d(b,f),b.defaultPrevented)||c&&c(b,f)};return V.jsx(yte,K({className:je(v.root,i),disabled:l,focusRipple:!a,ref:n,onClick:y,onChange:c,value:f,ownerState:m,"aria-pressed":h},g,{children:o}))});var xte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 15v2c0 1.054.95 2 2 2h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM3 3h6a3 3 0 0 1 2.235 5A3 3 0 0 1 9 13H3V3zm6 6H5v2h4a1 1 0 0 0 0-2zm8-6a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM9 5H5v2h4a1 1 0 1 0 0-2z"}}],wte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"}}],kte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"}}],Ete=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M12.866 3l9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0zm-8.66 16h15.588L12 5.5 4.206 19zM11 16h2v2h-2v-2zm0-7h2v5h-2V9z"}}],Ste=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 19h18v2H3v-2zm5-6h3l-4 4-4-4h3V3h2v10zm10 0h3l-4 4-4-4h3V3h2v10z"}}],Cte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm2 15h14v2H5v-2zm-2-5h18v2H3v-2zm2-5h14v2H5V9z"}}],Tte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm0 15h18v2H3v-2zm0-5h18v2H3v-2zm0-5h18v2H3V9z"}}],Ate=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm0 15h14v2H3v-2zm0-5h18v2H3v-2zm0-5h14v2H3V9z"}}],_te=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm4 15h14v2H7v-2zm-4-5h18v2H3v-2zm4-5h14v2H7V9z"}}],Rte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 3h18v2H3V3zm5 8v10H6V11H3l4-4 4 4H8zm10 0v10h-2V11h-3l4-4 4 4h-3z"}}],Mte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 11h18v2H3v-2zm15 7v3h-2v-3h-3l4-4 4 4h-3zM8 18v3H6v-3H3l4-4 4 4H8zM18 6h3l-4 4-4-4h3V3h2v3zM8 6h3l-4 4-4-4h3V3h2v3z"}}],Ote=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6.75 2.5A4.25 4.25 0 0 1 11 6.75V11H6.75a4.25 4.25 0 1 1 0-8.5zM9 9V6.75A2.25 2.25 0 1 0 6.75 9H9zm-2.25 4H11v4.25A4.25 4.25 0 1 1 6.75 13zm0 2A2.25 2.25 0 1 0 9 17.25V15H6.75zm10.5-12.5a4.25 4.25 0 1 1 0 8.5H13V6.75a4.25 4.25 0 0 1 4.25-4.25zm0 6.5A2.25 2.25 0 1 0 15 6.75V9h2.25zM13 13h4.25A4.25 4.25 0 1 1 13 17.25V13zm2 2v2.25A2.25 2.25 0 1 0 17.25 15H15z"}}],Ite=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 16l-6-6h12z"}}],Lte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 7v4L2 6l6-5v4h5a8 8 0 1 1 0 16H4v-2h9a6 6 0 1 0 0-12H8z"}}],Nte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 7h-5a6 6 0 1 0 0 12h9v2h-9a8 8 0 1 1 0-16h5V1l6 5-6 5V7z"}}],$te=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 12l6-6v12z"}}],Dte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 12l-6 6V6z"}}],Pte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8l6 6H6z"}}],zte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 3v7.267l6.294-3.633 1 1.732-6.293 3.633 6.293 3.635-1 1.732L13 13.732V21h-2v-7.268l-6.294 3.634-1-1.732L9.999 12 3.706 8.366l1-1.732L11 10.267V3z"}}],Fte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14.828 7.757l-5.656 5.657a1 1 0 1 0 1.414 1.414l5.657-5.656A3 3 0 1 0 12 4.929l-5.657 5.657a5 5 0 1 0 7.071 7.07L19.071 12l1.414 1.414-5.657 5.657a7 7 0 1 1-9.9-9.9l5.658-5.656a5 5 0 0 1 7.07 7.07L12 16.244A3 3 0 1 1 7.757 12l5.657-5.657 1.414 1.414z"}}],Bte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 11h4.5a2.5 2.5 0 1 0 0-5H8v5zm10 4.5a4.5 4.5 0 0 1-4.5 4.5H6V4h6.5a4.5 4.5 0 0 1 3.256 7.606A4.498 4.498 0 0 1 18 15.5zM8 13v5h5.5a2.5 2.5 0 1 0 0-5H8z"}}],Hte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 18v-3.7a1.5 1.5 0 0 0-1.5-1.5H2v-1.6h.5A1.5 1.5 0 0 0 4 9.7V6a3 3 0 0 1 3-3h1v2H7a1 1 0 0 0-1 1v4.1A2 2 0 0 1 4.626 12 2 2 0 0 1 6 13.9V18a1 1 0 0 0 1 1h1v2H7a3 3 0 0 1-3-3zm16-3.7V18a3 3 0 0 1-3 3h-1v-2h1a1 1 0 0 0 1-1v-4.1a2 2 0 0 1 1.374-1.9A2 2 0 0 1 18 10.1V6a1 1 0 0 0-1-1h-1V3h1a3 3 0 0 1 3 3v3.7a1.5 1.5 0 0 0 1.5 1.5h.5v1.6h-.5a1.5 1.5 0 0 0-1.5 1.5z"}}],Ute=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M14 3c.552 0 1 .448 1 1v5h5c.552 0 1 .448 1 1v10c0 .552-.448 1-1 1H10c-.552 0-1-.448-1-1v-5H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h10zm-1 2H5v8h8V5z"}}],Wte=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M11 3c.552 0 1 .448 1 1v2h5c.552 0 1 .448 1 1v5h2c.552 0 1 .448 1 1v7c0 .552-.448 1-1 1h-7c-.552 0-1-.448-1-1v-2H7c-.552 0-1-.448-1-1v-5H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h7zm5 5H8v8h8V8z"}}],Vte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14 3v2H4v13.385L5.763 17H20v-7h2v8a1 1 0 0 1-1 1H6.455L2 22.5V4a1 1 0 0 1 1-1h11zm5 0V0h2v3h3v2h-3v3h-2V5h-3V3h3z"}}],jte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-.997-4L6.76 11.757l1.414-1.414 2.829 2.829 5.656-5.657 1.415 1.414L11.003 16z"}}],Gte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M7 7V3a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-4v3.993c0 .556-.449 1.007-1.007 1.007H3.007A1.006 1.006 0 0 1 2 20.993l.003-12.986C2.003 7.451 2.452 7 3.01 7H7zm2 0h6.993C16.549 7 17 7.449 17 8.007V15h3V4H9v3zm6 2H4.003L4 20h11V9zm-6.497 9l-3.536-3.536 1.414-1.414 2.122 2.122 4.242-4.243 1.414 1.414L8.503 18z"}}],Kte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 4v4h12V4h2.007c.548 0 .993.445.993.993v16.014a.994.994 0 0 1-.993.993H3.993A.994.994 0 0 1 3 21.007V4.993C3 4.445 3.445 4 3.993 4H6zm2-2h8v4H8V2z"}}],Yte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 4V2h10v2h3.007c.548 0 .993.445.993.993v16.014a.994.994 0 0 1-.993.993H3.993A.994.994 0 0 1 3 21.007V4.993C3 4.445 3.445 4 3.993 4H7zm0 2H5v14h14V6h-2v2H7V6zm2-2v2h6V4H9z"}}],Xte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-9.414l2.828-2.829 1.415 1.415L13.414 12l2.829 2.828-1.415 1.415L12 13.414l-2.828 2.829-1.415-1.415L10.586 12 7.757 9.172l1.415-1.415L12 10.586z"}}],qte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"}}],Zte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"}}],Jte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M23 12l-7.071 7.071-1.414-1.414L20.172 12l-5.657-5.657 1.414-1.414L23 12zM3.828 12l5.657 5.657-1.414 1.414L1 12l7.071-7.071 1.414 1.414L3.828 12z"}}],Qte=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.95 8.464l1.414-1.414 4.95 4.95-4.95 4.95-1.414-1.414L20.485 12 16.95 8.464zm-9.9 0L3.515 12l3.535 3.536-1.414 1.414L.686 12l4.95-4.95L7.05 8.464z"}}],ene=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3zm-8 5v6h2v-6H9zm4 0v6h2v-6h-2zM9 4v2h6V4H9z"}}],tne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3zm1 2H6v12h12V8zm-9 3h2v6H9v-6zm4 0h2v6h-2v-6zM9 4v2h6V4H9z"}}],nne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M12 3c.552 0 1 .448 1 1v8c.835-.628 1.874-1 3-1 2.761 0 5 2.239 5 5s-2.239 5-5 5c-1.032 0-1.99-.313-2.787-.848L13 20c0 .552-.448 1-1 1H6c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h6zm-1 2H7v14h4V5zm8 10h-6v2h6v-2z"}}],rne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 5c.552 0 1 .448 1 1v6c0 .552-.448 1-1 1 .628.835 1 1.874 1 3 0 2.761-2.239 5-5 5s-5-2.239-5-5c0-1.126.372-2.165 1-3H4c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1h16zm-7 10v2h6v-2h-6zm6-8H5v4h14V7z"}}],one=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4.583 17.321C3.553 16.227 3 15 3 13.011c0-3.5 2.457-6.637 6.03-8.188l.893 1.378c-3.335 1.804-3.987 4.145-4.247 5.621.537-.278 1.24-.375 1.929-.311 1.804.167 3.226 1.648 3.226 3.489a3.5 3.5 0 0 1-3.5 3.5c-1.073 0-2.099-.49-2.748-1.179zm10 0C13.553 16.227 13 15 13 13.011c0-3.5 2.457-6.637 6.03-8.188l.893 1.378c-3.335 1.804-3.987 4.145-4.247 5.621.537-.278 1.24-.375 1.929-.311 1.804.167 3.226 1.648 3.226 3.489a3.5 3.5 0 0 1-3.5 3.5c-1.073 0-2.099-.49-2.748-1.179z"}}],ine=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19.417 6.679C20.447 7.773 21 9 21 10.989c0 3.5-2.457 6.637-6.03 8.188l-.893-1.378c3.335-1.804 3.987-4.145 4.247-5.621-.537.278-1.24.375-1.929.311-1.804-.167-3.226-1.648-3.226-3.489a3.5 3.5 0 0 1 3.5-3.5c1.073 0 2.099.49 2.748 1.179zm-10 0C10.447 7.773 11 9 11 10.989c0 3.5-2.457 6.637-6.03 8.188l-.893-1.378c3.335-1.804 3.987-4.145 4.247-5.621-.537.278-1.24.375-1.929.311C4.591 12.322 3.17 10.841 3.17 9a3.5 3.5 0 0 1 3.5-3.5c1.073 0 2.099.49 2.748 1.179z"}}],sne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 19h16v-7h2v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-8h2v7zM14 9h5l-7 7-7-7h5V3h4v6z"}}],ane=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M16 13l6.964 4.062-2.973.85 2.125 3.681-1.732 1-2.125-3.68-2.223 2.15L16 13zm-2-7h2v2h5a1 1 0 0 1 1 1v4h-2v-3H10v10h4v2H9a1 1 0 0 1-1-1v-5H6v-2h2V9a1 1 0 0 1 1-1h5V6zM4 14v2H2v-2h2zm0-4v2H2v-2h2zm0-4v2H2V6h2zm0-4v2H2V2h2zm4 0v2H6V2h2zm4 0v2h-2V2h2zm4 0v2h-2V2h2z"}}],lne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 19a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm-5.5 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm11 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zM13 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.621 6.302 14.685 14.685 0 0 0 5.327 3.042l-.536 1.93A16.685 16.685 0 0 1 12 13.726a16.696 16.696 0 0 1-6.202 3.547l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042 18.077 18.077 0 0 1-2.822-4.3h2.24A16.031 16.031 0 0 0 12 10.876a16.168 16.168 0 0 0 2.91-4.876L5 6V4h6V2h2z"}}],cne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 19a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm-5.5 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm11 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zM18 3v2H8v4h9v2H8v4h10v2H6V3h12z"}}],une=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14 10h2v.757a4.5 4.5 0 0 1 7 3.743V20h-2v-5.5c0-1.43-1.175-2.5-2.5-2.5S16 13.07 16 14.5V20h-2V10zm-2-6v2H4v5h8v2H4v5h8v2H2V4h10z"}}],dne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-1-5h2v2h-2v-2zm0-8h2v6h-2V7z"}}],hne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm11-3v9l-3.794-3.793-5.999 6-1.414-1.414 5.999-6L12 3h9z"}}],pne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1.001 1.001 0 0 1 3 21l.003-14c0-.552.45-1 1.007-1H7zM5.003 8L5 20h10V8H5.003zM9 6h8v10h2V4H9v2z"}}],fne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M6 21.5c-1.933 0-3.5-1.567-3.5-3.5s1.567-3.5 3.5-3.5c1.585 0 2.924 1.054 3.355 2.5H15v-2h2V9.242L14.757 7H9V9H3V3h6v2h5.757L18 1.756 22.243 6 19 9.241V15L21 15v6h-6v-2H9.355c-.43 1.446-1.77 2.5-3.355 2.5zm0-5c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm13 .5h-2v2h2v-2zM18 4.586L16.586 6 18 7.414 19.414 6 18 4.586zM7 5H5v2h2V5z"}}],gne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.246 14H8.754l-1.6 4H5l6-15h2l6 15h-2.154l-1.6-4zm-.8-2L12 5.885 9.554 12h4.892zM3 20h18v2H3v-2z"}}],mne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 6v15H8V6H2V4h14v2h-6zm8 8v7h-2v-7h-3v-2h8v2h-3z"}}],vne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11.246 15H4.754l-2 5H.6L7 4h2l6.4 16h-2.154l-2-5zm-.8-2L8 6.885 5.554 13h4.892zM21 12.535V12h2v8h-2v-.535a4 4 0 1 1 0-6.93zM19 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"}}],yne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12.651 14.065L11.605 20H9.574l1.35-7.661-7.41-7.41L4.93 3.515 20.485 19.07l-1.414 1.414-6.42-6.42zm-.878-6.535l.27-1.53h-1.8l-2-2H20v2h-5.927L13.5 9.257 11.773 7.53z"}}],bne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z"}}],xne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 3h2v6h-2V5h-4V3h4zM4 3h4v2H4v4H2V3h2zm16 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z"}}],wne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 18l7.68-6L5 6V4h14v2H8.263L16 12l-7.737 6H19v2H5v-2z"}}],kne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 1v4H4v14h16V3h1.008c.548 0 .992.445.992.993v16.014a1 1 0 0 1-.992.993H2.992A.993.993 0 0 1 2 20.007V3.993A1 1 0 0 1 2.992 3H6V1h2zm4 7l4 4h-3v4h-2v-4H8l4-4zm6-7v4h-8V3h6V1h2z"}}],Ene=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M13 20h-2v-7H4v7H2V4h2v7h7V4h2v16zm8-12v12h-2v-9.796l-2 .536V8.67L19.5 8H21z"}}],Sne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M4 4v7h7V4h2v16h-2v-7H4v7H2V4h2zm14.5 4c2.071 0 3.75 1.679 3.75 3.75 0 .857-.288 1.648-.772 2.28l-.148.18L18.034 18H22v2h-7v-1.556l4.82-5.546c.268-.307.43-.709.43-1.148 0-.966-.784-1.75-1.75-1.75-.918 0-1.671.707-1.744 1.606l-.006.144h-2C14.75 9.679 16.429 8 18.5 8z"}}],Cne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M22 8l-.002 2-2.505 2.883c1.59.435 2.757 1.89 2.757 3.617 0 2.071-1.679 3.75-3.75 3.75-1.826 0-3.347-1.305-3.682-3.033l1.964-.382c.156.806.866 1.415 1.718 1.415.966 0 1.75-.784 1.75-1.75s-.784-1.75-1.75-1.75c-.286 0-.556.069-.794.19l-1.307-1.547L19.35 10H15V8h7zM4 4v7h7V4h2v16h-2v-7H4v7H2V4h2z"}}],Tne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M13 20h-2v-7H4v7H2V4h2v7h7V4h2v16zm9-12v8h1.5v2H22v2h-2v-2h-5.5v-1.34l5-8.66H22zm-2 3.133L17.19 16H20v-4.867z"}}],Ane=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M22 8v2h-4.323l-.464 2.636c.33-.089.678-.136 1.037-.136 2.21 0 4 1.79 4 4s-1.79 4-4 4c-1.827 0-3.367-1.224-3.846-2.897l1.923-.551c.24.836 1.01 1.448 1.923 1.448 1.105 0 2-.895 2-2s-.895-2-2-2c-.63 0-1.193.292-1.56.748l-1.81-.904L16 8h6zM4 4v7h7V4h2v16h-2v-7H4v7H2V4h2z"}}],_ne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M21.097 8l-2.598 4.5c2.21 0 4.001 1.79 4.001 4s-1.79 4-4 4-4-1.79-4-4c0-.736.199-1.426.546-2.019L18.788 8h2.309zM4 4v7h7V4h2v16h-2v-7H4v7H2V4h2zm14.5 10.5c-1.105 0-2 .895-2 2s.895 2 2 2 2-.895 2-2-.895-2-2-2z"}}],Rne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.784 14l.42-4H4V8h4.415l.525-5h2.011l-.525 5h3.989l.525-5h2.011l-.525 5H20v2h-3.784l-.42 4H20v2h-4.415l-.525 5h-2.011l.525-5H9.585l-.525 5H7.049l.525-5H4v-2h3.784zm2.011 0h3.99l.42-4h-3.99l-.42 4z"}}],Mne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 11V4h2v17h-2v-8H7v8H5V4h2v7z"}}],One=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 15v3h3v2h-3v3h-2v-3h-3v-2h3v-3h2zm.008-12c.548 0 .992.445.992.993V13h-2V5H4v13.999L14 9l3 3v2.829l-3-3L6.827 19H14v2H2.992A.993.993 0 0 1 2 20.007V3.993A1 1 0 0 1 2.992 3h18.016zM8 7a2 2 0 1 1 0 4 2 2 0 0 1 0-4z"}}],Ine=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 3c.552 0 1 .448 1 1v1.757l-2 2V5H5v8.1l4-4 4.328 4.329-1.415 1.413L9 11.93l-4 3.999V19h10.533l.708.001 1.329-1.33L18.9 19h.1v-2.758l2-2V20c0 .552-.448 1-1 1H4c-.55 0-1-.45-1-1V4c0-.552.448-1 1-1h16zm1.778 4.808l1.414 1.414L15.414 17l-1.416-.002.002-1.412 7.778-7.778zM15.5 7c.828 0 1.5.672 1.5 1.5s-.672 1.5-1.5 1.5S14 9.328 14 8.5 14.672 7 15.5 7z"}}],Lne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4.828 21l-.02.02-.021-.02H2.992A.993.993 0 0 1 2 20.007V3.993A1 1 0 0 1 2.992 3h18.016c.548 0 .992.445.992.993v16.014a1 1 0 0 1-.992.993H4.828zM20 15V5H4v14L14 9l6 6zm0 2.828l-6-6L6.828 19H20v-1.172zM8 11a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"}}],Nne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm0 15h18v2H3v-2zm8-5h10v2H11v-2zm0-5h10v2H11V9zm-8 3.5L7 9v7l-4-3.5z"}}],$ne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm0 15h18v2H3v-2zm8-5h10v2H11v-2zm0-5h10v2H11V9zm-4 3.5L3 16V9l4 3.5z"}}],Dne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM11 7h2v2h-2V7zm0 4h2v6h-2v-6z"}}],Pne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 21v-2h3V5H8V3h8v2h-3v14h3v2H8zM18.05 7.05L23 12l-4.95 4.95-1.414-1.414L20.172 12l-3.536-3.536L18.05 7.05zm-12.1 0l1.414 1.414L3.828 12l3.536 3.536L5.95 16.95 1 12l4.95-4.95z"}}],zne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 3c.552 0 1 .448 1 1v16c0 .552-.448 1-1 1h-6c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h6zm-1 2h-4v14h4V5zM6 7c2.761 0 5 2.239 5 5s-2.239 5-5 5-5-2.239-5-5 2.239-5 5-5zm1 2H5v1.999L3 11v2l2-.001V15h2v-2.001L9 13v-2l-2-.001V9z"}}],Fne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M10 3c.552 0 1 .448 1 1v16c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h6zM9 5H5v14h4V5zm9 2c2.761 0 5 2.239 5 5s-2.239 5-5 5-5-2.239-5-5 2.239-5 5-5zm1 2h-2v1.999L15 11v2l2-.001V15h2v-2.001L21 13v-2l-2-.001V9z"}}],Bne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M12 13c2.761 0 5 2.239 5 5s-2.239 5-5 5-5-2.239-5-5 2.239-5 5-5zm1 2h-2v1.999L9 17v2l2-.001V21h2v-2.001L15 19v-2l-2-.001V15zm7-12c.552 0 1 .448 1 1v6c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16zM5 5v4h14V5H5z"}}],Hne=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 13c.552 0 1 .448 1 1v6c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1v-6c0-.552.448-1 1-1h16zm-1 2H5v4h14v-4zM12 1c2.761 0 5 2.239 5 5s-2.239 5-5 5-5-2.239-5-5 2.239-5 5-5zm1 2h-2v1.999L9 5v2l2-.001V9h2V6.999L15 7V5l-2-.001V3z"}}],Une=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15 20H7v-2h2.927l2.116-12H9V4h8v2h-2.927l-2.116 12H15z"}}],Wne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M11 5H5v14h6V5zm2 0v14h6V5h-6zM4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"}}],Vne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 4h10v2H11V4zM6 7v4H4V7H1l4-4 4 4H6zm0 10h3l-4 4-4-4h3v-4h2v4zm5 1h10v2H11v-2zm-2-7h12v2H9v-2z"}}],jne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.657 14.828l-1.414-1.414L17.657 12A4 4 0 1 0 12 6.343l-1.414 1.414-1.414-1.414 1.414-1.414a6 6 0 0 1 8.485 8.485l-1.414 1.414zm-2.829 2.829l-1.414 1.414a6 6 0 1 1-8.485-8.485l1.414-1.414 1.414 1.414L6.343 12A4 4 0 1 0 12 17.657l1.414-1.414 1.414 1.414zm0-9.9l1.415 1.415-7.071 7.07-1.415-1.414 7.071-7.07z"}}],Gne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.657 14.828l-1.414-1.414L17.657 12A4 4 0 1 0 12 6.343l-1.414 1.414-1.414-1.414 1.414-1.414a6 6 0 0 1 8.485 8.485l-1.414 1.414zm-2.829 2.829l-1.414 1.414a6 6 0 1 1-8.485-8.485l1.414-1.414 1.414 1.414L6.343 12A4 4 0 1 0 12 17.657l1.414-1.414 1.414 1.414zm0-9.9l1.415 1.415-7.071 7.07-1.415-1.414 7.071-7.07zM5.775 2.293l1.932-.518L8.742 5.64l-1.931.518-1.036-3.864zm9.483 16.068l1.931-.518 1.036 3.864-1.932.518-1.035-3.864zM2.293 5.775l3.864 1.036-.518 1.931-3.864-1.035.518-1.932zm16.068 9.483l3.864 1.035-.518 1.932-3.864-1.036.518-1.931z"}}],Kne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 17h5v2h-3v3h-2v-5zM7 7H2V5h3V2h2v5zm11.364 8.536L16.95 14.12l1.414-1.414a5 5 0 1 0-7.071-7.071L9.879 7.05 8.464 5.636 9.88 4.222a7 7 0 0 1 9.9 9.9l-1.415 1.414zm-2.828 2.828l-1.415 1.414a7 7 0 0 1-9.9-9.9l1.415-1.414L7.05 9.88l-1.414 1.414a5 5 0 1 0 7.071 7.071l1.414-1.414 1.415 1.414zm-.708-10.607l1.415 1.415-7.071 7.07-1.415-1.414 7.071-7.07z"}}],Yne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18.364 15.536L16.95 14.12l1.414-1.414a5 5 0 1 0-7.071-7.071L9.879 7.05 8.464 5.636 9.88 4.222a7 7 0 0 1 9.9 9.9l-1.415 1.414zm-2.828 2.828l-1.415 1.414a7 7 0 0 1-9.9-9.9l1.415-1.414L7.05 9.88l-1.414 1.414a5 5 0 1 0 7.071 7.071l1.414-1.414 1.415 1.414zm-.708-10.607l1.415 1.415-7.071 7.07-1.415-1.414 7.071-7.07z"}}],Xne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 4h10v2H11V4zm0 4h6v2h-6V8zm0 6h10v2H11v-2zm0 4h6v2h-6v-2zM3 4h6v6H3V4zm2 2v2h2V6H5zm-2 8h6v6H3v-6zm2 2v2h2v-2H5z"}}],qne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 4h13v2H8V4zm-5-.5h3v3H3v-3zm0 7h3v3H3v-3zm0 7h3v3H3v-3zM8 11h13v2H8v-2zm0 7h13v2H8v-2z"}}],Zne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 4h13v2H8V4zM5 3v3h1v1H3V6h1V4H3V3h2zM3 14v-2.5h2V11H3v-1h3v2.5H4v.5h2v1H3zm2 5.5H3v-1h2V18H3v-1h3v4H3v-1h2v-.5zM8 11h13v2H8v-2zm0 7h13v2H8v-2z"}}],Jne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 4h13v2H8V4zM4.5 6.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 6.9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM8 11h13v2H8v-2zm0 7h13v2H8v-2z"}}],Qne=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.243 4.515l-6.738 6.737-.707 2.121-1.04 1.041 2.828 2.829 1.04-1.041 2.122-.707 6.737-6.738-4.242-4.242zm6.364 3.535a1 1 0 0 1 0 1.414l-7.779 7.779-2.12.707-1.415 1.414a1 1 0 0 1-1.414 0l-4.243-4.243a1 1 0 0 1 0-1.414l1.414-1.414.707-2.121 7.779-7.779a1 1 0 0 1 1.414 0l5.657 5.657zm-6.364-.707l1.414 1.414-4.95 4.95-1.414-1.414 4.95-4.95zM4.283 16.89l2.828 2.829-1.414 1.414-4.243-1.414 2.828-2.829z"}}],ere=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm4 12.5v-4l2 2 2-2v4h2v-7h-2l-2 2-2-2H5v7h2zm11-3v-4h-2v4h-2l3 3 3-3h-2z"}}],tre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm1 2v14h16V5H4zm3 10.5H5v-7h2l2 2 2-2h2v7h-2v-4l-2 2-2-2v4zm11-3h2l-3 3-3-3h2v-4h2v4z"}}],nre=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 3c.552 0 1 .448 1 1v16c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16zm-9 2H5v5.999h2V9l3 3-3 3v-2H5v6h6v-2h2v2h6v-6h-2v2l-3-3 3-3v1.999h2V5h-6v2h-2V5zm2 8v2h-2v-2h2zm0-4v2h-2V9h2z"}}],rre=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M21 20c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16c.552 0 1 .448 1 1v16zm-2-9V5h-5.999v2H15l-3 3-3-3h2V5H5v6h2v2H5v6h6v-2H9l3-3 3 3h-1.999v2H19v-6h-2v-2h2zm-8 2H9v-2h2v2zm4 0h-2v-2h2v2z"}}],ore=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M18 3c1.657 0 3 1.343 3 3s-1.343 3-3 3h-3c-1.306 0-2.417-.834-2.829-2H11c-1.1 0-2 .9-2 2v.171c1.166.412 2 1.523 2 2.829 0 1.306-.834 2.417-2 2.829V15c0 1.1.9 2 2 2h1.17c.412-1.165 1.524-2 2.83-2h3c1.657 0 3 1.343 3 3s-1.343 3-3 3h-3c-1.306 0-2.417-.834-2.829-2H11c-2.21 0-4-1.79-4-4H5c-1.657 0-3-1.343-3-3s1.343-3 3-3h2c0-2.21 1.79-4 4-4h1.17c.412-1.165 1.524-2 2.83-2h3zm0 14h-3c-.552 0-1 .448-1 1s.448 1 1 1h3c.552 0 1-.448 1-1s-.448-1-1-1zM8 11H5c-.552 0-1 .448-1 1s.448 1 1 1h3c.552 0 1-.448 1-1s-.448-1-1-1zm10-6h-3c-.552 0-1 .448-1 1s.448 1 1 1h3c.552 0 1-.448 1-1s-.448-1-1-1z"}}],ire=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm14 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}],sre=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M10 2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H8v2h5V9c0-.552.448-1 1-1h6c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-6c-.552 0-1-.448-1-1v-1H8v6h5v-1c0-.552.448-1 1-1h6c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-6c-.552 0-1-.448-1-1v-1H7c-.552 0-1-.448-1-1V8H4c-.552 0-1-.448-1-1V3c0-.552.448-1 1-1h6zm9 16h-4v2h4v-2zm0-8h-4v2h4v-2zM9 4H5v2h4V4z"}}],are=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 1.5c1.321 0 2.484.348 3.447.994.963.645 1.726 1.588 2.249 2.778.522 1.19.804 2.625.804 4.257v4.942c0 1.632-.282 3.068-.804 4.257-.523 1.19-1.286 2.133-2.25 2.778-.962.646-2.125.994-3.446.994-1.321 0-2.484-.348-3.447-.994-.963-.645-1.726-1.588-2.249-2.778-.522-1.19-.804-2.625-.804-4.257V9.529c0-1.632.282-3.068.804-4.257.523-1.19 1.286-2.133 2.25-2.778C9.515 1.848 10.678 1.5 12 1.5zm0 2c-.916 0-1.694.226-2.333.655-.637.427-1.158 1.07-1.532 1.92-.412.94-.635 2.108-.635 3.454v4.942c0 1.346.223 2.514.635 3.453.374.851.895 1.494 1.532 1.921.639.429 1.417.655 2.333.655.916 0 1.694-.226 2.333-.655.637-.427 1.158-1.07 1.532-1.92.412-.94.635-2.108.635-3.454V9.529c0-1.346-.223-2.514-.635-3.453-.374-.851-.895-1.494-1.532-1.921C13.694 3.726 12.916 3.5 12 3.5z"}}],lre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14 1.5V22h-2V3.704L7.5 4.91V2.839l5-1.339z"}}],cre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 7.5a4 4 0 1 0-8 0H6a6 6 0 1 1 10.663 3.776l-7.32 8.723L18 20v2H6v-1.127l9.064-10.802A3.982 3.982 0 0 0 16 7.5z"}}],ure=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 2v1.362L12.809 9.55a6.501 6.501 0 1 1-7.116 8.028l1.94-.486A4.502 4.502 0 0 0 16.5 16a4.5 4.5 0 0 0-6.505-4.03l-.228.122-.69-1.207L14.855 4 6.5 4V2H18z"}}],dre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 1.5V16h3v2h-3v4h-2v-4H4v-1.102L14 1.5h2zM14 16V5.171L6.968 16H14z"}}],hre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 2v2H9.3l-.677 6.445a6.5 6.5 0 1 1-2.93 7.133l1.94-.486A4.502 4.502 0 0 0 16.5 16a4.5 4.5 0 0 0-4.5-4.5c-2.022 0-3.278.639-3.96 1.53l-1.575-1.182L7.5 2H18z"}}],pre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14.886 2l-4.438 7.686A6.5 6.5 0 1 1 6.4 12.7L12.576 2h2.31zM12 11.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9z"}}],fre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 2v1.5L10.763 22H8.574l8.013-18H6V2z"}}],gre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 1.5a5.5 5.5 0 0 1 3.352 9.86C17.24 12.41 18.5 14.32 18.5 16.5c0 3.314-2.91 6-6.5 6s-6.5-2.686-6.5-6c0-2.181 1.261-4.09 3.147-5.141A5.5 5.5 0 0 1 12 1.5zm0 11c-2.52 0-4.5 1.828-4.5 4 0 2.172 1.98 4 4.5 4s4.5-1.828 4.5-4c0-2.172-1.98-4-4.5-4zm0-9a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7z"}}],mre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 1.5a6.5 6.5 0 0 1 5.619 9.77l-6.196 10.729H9.114l4.439-7.686A6.5 6.5 0 1 1 12 1.5zm0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9z"}}],vre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M14 20v-2.157c1.863-1.192 3.5-3.875 3.5-6.959 0-3.073-2-6.029-5.5-6.029s-5.5 2.956-5.5 6.03c0 3.083 1.637 5.766 3.5 6.958V20H3v-2h4.76C5.666 16.505 4 13.989 4 10.884 4 6.247 7.5 3 12 3s8 3.247 8 7.884c0 3.105-1.666 5.621-3.76 7.116H21v2h-7z"}}],yre=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M15 3c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-2v2h4c.552 0 1 .448 1 1v3h2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-6c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1h2v-2H8v2h2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1h2v-3c0-.552.448-1 1-1h4V9H9c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h6zM9 17H5v2h4v-2zm10 0h-4v2h4v-2zM14 5h-4v2h4V5z"}}],bre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 21v-4H7v4H5v-5a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v5h-2zM7 3v4h10V3h2v5a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V3h2zM2 9l4 3-4 3V9zm20 0v6l-4-3 4-3z"}}],xre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 6v15h-2v-5a6 6 0 1 1 0-12h10v2h-3v15h-2V6h-3zm-2 0a4 4 0 1 0 0 8V6z"}}],wre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12.9 6.858l4.242 4.243L7.242 21H3v-4.243l9.9-9.9zm1.414-1.414l2.121-2.122a1 1 0 0 1 1.414 0l2.829 2.829a1 1 0 0 1 0 1.414l-2.122 2.121-4.242-4.242z"}}],kre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.728 9.686l-1.414-1.414L5 17.586V19h1.414l9.314-9.314zm1.414-1.414l1.414-1.414-1.414-1.414-1.414 1.414 1.414 1.414zM7.242 21H3v-4.243L16.435 3.322a1 1 0 0 1 1.414 0l2.829 2.829a1 1 0 0 1 0 1.414L7.243 21z"}}],Ere=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.934 3.036l1.732 1L18.531 6H21v2h-2v4h2v2h-2v7h-2v-7h-3.084c-.325 2.862-1.564 5.394-3.37 7.193l-1.562-1.27c1.52-1.438 2.596-3.522 2.917-5.922L10 14v-2l2-.001V8h-2V6h2.467l-1.133-1.964 1.732-1L14.777 6h1.444l1.713-2.964zM5 13.803l-2 .536v-2.071l2-.536V8H3V6h2V3h2v3h2v2H7v3.197l2-.536v2.07l-2 .536V18.5A2.5 2.5 0 0 1 4.5 21H3v-2h1.5a.5.5 0 0 0 .492-.41L5 18.5v-4.697zM17 8h-3v4h3V8z"}}],Sre=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M12 19c.828 0 1.5.672 1.5 1.5S12.828 22 12 22s-1.5-.672-1.5-1.5.672-1.5 1.5-1.5zm0-17c3.314 0 6 2.686 6 6 0 2.165-.753 3.29-2.674 4.923C13.399 14.56 13 15.297 13 17h-2c0-2.474.787-3.695 3.031-5.601C15.548 10.11 16 9.434 16 8c0-2.21-1.79-4-4-4S8 5.79 8 8v1H6V8c0-3.314 2.686-6 6-6z"}}],Cre=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M21 19v2h-2v-2h2zm-4 0v2h-2v-2h2zm-4 0v2h-2v-2h2zm-4 0v2H7v-2h2zm-4 0v2H3v-2h2zm16-4v2h-2v-2h2zM5 15v2H3v-2h2zm0-4v2H3v-2h2zm11-8c2.687 0 4.882 2.124 4.995 4.783L21 8v5h-2V8c0-1.591-1.255-2.903-2.824-2.995L16 5h-5V3h5zM5 7v2H3V7h2zm0-4v2H3V3h2zm4 0v2H7V3h2z"}}],Tre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9.683 7.562L12 9.88l6.374-6.375a2 2 0 0 1 2.829 0l.707.707L9.683 16.438a4 4 0 1 1-2.121-2.121L9.88 12 7.562 9.683a4 4 0 1 1 2.121-2.121zM6 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 12a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm9.535-6.587l6.375 6.376-.707.707a2 2 0 0 1-2.829 0l-4.96-4.961 2.12-2.122z"}}],Are=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M14 3c.552 0 1 .448 1 1v5h5c.552 0 1 .448 1 1v10c0 .552-.448 1-1 1H10c-.552 0-1-.448-1-1v-5H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h10zm-1 2H5v8h4v-3c0-.552.448-1 1-1h3V5z"}}],_re=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M11 3c.552 0 1 .448 1 1v2h5c.552 0 1 .448 1 1v5h2c.552 0 1 .448 1 1v7c0 .552-.448 1-1 1h-7c-.552 0-1-.448-1-1v-2H7c-.552 0-1-.448-1-1v-5H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h7zm5 5h-4v3c0 .552-.448 1-1 1H8v4h4v-3c0-.552.448-1 1-1h3V8z"}}],Rre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M2 11h2v2H2v-2zm4 0h12v2H6v-2zm14 0h2v2h-2v-2z"}}],Mre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9.583 17.321C8.553 16.227 8 15 8 13.011c0-3.5 2.457-6.637 6.03-8.188l.893 1.378c-3.335 1.804-3.987 4.145-4.247 5.621.537-.278 1.24-.375 1.929-.311 1.804.167 3.226 1.648 3.226 3.489a3.5 3.5 0 0 1-3.5 3.5c-1.073 0-2.099-.49-2.748-1.179z"}}],Ore=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14.417 6.679C15.447 7.773 16 9 16 10.989c0 3.5-2.457 6.637-6.03 8.188l-.893-1.378c3.335-1.804 3.987-4.145 4.247-5.621-.537.278-1.24.375-1.929.311C9.591 12.322 8.17 10.841 8.17 9a3.5 3.5 0 0 1 3.5-3.5c1.073 0 2.099.49 2.748 1.179z"}}],Ire=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M19 3l4 5h-3v12h-2V8h-3l4-5zm-5 15v2H3v-2h11zm0-7v2H3v-2h11zm-2-7v2H3V4h9z"}}],Lre=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 4v12h3l-4 5-4-5h3V4h2zm-8 14v2H3v-2h9zm2-7v2H3v-2h11zm0-7v2H3V4h11z"}}],Nre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 9v4h16V9h2v5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V9h2z"}}],$re=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M17.5 2.5L23 12l-5.5 9.5h-11L1 12l5.5-9.5h11zm-1.153 2H7.653L3.311 12l4.342 7.5h8.694l4.342-7.5-4.342-7.5zM11 15h2v2h-2v-2zm0-8h2v6h-2V7z"}}],Dre=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 3c.552 0 1 .448 1 1v16c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16zm-9 2H5v14h6v-4h2v4h6V5h-6v4h-2V5zm4 4l3 3-3 3v-2H9v2l-3-3 3-3v2h6V9z"}}],Pre=[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20 3c.552 0 1 .448 1 1v16c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16zm-1 2H5v5.999L9 11v2H5v6h14v-6h-4v-2l4-.001V5zm-7 1l3 3h-2v6h2l-3 3-3-3h2V9H9l3-3z"}}],zre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 9h-2V6H5V4h14v2h-6v3zm0 6v5h-2v-5h2zM3 11h18v2H3v-2z"}}],Fre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.154 14c.23.516.346 1.09.346 1.72 0 1.342-.524 2.392-1.571 3.147C14.88 19.622 13.433 20 11.586 20c-1.64 0-3.263-.381-4.87-1.144V16.6c1.52.877 3.075 1.316 4.666 1.316 2.551 0 3.83-.732 3.839-2.197a2.21 2.21 0 0 0-.648-1.603l-.12-.117H3v-2h18v2h-3.846zm-4.078-3H7.629a4.086 4.086 0 0 1-.481-.522C6.716 9.92 6.5 9.246 6.5 8.452c0-1.236.466-2.287 1.397-3.153C8.83 4.433 10.271 4 12.222 4c1.471 0 2.879.328 4.222.984v2.152c-1.2-.687-2.515-1.03-3.946-1.03-2.48 0-3.719.782-3.719 2.346 0 .42.218.786.654 1.099.436.313.974.562 1.613.75.62.18 1.297.414 2.03.699z"}}],Bre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 6v13H9V6H3V4h14v2h-6zm8.55 10.58a.8.8 0 1 0-1.32-.36l-1.154.33A2.001 2.001 0 0 1 19 14a2 2 0 0 1 1.373 3.454L18.744 19H21v1h-4v-1l2.55-2.42z"}}],Hre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5.596 4L10.5 9.928 15.404 4H18l-6.202 7.497L18 18.994V19h-2.59l-4.91-5.934L5.59 19H3v-.006l6.202-7.497L3 4h2.596zM21.55 16.58a.8.8 0 1 0-1.32-.36l-1.155.33A2.001 2.001 0 0 1 21 14a2 2 0 0 1 1.373 3.454L20.744 19H23v1h-4v-1l2.55-2.42z"}}],Ure=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 11h14v2H5z"}}],Wre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 7v13H9V7H3V5h12v2h-4zm8.55-.42a.8.8 0 1 0-1.32-.36l-1.154.33A2.001 2.001 0 0 1 19 4a2 2 0 0 1 1.373 3.454L18.744 9H21v1h-4V9l2.55-2.42z"}}],Vre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5.596 5l4.904 5.928L15.404 5H18l-6.202 7.497L18 19.994V20h-2.59l-4.91-5.934L5.59 20H3v-.006l6.202-7.497L3 5h2.596zM21.55 6.58a.8.8 0 1 0-1.32-.36l-1.155.33A2.001 2.001 0 0 1 21 4a2 2 0 0 1 1.373 3.454L20.744 9H23v1h-4V9l2.55-2.42z"}}],jre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fillRule:"nonzero",d:"M13 10v4h6v-4h-6zm-2 0H5v4h6v-4zm2 9h6v-3h-6v3zm-2 0v-3H5v3h6zm2-14v3h6V5h-6zm-2 0H5v3h6V5zM4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"}}],Gre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 8h16V5H4v3zm10 11v-9h-4v9h4zm2 0h4v-9h-4v9zm-8 0v-9H4v9h4zM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"}}],Kre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2zM9 5a2 2 0 1 0 0 4V5zm8 12v-2.5l4 3.5-4 3.5V19H5v-2h12z"}}],Yre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2zM9 5a2 2 0 1 0 0 4V5zM7 17h12v2H7v2.5L3 18l4-3.5V17z"}}],Xre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 17h10v-2.5l3.5 3.5-3.5 3.5V19H7v2.5L3.5 18 7 14.5V17zm6-11v9h-2V6H5V4h14v2h-6z"}}],qre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15 18h1.5a2.5 2.5 0 1 0 0-5H3v-2h13.5a4.5 4.5 0 1 1 0 9H15v2l-4-3 4-3v2zM3 4h18v2H3V4zm6 14v2H3v-2h6z"}}],Zre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 6v15h-2V6H5V4h14v2z"}}],Jre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301 14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"}}],Qre=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z"}}],eoe=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 3v9a4 4 0 1 0 8 0V3h2v9a6 6 0 1 1-12 0V3h2zM4 20h16v2H4v-2z"}}],toe=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 19h16v-7h2v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-8h2v7zM14 9v6h-4V9H5l7-7 7 7h-5z"}}],noe=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 3.993C3 3.445 3.445 3 3.993 3h16.014c.548 0 .993.445.993.993v16.014a.994.994 0 0 1-.993.993H3.993A.994.994 0 0 1 3 20.007V3.993zM5 5v14h14V5H5zm5.622 3.415l4.879 3.252a.4.4 0 0 1 0 .666l-4.88 3.252a.4.4 0 0 1-.621-.332V8.747a.4.4 0 0 1 .622-.332z"}}],roe=[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 21v-2h3.662l1.234-7H5v-2h3.249l.881-5H4V3h16v2h-8.839l-.882 5H18v9h3v2H3zm13-9H9.927l-1.235 7H16v-7z"}}];const ooe=Object.freeze(Object.defineProperty({__proto__:null,ab:xte,addFill:wte,addLine:kte,alertLine:Ete,alignBottom:Ste,alignCenter:Cte,alignJustify:Tte,alignLeft:Ate,alignRight:_te,alignTop:Rte,alignVertically:Mte,appsLine:Ote,arrowDownSFill:Ite,arrowGoBackFill:Lte,arrowGoForwardFill:Nte,arrowLeftSFill:$te,arrowRightSFill:Dte,arrowUpSFill:Pte,asterisk:zte,attachment2:Fte,bold:Bte,bracesLine:Hte,bringForward:Ute,bringToFront:Wte,chatNewLine:Vte,checkboxCircleLine:jte,checkboxMultipleLine:Gte,clipboardFill:Kte,clipboardLine:Yte,closeCircleLine:Xte,closeFill:qte,closeLine:Zte,codeLine:Jte,codeView:Qte,deleteBinFill:ene,deleteBinLine:tne,deleteColumn:nne,deleteRow:rne,doubleQuotesL:one,doubleQuotesR:ine,download2Fill:sne,dragDropLine:ane,emphasis:cne,emphasisCn:lne,englishInput:une,errorWarningLine:dne,externalLinkFill:hne,fileCopyLine:pne,flowChart:fne,fontColor:gne,fontSize:vne,fontSize2:mne,formatClear:yne,fullscreenExitLine:bne,fullscreenLine:xne,functions:wne,galleryUploadLine:kne,h1:Ene,h2:Sne,h3:Cne,h4:Tne,h5:Ane,h6:_ne,hashtag:Rne,heading:Mne,imageAddLine:One,imageEditLine:Ine,imageLine:Lne,indentDecrease:Nne,indentIncrease:$ne,informationLine:Dne,inputCursorMove:Pne,insertColumnLeft:zne,insertColumnRight:Fne,insertRowBottom:Bne,insertRowTop:Hne,italic:Une,layoutColumnLine:Wne,lineHeight:Vne,link:Yne,linkM:jne,linkUnlink:Kne,linkUnlinkM:Gne,listCheck:qne,listCheck2:Xne,listOrdered:Zne,listUnordered:Jne,markPenLine:Qne,markdownFill:ere,markdownLine:tre,mergeCellsHorizontal:nre,mergeCellsVertical:rre,mindMap:ore,moreFill:ire,nodeTree:sre,number0:are,number1:lre,number2:cre,number3:ure,number4:dre,number5:hre,number6:pre,number7:fre,number8:gre,number9:mre,omega:vre,organizationChart:yre,pageSeparator:bre,paragraph:xre,pencilFill:wre,pencilLine:kre,pinyinInput:Ere,questionMark:Sre,roundedCorner:Cre,scissorsFill:Tre,sendBackward:Are,sendToBack:_re,separator:Rre,singleQuotesL:Mre,singleQuotesR:Ore,sortAsc:Ire,sortDesc:Lre,space:Nre,spamLine:$re,splitCellsHorizontal:Dre,splitCellsVertical:Pre,strikethrough:Fre,strikethrough2:zre,subscript:Hre,subscript2:Bre,subtractLine:Ure,superscript:Vre,superscript2:Wre,table2:jre,tableLine:Gre,text:Zre,textDirectionL:Kre,textDirectionR:Yre,textSpacing:Xre,textWrap:qre,translate:Qre,translate2:Jre,underline:eoe,upload2Fill:toe,videoLine:noe,wubiInput:roe},Symbol.toStringTag,{value:"Module"}));function ioe(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i);if(!s)return!1;let l=r?n.tr:null;return soe(l,s,t,e)?(r&&r(l.scrollIntoView()),!0):!1}}function soe(t,e,n,r=null){let o=!1,i=e,s=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let a=s.resolve(e.start-2);i=new ma(a,a,e.depth),e.endIndex=0;c--)i=J.from(n[c].type.create(n[c].attrs,i));t.step(new Gt(e.start-(r?2:0),e.end,e.start,e.end,new ae(i,0,0),n.length,!0));let s=0;for(let c=0;cs.childCount>0&&s.firstChild.type==t);return i?n?r.node(i.depth-1).type==t?coe(e,n,t,i):uoe(e,n,i):!0:!1}}function coe(t,e,n,r){let o=t.tr,i=r.end,s=r.$to.end(r.depth);ig;f--)p-=o.child(f).nodeSize,r.delete(p-1,p+1);let i=r.doc.resolve(n.start),s=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let l=n.startIndex==0,a=n.endIndex==o.childCount,u=i.node(-1),c=i.index(-1);if(!u.canReplace(c+(l?0:1),c+1,s.content.append(a?J.empty:J.from(o))))return!1;let d=i.pos,h=d+s.nodeSize;return r.step(new Gt(d-(l?1:0),h+(a?1:0),d+1,h-1,new ae((l?J.empty:J.from(o.copy(J.empty))).append(a?J.empty:J.from(o.copy(J.empty))),l?0:1,a?0:1),l?0:1)),e(r.scrollIntoView()),!0}var doe=Object.defineProperty,hoe=Object.getOwnPropertyDescriptor,Co=(t,e,n,r)=>{for(var o=r>1?void 0:r?hoe(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&doe(e,n,o),o};function Aw(t){var e;return!!((e=t.spec.group)!=null&&e.includes(we.ListContainerNode))}function poe(t){var e;return!!((e=t.spec.group)!=null&&e.includes(we.ListItemNode))}function ra(t){return Aw(t.type)}function oa(t){return poe(t.type)}function _w(t,e){return n=>{const{dispatch:r,tr:o}=n,i=t0(o,n.state),{$from:s,$to:l}=o.selection,a=s.blockRange(l);if(!a)return!1;const u=Xu({predicate:c=>Aw(c.type),selection:o.selection});if(u&&a.depth-u.depth<=1&&a.startIndex===0){if(u.node.type===t)return nN(e)(n);if(Aw(u.node.type))return t.validContent(u.node.content)?(r==null||r(o.setNodeMarkup(u.pos,t)),!0):foe(o,u,t,e)?(r==null||r(o.scrollIntoView()),!0):!1}return ioe(t)(i,r)}}function eN(t,e=["checked"]){return function({tr:n,dispatch:r,state:o}){var i,s;const l=sz(t,o.schema),{$from:a,$to:u}=n.selection;if(Ju(n.selection)&&n.selection.node.isBlock||a.depth<2||!a.sameParent(u))return!1;const c=a.node(-1);if(c.type!==l)return!1;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==l||a.index(-2)!==a.node(-2).childCount-1)return!1;if(r){const g=a.index(-1)>0;let m=J.empty;for(let b=a.depth-(g?1:2);b>=a.depth-3;b--)m=J.from(a.node(b).copy(m));const v=((i=l.contentMatch.defaultType)==null?void 0:i.createAndFill())||void 0;m=m.append(J.from(l.createAndFill(null,v)||void 0));const y=a.indexAfter(-1)!e.includes(g))),h=u.pos===a.end()?c.contentMatchAt(0).defaultType:null,p={...a.node().attrs};n.delete(a.pos,u.pos);const f=h?[{type:l,attrs:d},{type:h,attrs:p}]:[{type:l,attrs:d}];return zl(n.doc,a.pos,2)?(r&&r(n.split(a.pos,2,f).scrollIntoView()),!0):!1}}function foe(t,e,n,r){const o=e.node,i=t.doc.resolve(e.start),s=i.node(-1),l=i.index(-1);if(!s||!s.canReplace(l,l+1,J.from(n.create())))return!1;const a=[];for(let p=0;pm;g--)f-=o.child(g).nodeSize,r.delete(f-1,f+1);const s=r.doc.resolve(n.start),l=s.nodeAfter;if(!l||r.mapping.slice(i).map(n.end)!==n.start+l.nodeSize)return!1;const a=n.startIndex===0,u=n.endIndex===o.childCount,c=s.node(-1),d=s.index(-1);if(!c.canReplace(d+(a?0:1),d+1,l.content.append(u?J.empty:J.from(o))))return!1;const h=s.pos,p=h+l.nodeSize;return r.step(new Gt(h-(a?1:0),p+(u?1:0),h+1,p-1,new ae((a?J.empty:J.from(o.copy(J.empty))).append(u?J.empty:J.from(o.copy(J.empty))),a?0:1,u?0:1),a?0:1)),e(r.scrollIntoView()),!0}function tN(t,e){const n=e||t.selection.$from;let r=[],o,i,s,l;for(let u=n.depth;u>=0;u--){if(i=n.node(u),o=n.index(u),s=i.maybeChild(o-1),l=i.maybeChild(o),s&&l&&s.type.name===l.type.name&&ra(s)){const c=n.before(u+1);r.push(c)}if(o=n.indexAfter(u),s=i.maybeChild(o-1),l=i.maybeChild(o),s&&l&&s.type.name===l.type.name&&ra(s)){const c=n.after(u+1);r.push(c)}}r=[...new Set(r)].sort((u,c)=>c-u);let a=!1;for(const u of r)Lu(t.doc,u)&&(t.join(u),a=!0);return a}function nN(t){return e=>{const{dispatch:n,tr:r}=e,o=t0(r,e.state),i=voe(t,r.selection);return i?(n&&moe(o,n,i),!0):!1}}function voe(t,e){const{$from:n,$to:r}=e;return n.blockRange(r,i=>{var s;return((s=i.firstChild)==null?void 0:s.type)===t})}function tv(t){const{$from:e,$to:n}=t;return e.blockRange(n,ra)}function yoe(t){const e=t.selection.$from,n=e.blockRange();if(!n||!oa(n.parent)||n.startIndex!==0)return!1;const r=e.node(n.depth-2),o=e.index(n.depth),i=e.index(n.depth-1),s=e.index(n.depth-2),l=r.maybeChild(s-1),a=l==null?void 0:l.lastChild;if(o!==0||i!==0)return!1;if(l&&ra(l)&&a&&oa(a))return lu({listType:l.type,itemType:a.type,tr:t});if(oa(r)){const u=r,c=e.node(n.depth-3);if(ra(c))return lu({listType:c.type,itemType:u.type,tr:t})}return!1}function rN({view:t}){if(!t)return!1;{const e=t.state.selection.$cursor;if(!e||e.parentOffset>0)return!1;const n=e.blockRange();if(!n||!oa(n.parent)||n.startIndex!==0)return!1}{const e=t.state.tr;yoe(e)&&t.dispatch(e)}{const e=t.state.selection.$cursor;if(!e||e.parentOffset>0)return!1;const n=e.blockRange();if(!n||!oa(n.parent)||n.startIndex!==0)return!1;const r=e.index(n.depth),o=e.index(n.depth-1),i=e.index(n.depth-2),s=n.depth-2>=1&&oa(e.node(n.depth-2));r===0&&o===0&&i<=1&&s&&loe(n.parent.type)(t.state,t.dispatch)}return WA(t.state,t.dispatch,t),!0}function oN({node:t,mark:e,updateDOM:n,updateMark:r}){const o=document.createElement("label");o.contentEditable="false",o.classList.add(Rs.LIST_ITEM_MARKER_CONTAINER),o.append(e);const i=document.createElement("div"),s=document.createElement("li");s.classList.add(Rs.LIST_ITEM_WITH_CUSTOM_MARKER),s.append(o),s.append(i);const l=a=>a.type!==t.type?!1:(t=a,n(t,s),r(t,e),!0);return l(t),{dom:s,contentDOM:i,update:l}}function boe(t,e){const n=t.node(e.depth-1),r=t.node(e.depth-2);return!oa(n)||!ra(r)?!1:{parentItem:n,parentList:r}}function xoe(t,e){const n=e.parent,r=e.parent.child(e.endIndex-1),o=e.end,i=e.$to.end(e.depth);return oEoe(t)?(e==null||e(t.scrollIntoView()),!0):!1;function Coe(t,e,n){let r,o,i,s;const l=e.doc;if(n.startIndex>=1){r=t.child(n.startIndex-1),o=t,s=l.resolve(n.start).start(n.depth),i=s+1;for(let a=0;a=1){const u=e.node(n.depth-1),c=e.start(n.depth-1);if(o=u.child(a-1),!ra(o))return!1;s=c+1;for(let d=0;d=n.depth+2?e.end(n.depth+2):n.end-1,l=n.end;return s+1>=l?(r=t.slice(i,l),o=null):(r=t.slice(i,s),o=t.slice(s+1,l-1)),{selectedSlice:r,unselectedSlice:o}}function Aoe(t){const{$from:e,$to:n}=t.selection,r=tv(t.selection);if(!r)return!1;const o=t.doc.resolve(r.start).node();if(!ra(o))return!1;const i=Coe(o,e,r);if(!i)return!1;const{previousItem:s,previousList:l,previousItemStart:a}=i,{selectedSlice:u,unselectedSlice:c}=Toe(t.doc,n,r),d=s.content.append(J.fromArray([o.copy(u.content)])).append(c?c.content:J.empty);t.deleteRange(r.start,r.end);const h=a+s.nodeSize-2,p=s.copy(d);return p.check(),t.replaceRangeWith(a-1,h+1,p),t.setSelection(l===o?Oe.between(t.doc.resolve(e.pos),t.doc.resolve(n.pos)):Oe.between(t.doc.resolve(e.pos-2),t.doc.resolve(n.pos-2))),!0}var _oe=({tr:t,dispatch:e})=>Aoe(t)?(e==null||e(t.scrollIntoView()),!0):!1,iN=class extends ct{get name(){return"listItemShared"}createKeymap(){const t={Tab:_oe,"Shift-Tab":Soe,Backspace:rN,"Mod-Backspace":rN};if(xr.isMac){const e={"Ctrl-h":t.Backspace,"Alt-Backspace":t["Mod-Backspace"]};return{...t,...e}}return t}createPlugin(){return{appendTransaction:(t,e,n)=>{const r=n.tr;return tN(r)?r:null}}}},dl=class extends Mn{get name(){return"listItem"}createTags(){return[we.ListItemNode]}createNodeSpec(t,e){return{content:"paragraph block*",defining:!0,draggable:!1,...e,attrs:{...t.defaults(),closed:{default:!1},nested:{default:!1}},parseDOM:[{tag:"li",getAttrs:t.parse,priority:tt.Lowest},...e.parseDOM??[]],toDOM:n=>["li",t.dom(n),0]}}createNodeViews(){return this.options.enableCollapsible?(t,e,n)=>{const r=document.createElement("div");return r.classList.add(Rs.COLLAPSIBLE_LIST_ITEM_BUTTON),r.contentEditable="false",r.addEventListener("click",()=>{if(r.classList.contains("disabled"))return;const o=n(),i=_e.create(e.state.doc,o);return e.dispatch(e.state.tr.setSelection(i)),this.store.commands.toggleListItemClosed(),!0}),oN({mark:r,node:t,updateDOM:Roe,updateMark:Moe})}:{}}createKeymap(){return{Enter:eN(this.type)}}createExtensions(){return[new iN]}toggleListItemClosed(t){return({state:{tr:e,selection:n},dispatch:r})=>{if(!Ju(n)||n.node.type.name!==this.name)return!1;const{node:o,from:i}=n;return t=o1(t)?t:!o.attrs.closed,r==null||r(e.setNodeMarkup(i,void 0,{...o.attrs,closed:t})),!0}}liftListItemOutOfList(t){return nN(t??this.type)}};Co([le()],dl.prototype,"toggleListItemClosed",1),Co([le()],dl.prototype,"liftListItemOutOfList",1),dl=Co([Ne({defaultOptions:{enableCollapsible:!1},staticKeys:["enableCollapsible"]})],dl);function Roe(t,e){t.attrs.closed?e.classList.add(Rs.COLLAPSIBLE_LIST_ITEM_CLOSED):e.classList.remove(Rs.COLLAPSIBLE_LIST_ITEM_CLOSED)}function Moe(t,e){t.childCount<=1?e.classList.add("disabled"):e.classList.remove("disabled")}var Jh=class extends Mn{get name(){return"bulletList"}createTags(){return[we.Block,we.ListContainerNode]}createNodeSpec(t,e){return{content:"listItem+",...e,attrs:t.defaults(),parseDOM:[{tag:"ul",getAttrs:t.parse},...e.parseDOM??[]],toDOM:n=>["ul",t.dom(n),0]}}createNodeViews(){return this.options.enableSpine?(t,e,n)=>{var r;const o=document.createElement("div");o.style.position="relative";const i=n(),s=e.state.doc.resolve(i+1),l=s.node(s.depth-1);if(!(((r=l==null?void 0:l.type)==null?void 0:r.name)!=="listItem")){const c=document.createElement("div");c.contentEditable="false",c.classList.add(Rs.LIST_SPINE),c.addEventListener("click",d=>{const h=n(),p=e.state.doc.resolve(h+1),f=p.start(p.depth-1),g=_e.create(e.state.doc,f-1);e.dispatch(e.state.tr.setSelection(g)),this.store.commands.toggleListItemClosed(),d.preventDefault(),d.stopPropagation()}),o.append(c)}const u=document.createElement("ul");return u.classList.add(Rs.UL_LIST_CONTENT),o.append(u),{dom:o,contentDOM:u}}:{}}createExtensions(){return[new dl({priority:tt.Low,enableCollapsible:this.options.enableSpine})]}toggleBulletList(){return _w(this.type,_t(this.store.schema.nodes,"listItem"))}listShortcut(t){return this.toggleBulletList()(t)}createInputRules(){const t=/^\s*([*+-])\s$/;return[Up(t,this.type),new zr(t,(e,n,r,o)=>{const i=e.tr;return i.deleteRange(r,o),lu({listType:this.type,itemType:_t(this.store.schema.nodes,"listItem"),tr:i})?i:null})]}};Co([le({icon:"listUnordered",label:({t})=>t(A1.BULLET_LIST_LABEL)})],Jh.prototype,"toggleBulletList",1),Co([Zt({shortcut:oe.BulletList,command:"toggleBulletList"})],Jh.prototype,"listShortcut",1),Jh=Co([Ne({defaultOptions:{enableSpine:!1},staticKeys:["enableSpine"]})],Jh);var Qh=class extends Mn{get name(){return"orderedList"}createTags(){return[we.Block,we.ListContainerNode]}createNodeSpec(t,e){return{content:"listItem+",...e,attrs:{...t.defaults(),order:{default:1}},parseDOM:[{tag:"ol",getAttrs:n=>Ft(n)?{...t.parse(n),order:+(n.getAttribute("start")??1)}:{}},...e.parseDOM??[]],toDOM:n=>{const r=t.dom(n);return n.attrs.order===1?["ol",r,0]:["ol",{...r,start:n.attrs.order},0]}}}createExtensions(){return[new dl({priority:tt.Low})]}toggleOrderedList(){return _w(this.type,_t(this.store.schema.nodes,"listItem"))}listShortcut(t){return this.toggleOrderedList()(t)}createInputRules(){const t=/^(\d+)\.\s$/;return[Up(t,this.type,e=>({order:+_t(e,1)}),(e,n)=>n.childCount+n.attrs.order===+_t(e,1)),new zr(t,(e,n,r,o)=>{const i=e.tr;if(i.deleteRange(r,o),!lu({listType:this.type,itemType:_t(this.store.schema.nodes,"listItem"),tr:i}))return null;const l=+_t(n,1);if(l!==1){const a=ti({selection:i.selection,types:this.type});a&&i.setNodeMarkup(a.pos,void 0,{order:l})}return i})]}};Co([le({icon:"listOrdered",label:({t})=>t(A1.ORDERED_LIST_LABEL)})],Qh.prototype,"toggleOrderedList",1),Co([Zt({shortcut:oe.OrderedList,command:"toggleOrderedList"})],Qh.prototype,"listShortcut",1),Qh=Co([Ne({})],Qh);var sN=class extends Mn{get name(){return"taskListItem"}createTags(){return[we.ListItemNode]}createNodeSpec(t,e){return{content:"paragraph block*",defining:!0,draggable:!1,...e,attrs:{...t.defaults(),checked:{default:!1}},parseDOM:[{tag:"li[data-task-list-item]",getAttrs:n=>{let r=!1;return Ft(n)&&n.getAttribute("data-checked")!==null&&(r=!0),{checked:r,...t.parse(n)}},priority:tt.Medium},...e.parseDOM??[]],toDOM:n=>["li",{...t.dom(n),"data-task-list-item":"","data-checked":n.attrs.checked?"":void 0},0]}}createNodeViews(){return(t,e,n)=>{const r=document.createElement("input");return r.type="checkbox",r.classList.add(Rs.LIST_ITEM_CHECKBOX),r.contentEditable="false",r.addEventListener("click",o=>{e.editable||o.preventDefault()}),r.addEventListener("change",()=>{const o=n(),i=e.state.doc.resolve(o+1);this.store.commands.toggleCheckboxChecked({$pos:i})}),r.checked=t.attrs.checked,oN({node:t,mark:r,updateDOM:Ooe,updateMark:Ioe})}}createKeymap(){return{Enter:eN(this.type)}}createExtensions(){return[new iN]}toggleCheckboxChecked(t){let e,n;return typeof t=="boolean"?e=t:t&&(e=t.checked,n=t.$pos),({tr:r,dispatch:o})=>{const i=ti({selection:n??r.selection.$from,types:this.type});if(!i)return!1;const{node:s,pos:l}=i,a={...s.attrs,checked:e??!s.attrs.checked};return o==null||o(r.setNodeMarkup(l,void 0,a)),!0}}createInputRules(){const t=/^\s*(\[( ?|x|X)]\s)$/;return[Up(t,this.type,e=>({checked:["x","X"].includes(Jl(e,2))})),new zr(t,(e,n,r,o)=>{const i=e.tr;if(i.deleteRange(r,o),!lu({listType:_t(this.store.schema.nodes,"taskList"),itemType:this.type,tr:i}))return null;const l=["x","X"].includes(Jl(n,2));if(l){const a=ti({selection:i.selection,types:this.type});a&&i.setNodeMarkup(a.pos,void 0,{checked:l})}return i})]}};Co([le()],sN.prototype,"toggleCheckboxChecked",1);function Ooe(t,e){t.attrs.checked?e.setAttribute("data-checked",""):e.removeAttribute("data-checked"),e.setAttribute("data-task-list-item","")}function Ioe(t,e){e.checked=!!t.attrs.checked}var aN=class extends Mn{get name(){return"taskList"}createTags(){return[we.Block,we.ListContainerNode]}createNodeSpec(t,e){return{content:"taskListItem+",...e,attrs:t.defaults(),parseDOM:[{tag:"ul[data-task-list]",getAttrs:t.parse,priority:tt.Medium},...e.parseDOM??[]],toDOM:n=>["ul",{...t.dom(n),"data-task-list":""},0]}}createExtensions(){return[new sN({})]}toggleTaskList(){return _w(this.type,_t(this.store.schema.nodes,"taskListItem"))}listShortcut(t){return this.toggleTaskList()(t)}};Co([le({icon:"checkboxMultipleLine",label:({t})=>t(A1.TASK_LIST_LABEL)})],aN.prototype,"toggleTaskList",1),Co([Zt({shortcut:oe.TaskList,command:"toggleTaskList"})],aN.prototype,"listShortcut",1);var mi,Loe=(t=document)=>mi||(mi=t.createElement("div"),mi.setAttribute("id","a11y-status-message"),mi.setAttribute("role","status"),mi.setAttribute("aria-live","polite"),mi.setAttribute("aria-relevant","additions text"),Object.assign(mi.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),t.body.append(mi),mi);OS(500,()=>{Loe().textContent=""});function lN(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function cN(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function Rw(t,e){if(t.clientHeighte||i>t&&s=e&&l>=n?i-t-r:s>e&&ln?s-e+o:0}var Noe=function(t,e){var n=window,r=e.scrollMode,o=e.block,i=e.inline,s=e.boundary,l=e.skipOverflowHiddenElements,a=typeof s=="function"?s:function(Me){return Me!==s};if(!lN(t))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,h=[],p=t;lN(p)&&a(p);){if((p=(c=(u=p).parentElement)==null?u.getRootNode().host||null:c)===d){h.push(p);break}p!=null&&p===document.body&&Rw(p)&&!Rw(document.documentElement)||p!=null&&Rw(p,l)&&h.push(p)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,y=t.getBoundingClientRect(),b=y.height,x=y.width,k=y.top,w=y.right,S=y.bottom,T=y.left,C=o==="start"||o==="nearest"?k:o==="end"?S:k+b/2,O=i==="center"?T+x/2:i==="end"?w:T,R=[],_=0;_=0&&T>=0&&S<=g&&w<=f&&k>=N&&S<=$&&T>=P&&w<=L)return R;var F=getComputedStyle(A),H=parseInt(F.borderLeftWidth,10),W=parseInt(F.borderTopWidth,10),B=parseInt(F.borderRightWidth,10),U=parseInt(F.borderBottomWidth,10),G=0,Y=0,X="offsetWidth"in A?A.offsetWidth-A.clientWidth-H-B:0,Z="offsetHeight"in A?A.offsetHeight-A.clientHeight-W-U:0,ne="offsetWidth"in A?A.offsetWidth===0?0:I/A.offsetWidth:0,de="offsetHeight"in A?A.offsetHeight===0?0:M/A.offsetHeight:0;if(d===A)G=o==="start"?C:o==="end"?C-g:o==="nearest"?nv(v,v+g,g,W,U,v+C,v+C+b,b):C-g/2,Y=i==="start"?O:i==="center"?O-f/2:i==="end"?O-f:nv(m,m+f,f,H,B,m+O,m+O+x,x),G=Math.max(0,G+v),Y=Math.max(0,Y+m);else{G=o==="start"?C-N-W:o==="end"?C-$+U+Z:o==="nearest"?nv(N,$,M,W,U+Z,C,C+b,b):C-(N+M/2)+Z/2,Y=i==="start"?O-P-H:i==="center"?O-(P+I/2)+X/2:i==="end"?O-L+B+X:nv(P,L,I,H,B+X,O,O+x,x);var Ie=A.scrollLeft,ve=A.scrollTop;C+=ve-(G=Math.max(0,Math.min(ve+G/de,A.scrollHeight-M/de+Z))),O+=Ie-(Y=Math.max(0,Math.min(Ie+Y/ne,A.scrollWidth-I/ne+X)))}R.push({el:A,top:G,left:Y})}return R};typeof ur=="object"&&ur.__esModule&&ur.default&&ur.default,Rp(Noe);var $oe=typeof document<"u"?D.useLayoutEffect:D.useEffect;function Doe(t){const e=D.useRef();return $oe(()=>{e.current=t}),e.current}function Poe(t,e){const[n,r]=D.useState([]),[o,i]=D.useState(()=>oy(t)),[s,l]=D.useState([]),a=D.useRef(t),u=Doe(o);return a.current=t,Sh(dc,({addCustomHandler:c})=>{const d=oy(a.current),h=c("positioner",d);return i(d),h},e),D.useLayoutEffect(()=>{const c=o.addListener("update",h=>{const p=[];for(const{id:f,data:g,setElement:m}of h){const v=y=>{y&&m(y)};p.push({id:f,data:g,ref:v})}l(p)}),d=o.addListener("done",h=>{r(h)});return u!=null&&u.recentUpdate&&o.onActiveChanged(u==null?void 0:u.recentUpdate),()=>{c(),d()}},[o,u]),D.useMemo(()=>{const c=[];for(const[d,{ref:h,data:p,id:f}]of s.entries()){const g=n[d],{element:m,position:v={}}=g??{},y={...Rf,...$S(v)};c.push({ref:h,element:m,data:p,key:f,...y})}return c},[s,n])}function uN(t,e){const n=e==null||o1(e)?[t]:e,r=o1(e)?e:!0,o=D.useRef(Nl()),s=Poe(t,n)[0];return D.useMemo(()=>s&&r?{...s,active:!0}:{...Rf,ref:void 0,data:{},active:!1,key:o.current},[r,s])}function Mw(t,e){return Xe(t)?t(e):t}function zoe(t){return ke(t[0])}function Foe(t,e){var n;return ke(t)?t:Ot(t)?zoe(t)?t[0]??"":((n=t.find(r=>DS(r.attrs,e))??t[0])==null?void 0:n.shortcut)??"":t.shortcut}var Boe={title:t=>x4(t),upper:t=>t.toLocaleUpperCase(),lower:t=>t.toLocaleLowerCase()};function Hoe(t,e){const{casing:n="title",namedAsSymbol:r=!1,modifierAsSymbol:o=!0,separator:i=" ",t:s}=e,l=zz(t),a=[],u=Boe[n];for(const c of l){if(c.type==="char"){a.push(u(c.key));continue}if(c.type==="named"){const h=r===!0||Ot(r)&&Qn(r,c.key)?c.symbol??s(c.i18n):s(c.i18n);a.push(u(h));continue}const d=o===!0||Ot(o)&&Qn(o,c.key)?c.symbol:s(c.i18n);a.push(u(d))}return a.join(i)}var dN=({commandName:t,active:e,enabled:n,attrs:r})=>{const{t:o}=qK(),{getCommandOptions:i}=Ch(),s=i(t),{description:l,label:a,icon:u,shortcut:c}=s||{},d=D.useMemo(()=>({active:e,attrs:r,enabled:n,t:o}),[e,r,n,o]),h=D.useMemo(()=>{if(c)return Hoe(Foe(c,r??{}),{t:o,separator:""})},[c,r,o]);return D.useMemo(()=>({description:Mw(l,d),label:Mw(a,d),icon:Mw(u,d),shortcut:h}),[d,l,a,u,h])},Uoe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},hN=D.createContext(Uoe);hN.Provider;function pN(t){return t.map((e,n)=>D.createElement(e.tag,{key:n,...e.attr},pN(e.child??[])))}var rv=t=>{const{name:e}=t;return ee.createElement(Woe,{...t},pN(ooe[e]))},Woe=t=>{const e=n=>{const r=t.size??n.size??"1em";let o;n.className&&(o=n.className),t.className&&(o=(o?`${o} `:"")+t.className);const{title:i,...s}=t;return ee.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",...n.attr,...s,className:o,style:{color:t.color??n.color,...n.style,...t.style},height:r,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},i&&ee.createElement("title",null,i),t.children)};return ee.createElement(hN.Consumer,null,e)},Voe=t=>rs(t)?!!t.name:!1,joe=({icon:t})=>ke(t)?ee.createElement(rv,{name:t,size:"1rem"}):t,Goe=({icon:t,children:e})=>{if(!Voe(t))return ee.createElement(ee.Fragment,null,e);const{sub:n,sup:r}=t,o=n??r,i=n!==void 0;return o===void 0?ee.createElement(ee.Fragment,null,e):ee.createElement(dee,{anchorOrigin:{vertical:i?"bottom":"top",horizontal:"right"},badgeContent:o,sx:{"& > .MuiBadge-badge":{bgcolor:"background.paper",color:"text.secondary",minWidth:12,height:12,margin:"2px 0",padding:"1px"}}},e)},kt=({commandName:t,active:e=!1,enabled:n,attrs:r,onSelect:o,onChange:i,icon:s,displayShortcut:l=!0,"aria-label":a,label:u,...c})=>{const d=D.useCallback((y,b)=>{o(),i==null||i(y,b)},[o,i]),h=D.useCallback(y=>{y.preventDefault()},[]),p=dN({commandName:t,active:e,enabled:n,attrs:r});let f=null;p.icon&&(f=ke(p.icon)?p.icon:p.icon.name);const g=a??p.label??"",m=u??g,v=l&&p.shortcut?` (${p.shortcut})`:"";return ee.createElement(JL,{title:`${m}${v}`},ee.createElement(UL,{component:"span",sx:{"&:not(:first-of-type)":{marginLeft:"-1px"}}},ee.createElement(bte,{"aria-label":g,selected:e,disabled:!n,onMouseDown:h,color:"primary",size:"small",sx:{padding:"6px 12px","&.Mui-selected":{backgroundColor:"primary.main",color:"primary.contrastText"},"&.Mui-selected:hover":{backgroundColor:"primary.dark",color:"primary.contrastText"},"&:not(:first-of-type)":{borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0}},...c,value:t,onChange:d},ee.createElement(Goe,{icon:p.icon},ee.createElement(joe,{icon:s??f})))))},Koe=({icon:t})=>ke(t)?ee.createElement(rv,{name:t,size:"1rem"}):t,fN=({label:t,"aria-label":e,icon:n,children:r,onClose:o,...i})=>{const s=D.useRef(Nl()),[l,a]=D.useState(null),u=!!l,c=D.useCallback(p=>{p.preventDefault()},[]),d=D.useCallback(p=>{a(p.currentTarget)},[]),h=D.useCallback((p,f)=>{a(null),o==null||o(p,f)},[o]);return ee.createElement(ee.Fragment,null,ee.createElement(JL,{title:t??e},ee.createElement(oJ,{"aria-label":e,"aria-controls":u?s.current:void 0,"aria-haspopup":!0,"aria-expanded":u?"true":void 0,onMouseDown:c,onClick:d,size:"small",sx:p=>({border:`1px solid ${p.palette.divider}`,borderRadius:`${p.shape.borderRadius}px`,padding:"6px 12px","&:not(:first-of-type)":{marginLeft:"-1px",borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0}})},n&&ee.createElement(Koe,{icon:n}),ee.createElement(rv,{name:"arrowDownSFill",size:"1rem"}))),ee.createElement(tte,{...i,id:s.current,anchorEl:l,open:u,onClose:h},r))},Yoe=t=>{const{insertHorizontalRule:e}=un();Qg();const n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=e.enabled();return ee.createElement(kt,{...t,commandName:"insertHorizontalRule",enabled:r,onSelect:n})},Xoe=t=>{const{redo:e}=un(),{redoDepth:n}=Ch(!0),r=D.useCallback(()=>{e.enabled()&&e()},[e]),o=n()>0;return ee.createElement(kt,{...t,commandName:"redo",active:!1,enabled:o,onSelect:r})},qoe=t=>{const{toggleBlockquote:e}=un(),n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=dr().blockquote(),o=e.enabled();return ee.createElement(kt,{...t,commandName:"toggleBlockquote",active:r,enabled:o,onSelect:n})},Ow=t=>{const{toggleBold:e}=un(),n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=dr().bold(),o=e.enabled();return ee.createElement(kt,{...t,commandName:"toggleBold",active:r,enabled:o,onSelect:n})},Zoe=t=>{const{toggleBulletList:e}=un(),n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=dr().bulletList(),o=e.enabled();return ee.createElement(kt,{...t,commandName:"toggleBulletList",active:r,enabled:o,onSelect:n})},Joe=({attrs:t={},...e})=>{const{toggleCodeBlock:n}=un(),r=D.useCallback(()=>{n.enabled(t)&&n(t)},[n,t]),o=dr().codeBlock(),i=n.enabled(t);return ee.createElement(kt,{...e,commandName:"toggleCodeBlock",active:o,enabled:i,attrs:t,onSelect:r})},Iw=t=>{const{toggleCode:e}=un(),n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=dr().code(),o=e.enabled();return ee.createElement(kt,{...t,commandName:"toggleCode",active:r,enabled:o,onSelect:n})},Lw=({attrs:t,...e})=>{const{toggleHeading:n}=un(),r=D.useCallback(()=>{n.enabled(t)&&n(t)},[n,t]),o=dr().heading(t),i=n.enabled(t);return ee.createElement(kt,{...e,commandName:"toggleHeading",active:o,enabled:i,attrs:t,onSelect:r})},Nw=t=>{const{toggleItalic:e}=un(),n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=dr().italic(),o=e.enabled();return ee.createElement(kt,{...t,commandName:"toggleItalic",active:r,enabled:o,onSelect:n})},Qoe=t=>{const{toggleOrderedList:e}=un(),n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=dr().orderedList(),o=e.enabled();return ee.createElement(kt,{...t,commandName:"toggleOrderedList",active:r,enabled:o,onSelect:n})},eie=t=>{const{toggleStrike:e}=un(),n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=dr().strike(),o=e.enabled();return ee.createElement(kt,{...t,commandName:"toggleStrike",active:r,enabled:o,onSelect:n})},$w=t=>{const{toggleUnderline:e}=un(),n=D.useCallback(()=>{e.enabled()&&e()},[e]),r=dr().underline(),o=e.enabled();return ee.createElement(kt,{...t,commandName:"toggleUnderline",active:r,enabled:o,onSelect:n})},tie=t=>{const{undo:e}=un(),{undoDepth:n}=Ch(!0),r=D.useCallback(()=>{e.enabled()&&e()},[e]),o=n()>0;return ee.createElement(kt,{...t,commandName:"undo",active:!1,enabled:o,onSelect:r})},hr=t=>ee.createElement(UL,{sx:{display:"flex",alignItems:"center",width:"fit-content",bgcolor:"background.paper",color:"text.secondary"},...t}),nie=({children:t})=>ee.createElement(hr,null,ee.createElement(Ow,null),ee.createElement(Nw,null),ee.createElement($w,null),ee.createElement(eie,null),ee.createElement(Iw,null),t),rie=({icon:t})=>t?ee.createElement(Oee,null,ke(t)?ee.createElement(rv,{name:t,size:"1rem"}):ee.createElement(ee.Fragment,null,t)):null,Dw=({commandName:t,active:e=!1,enabled:n,attrs:r,onSelect:o,onClick:i,icon:s,displayShortcut:l=!0,label:a,description:u,displayDescription:c=!0,...d})=>{const h=D.useCallback(y=>{o(),i==null||i(y)},[o,i]),p=D.useCallback(y=>{y.preventDefault()},[]),f=dN({commandName:t,active:e,enabled:n,attrs:r});let g=null;f.icon&&(g=ke(f.icon)?f.icon:f.icon.name);const m=a??f.label??"",v=c&&(u??f.description);return ee.createElement(ate,{selected:e,disabled:!n,onMouseDown:p,...d,onClick:h},s!==null&&ee.createElement(rie,{icon:s??g}),ee.createElement(Dee,{primary:m,secondary:v}),l&&f.shortcut&&ee.createElement(zh,{variant:"body2",color:"text.secondary",sx:{ml:2}},f.shortcut))},ov=({attrs:t,...e})=>{const{toggleHeading:n}=un(),r=D.useCallback(()=>{n.enabled(t)&&n(t)},[n,t]),o=dr().heading(t),i=n.enabled(t);return ee.createElement(Dw,{...e,commandName:"toggleHeading",active:o,enabled:i,attrs:t,onSelect:r})},oie={level:1},iie={level:2},gN={level:3},sie={level:4},aie={level:5},lie={level:6},cie=({showAll:t=!1,children:e})=>ee.createElement(hr,null,ee.createElement(Lw,{attrs:oie}),ee.createElement(Lw,{attrs:iie}),t?ee.createElement(fN,{"aria-label":"More heading options"},ee.createElement(ov,{attrs:gN}),ee.createElement(ov,{attrs:sie}),ee.createElement(ov,{attrs:aie}),ee.createElement(ov,{attrs:lie})):ee.createElement(Lw,{attrs:gN}),e),uie=({children:t})=>ee.createElement(hr,null,ee.createElement(tie,null),ee.createElement(Xoe,null),t);typeof ur=="object"&&ur.__esModule&&ur.default&&ur.default;var die=t=>{const e=Ch().getPositionerWidget();return mh.createPortal(ee.createElement(ee.Fragment,null,t.children),e)},mN=D.createContext({});function hie(t={}){const e=D.useContext(mN),n=D.useMemo(()=>FS(e,t.theme??{}),[e,t.theme]),r=D.useMemo(()=>WU(n).styles,[n]),o=ec(UU,t.className);return D.useMemo(()=>({style:r,className:o,theme:n}),[r,o,n])}var pie=t=>{var e,n,r,o,i,s,l,a;const{children:u,as:c="div"}=t,{theme:d,style:h,className:p}=hie({theme:t.theme??Da}),f=Jx({palette:{primary:{main:((e=d.color)==null?void 0:e.primary)??Da.color.primary,dark:((r=(n=d.color)==null?void 0:n.hover)==null?void 0:r.primary)??Da.color.hover.primary,contrastText:((o=d.color)==null?void 0:o.primaryText)??Da.color.primaryText},secondary:{main:((i=d.color)==null?void 0:i.secondary)??Da.color.secondary,dark:((l=(s=d.color)==null?void 0:s.hover)==null?void 0:l.secondary)??Da.color.hover.secondary,contrastText:((a=d.color)==null?void 0:a.secondaryText)??Da.color.secondaryText}}});return ee.createElement(CZ,{theme:f},ee.createElement(mN.Provider,{value:d},ee.createElement(c,{style:h,className:p},u)))},vN=t=>ee.createElement(bee,{direction:"row",spacing:1,sx:{backgroundColor:"background.paper",overflowX:"auto"},...t}),fie=[{name:"offset",options:{offset:[0,8]}}],gie=({positioner:t="selection",children:e,...n})=>{const{ref:r,x:o,y:i,width:s,height:l,active:a}=uN(()=>oy(t),[t]),[u,c]=D.useState(null),d=D.useMemo(()=>({position:"absolute",pointerEvents:"none",left:o,top:i,width:s,height:l}),[o,i,s,l]),h=D.useCallback(p=>{c(p),r==null||r(p)},[r]);return ee.createElement(ee.Fragment,null,ee.createElement("div",{ref:h,style:d}),ee.createElement(yw,{placement:"top",modifiers:fie,...n,open:a,anchorEl:u},ee.createElement(vN,null,e?ee.createElement(ee.Fragment,null,e):ee.createElement(nie,null))))},mie=({languages:t=[],className:e="",offset:n={x:0,y:0},onLanguageChange:r,onPointerDownSelect:o,onSelectChange:i})=>{var s;const l=uN(yie,[]),{getExtension:a,getState:u}=qr(),{focus:c,updateCodeBlock:d}=un(),h=a(po).options,[p]=D.useState(()=>{const x=new Map;return h.supportedLanguages.forEach(k=>{k.aliases.forEach(w=>!t.some(S=>S.displayName===w)&&x.set(w,k.displayName))}),x}),[f]=D.useState([...t,{displayName:h.defaultLanguage},...h.supportedLanguages]),{selection:g}=u(),[m,v]=D.useState("auto"),y=(s=ti({selection:g,types:"codeBlock"}))==null?void 0:s.node.attrs.language,b=D.useMemo(()=>{const x=p.get(y);return x||(h.supportedLanguages.some(k=>y===k.displayName)?y:h.defaultLanguage)},[p,h.defaultLanguage,h.supportedLanguages,y]);return D.useEffect(()=>{var x;const k=l.element;if(r!=null&&r(b,k,v))return;if((S=>S&&S.nodeName==="SELECT"||!1)(k)){const S=(x=k.options[k.selectedIndex])==null?void 0:x.dataset.width;v(S?`${S}px`:"auto")}},[l.element,b,r]),ee.createElement(die,null,ee.createElement("select",{ref:l.ref,className:e,onBlur:()=>c(),onChange:x=>{var k;i!=null&&i(x,v)||(v(`${(k=x.target.options[x.target.selectedIndex])==null?void 0:k.dataset.width}px`),d({language:x.target.dataset.value||x.target.value}))},onPointerDown:o,style:{"--w":m,"--x":`${l.x+n.x}px`,"--y":`${l.y+n.y}px`,display:y?"block":"none"},value:b},y?vie(f):null))},vie=nH(t=>i1(t.map(({displayName:n,value:r})=>({displayName:n,value:r||n})),"displayName").sort((n,r)=>n.displayName>r.displayName?1:n.displayName{const r=document.createElement("select"),o=document.createElement("option");let i="0px";return r.append(o),document.body.append(r),o.textContent=n.displayName,i=String(r.getBoundingClientRect().width),r.remove(),{...n,width:i}}).map(({displayName:n,value:r,width:o})=>ee.createElement("option",{key:n,"data-value":r,"data-width":o,value:n},n)));function yie(){return Hr.create({getActive(t){const{selection:e}=t.state,n=ti({selection:e,types:"codeBlock"});return n?[{codeBlockResult:n}]:Hr.EMPTY},getPosition(t){const{data:e,view:n}=t,{pos:r}=e.codeBlockResult,o=n.nodeDOM(r);if(!o||!Ft(o))return Rf;const i=o.getBoundingClientRect(),s=n.dom.getBoundingClientRect(),l=n.dom.scrollLeft+i.left-s.left,a=n.dom.scrollTop+i.top-s.top,u=ty(i,n.dom);return{height:0,rect:i,visible:u,width:0,x:l,y:a}},hasChanged:ey})}var tn=Rp(Rm),Pw=Yt` /** * Styles extracted from: packages/remirror__theme/src/components-theme.ts */ @@ -773,8 +774,8 @@ Error generating stack: `+i.message+` .remirror-color-picker-cell-selected { } `;tn.div` - ${Lw} -`;var Nw=Yt` + ${Pw} +`;var zw=Yt` /** * Styles extracted from: packages/remirror__theme/src/core-theme.ts */ @@ -840,8 +841,8 @@ Error generating stack: `+i.message+` pointer-events: none; } `;tn.div` - ${Nw} -`;var $w=Yt` + ${zw} +`;var Fw=Yt` /** * Styles extracted from: packages/remirror__theme/src/extension-blockquote-theme.ts */ @@ -856,8 +857,8 @@ Error generating stack: `+i.message+` color: #888; } `;tn.div` - ${$w} -`;var Dw=Yt` + ${Fw} +`;var Bw=Yt` /** * Styles extracted from: packages/remirror__theme/src/extension-callout-theme.ts */ @@ -893,8 +894,8 @@ Error generating stack: `+i.message+` background: #f8f8f8; } `;tn.div` - ${Dw} -`;var Pw=Yt` + ${Bw} +`;var Hw=Yt` /** * Styles extracted from: packages/remirror__theme/src/extension-code-block-theme.ts */ @@ -3691,8 +3692,8 @@ Error generating stack: `+i.message+` bottom: 0.4em; } `;tn.div` - ${Pw} -`;var zw=Yt` + ${Hw} +`;var Uw=Yt` /** * Styles extracted from: packages/remirror__theme/src/extension-count-theme.ts */ @@ -3700,8 +3701,8 @@ Error generating stack: `+i.message+` background-color: var(--rmr-hue-red-4); } `;tn.div` - ${zw} -`;var Fw=Yt` + ${Uw} +`;var Ww=Yt` /** * Styles extracted from: packages/remirror__theme/src/extension-emoji-theme.ts */ @@ -3759,8 +3760,8 @@ Error generating stack: `+i.message+` padding-right: 5px; } `;tn.div` - ${Fw} -`;var Bw=Yt` + ${Ww} +`;var Vw=Yt` /** * Styles extracted from: packages/remirror__theme/src/extension-file-theme.ts */ @@ -3812,8 +3813,8 @@ Error generating stack: `+i.message+` color: #000; } `;tn.div` - ${Bw} -`;var Hw=Yt` + ${Vw} +`;var jw=Yt` /** * Styles extracted from: packages/remirror__theme/src/extension-gap-cursor-theme.ts */ @@ -3841,8 +3842,8 @@ Error generating stack: `+i.message+` display: block; } `;tn.div` - ${Hw} -`;var Uw=Yt` + ${jw} +`;var Gw=Yt` /** * Styles extracted from: packages/remirror__theme/src/extension-image-theme.ts */ @@ -3864,8 +3865,8 @@ Error generating stack: `+i.message+` } } `;tn.div` - ${Uw} -`;var Ww=Yt` + ${Gw} +`;var Kw=Yt` /** * Styles extracted from: packages/remirror__theme/src/extension-list-theme.ts */ @@ -3960,8 +3961,8 @@ Error generating stack: `+i.message+` border-left-color: var(--rmr-color-primary); } `;tn.div` - ${Ww} -`;var Vw=Yt` + ${Kw} +`;var Yw=Yt` /** * Styles extracted from: packages/remirror__theme/src/extension-mention-atom-theme.ts */ @@ -4026,16 +4027,16 @@ Error generating stack: `+i.message+` padding-right: 5px; } `;tn.div` - ${Vw} -`;var jw=Yt` + ${Yw} +`;var Xw=Yt` /** * Styles extracted from: packages/remirror__theme/src/extension-node-formatting-theme.ts */ .remirror-editor.ProseMirror { } `;tn.div` - ${jw} -`;var Gw=Yt` + ${Xw} +`;var qw=Yt` /** * Styles extracted from: packages/remirror__theme/src/extension-placeholder-theme.ts */ @@ -4048,8 +4049,8 @@ Error generating stack: `+i.message+` content: attr(data-placeholder); } `;tn.div` - ${Gw} -`;var Kw=Yt` + ${qw} +`;var Zw=Yt` /** * Styles extracted from: packages/remirror__theme/src/extension-positioner-theme.ts */ @@ -4076,8 +4077,8 @@ Error generating stack: `+i.message+` position: absolute; } `;tn.div` - ${Kw} -`;var Yw=Yt` + ${Zw} +`;var Jw=Yt` /** * Styles extracted from: packages/remirror__theme/src/extension-tables-theme.ts */ @@ -4444,8 +4445,8 @@ Error generating stack: `+i.message+` background-color: var(--rmr-color-table-predelete-controller) !important; } `;tn.div` - ${Yw} -`;var Xw=Yt` + ${Jw} +`;var Qw=Yt` /** * Styles extracted from: packages/remirror__theme/src/extension-whitespace-theme.ts */ @@ -4475,8 +4476,8 @@ Error generating stack: `+i.message+` content: '¶'; } `;tn.div` - ${Xw} -`;var qw=Yt` + ${Qw} +`;var ek=Yt` /** * Styles extracted from: packages/remirror__theme/src/extension-yjs-theme.ts */ @@ -4520,8 +4521,8 @@ Error generating stack: `+i.message+` display: inline-block; } `;tn.div` - ${qw} -`;var Zw=Yt` + ${ek} +`;var tk=Yt` /** * Styles extracted from: packages/remirror__theme/src/theme.ts */ @@ -4823,12 +4824,8 @@ Error generating stack: `+i.message+` /* margin-bottom: var(--rmr-space-2); */ } `;tn.div` - ${Zw} + ${tk} `,Yt` - ${Lw} - ${Nw} - ${$w} - ${Dw} ${Pw} ${zw} ${Fw} @@ -4844,11 +4841,11 @@ Error generating stack: `+i.message+` ${Xw} ${qw} ${Zw} -`;var Zoe=tn.div` - ${Lw} - ${Nw} - ${$w} - ${Dw} + ${Jw} + ${Qw} + ${ek} + ${tk} +`;var bie=tn.div` ${Pw} ${zw} ${Fw} @@ -4864,60 +4861,64 @@ Error generating stack: `+i.message+` ${Xw} ${qw} ${Zw} -`,oN={exports:{}};/*! + ${Jw} + ${Qw} + ${ek} + ${tk} +`,yN={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var i="",s=0;s{for(var o=r>1?void 0:r?tie(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&eie(e,n,o),o};function nie(t){const e=[],n=new Map;for(const s of t){const l=n.get(s.from)??[],a=n.get(s.to)??[];n.set(s.from,[...l,{type:"start",annotation:s}]),n.set(s.to,[...a,{type:"end",annotation:s}])}const r=ss([...n.entries()],([s],[l])=>s-l);let o=[],i=0;for(const[s,l]of r){const a=l.filter(c=>c.type==="start").map(c=>c.annotation),u=new Set(l.filter(c=>c.type==="end").map(c=>c.annotation.id));o.length>0&&e.push({from:i,to:s,annotations:o}),i=s,o=[...o,...a].filter(c=>!u.has(c.id))}return e}var rie=class{constructor(t,e){this.getStyle=t,this.store=e,this.annotations=[],this.decorationSet=Ue.empty}addAnnotation(t){const e={from:t.from,to:t.to,...t.annotationData};this.store.addAnnotation(e)}updateAnnotation(t){this.store.updateAnnotation(t.annotationId,t.annotationData)}removeAnnotations(t){this.store.removeAnnotations(t.annotationIds)}setAnnotations(t){this.store.setAnnotations(t.annotations)}formatAnnotations(){return this.store.formatAnnotations()}createDecorations(t,e=[]){const n=nie(e).map(r=>{const o=r.annotations.map(s=>s.className).filter(s=>s),i=this.getStyle(r.annotations);return mt.inline(r.from,r.to,{class:o.length>0?o.join(" "):void 0,style:i})});return Ue.create(t.doc,n)}apply({tr:t,action:e}){const n=e==null?void 0:e.type;return!e&&!t.docChanged?this:(n!==void 0?(n===0&&this.addAnnotation(e),n===4&&this.updateAnnotation(e),n===2&&this.removeAnnotations(e),n===3&&this.setAnnotations(e),this.annotations=this.formatAnnotations(),this.decorationSet=this.createDecorations(t,this.annotations)):(this.annotations=this.annotations.map(r=>({...r,from:t.mapping.map(r.from,1),to:t.mapping.map(r.to,-1)})).filter(r=>r.to!==r.from),this.store.setAnnotations(this.annotations),this.decorationSet=this.decorationSet.map(t.mapping,t.doc)),this)}},iN=class{constructor(t=new Map,e=r=>r,n=r=>r){this.map=t,this.positionToStored=e,this.positionFromStored=n}addAnnotation({from:t,to:e,...n}){const r={from:this.positionToStored(t),to:this.positionToStored(e),...n};this.map.set(n.id,r)}updateAnnotation(t,e){const n=this.map.get(t);n&&this.map.set(t,{...n,...e})}removeAnnotations(t){t.forEach(e=>{this.map.delete(e)})}setAnnotations(t){typeof this.map.clear=="function"?this.map.clear():this.map.forEach(e=>this.map.delete(e.id)),t.forEach(e=>{this.addAnnotation(e)})}formatAnnotations(){const t=[];return this.map.forEach(({from:e,to:n,...r})=>{const o=this.positionFromStored(e),i=this.positionFromStored(n);if(!o||!i)return;const s={from:o,to:i,...r};t.push(s)}),t}};function oie(t){const n=200*(1-Math.min(t.length,5)/5)+55;return`background: rgb(${n}, ${n}, 255);`}var $n=class extends ht{constructor(){super(...arguments),this.enrichText=t=>{const{doc:e}=this.store.getState(),n=t.to<=e.content.size?e.textBetween(t.from,t.to,this.options.blockSeparator):void 0;return{...t,text:n}}}get name(){return"annotation"}onSetOptions(t){const{pickChanged:e}=t,n=e(["getStore","getMap","transformPosition","transformPositionBeforeRender"]);_u(n)||this.store.updateExtensionPlugins(this)}createPlugin(){let t;this.options.getMap?(e1(br.isProduction,'Must not provide both "getMap" and "getStore"'),t=new iN(this.options.getMap(),this.options.transformPosition,this.options.transformPositionBeforeRender)):t=this.options.getStore();const e=new rie(this.options.getStyle,t);return{state:{init(){return e},apply(n){const r=n.getMeta($n.name);return e.apply({tr:n,action:r})}},props:{decorations(n){var r;return(r=this.getState(n))==null?void 0:r.decorationSet}}}}addAnnotation(t){return({tr:e,dispatch:n})=>{const{empty:r,from:o,to:i}=e.selection;return r?!1:(n==null||n(e.setMeta($n.name,{type:0,from:o,to:i,annotationData:t})),!0)}}updateAnnotation(t,e){return({tr:n,dispatch:r})=>{if(r){const o={...e,id:t},i={type:4,annotationId:t,annotationData:o};r(n.setMeta($n.name,i))}return!0}}removeAnnotations(t){return({tr:e,dispatch:n})=>(n==null||n(e.setMeta($n.name,{type:2,annotationIds:t})),!0)}setAnnotations(t){return({tr:e,dispatch:n})=>(n==null||n(e.setMeta($n.name,{type:3,annotations:t})),!0)}redrawAnnotations(){return({tr:t,dispatch:e})=>(e==null||e(t.setMeta($n.name,{type:1})),!0)}getAnnotations(){return this.getPluginState().annotations.map(this.enrichText)}getAnnotationsAt(t,e=!0){const n=[],{doc:r,selection:o}=this.store.getState(),i=this.getPluginState(),{from:s,to:l}=or(t??o,r);for(const a of i.annotations)(Yo(s,a.from,a.to)||Yo(l,a.from,a.to)||Yo(a.from,s,l)||Yo(a.to,s,l))&&(e?n.push(this.enrichText(a)):a.from!==s&&a.to!==l&&n.push(this.enrichText(a)));return n}selectionHasAnnotation(t){return this.getAnnotationsAt(t).length>0}};qi([le()],$n.prototype,"addAnnotation",1),qi([le()],$n.prototype,"updateAnnotation",1),qi([le()],$n.prototype,"removeAnnotations",1),qi([le()],$n.prototype,"setAnnotations",1),qi([le()],$n.prototype,"redrawAnnotations",1),qi([nt()],$n.prototype,"getAnnotations",1),qi([nt()],$n.prototype,"getAnnotationsAt",1),qi([nt()],$n.prototype,"selectionHasAnnotation",1),$n=qi([Ne({defaultOptions:{getStyle:oie,blockSeparator:void 0,getStore:()=>new iN,getMap:void 0,transformPosition:void 0,transformPositionBeforeRender:void 0},defaultPriority:tt.Low})],$n);var iie=Object.defineProperty,sie=Object.getOwnPropertyDescriptor,sN=(t,e,n,r)=>{for(var o=r>1?void 0:r?sie(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&iie(e,n,o),o},Jw=class extends Rn{get name(){return"blockquote"}createTags(){return[we.Block,we.FormattingNode]}createNodeSpec(t,e){return{content:"block+",defining:!0,draggable:!1,...e,attrs:t.defaults(),parseDOM:[{tag:"blockquote",getAttrs:t.parse,priority:100},...e.parseDOM??[]],toDOM:n=>["blockquote",t.dom(n),0]}}toggleBlockquote(){return EA(this.type)}shortcut(t){return this.toggleBlockquote()(t)}createInputRules(){return[Hp(/^\s*>\s$/,this.type)]}createPasteRules(){return{type:"node",nodeType:this.type,regexp:/^\s*>\s$/,startOfTextBlock:!0}}};sN([le({icon:"doubleQuotesL",description:({t})=>t(OC.DESCRIPTION),label:({t})=>t(OC.LABEL)})],Jw.prototype,"toggleBlockquote",1),sN([Zt({shortcut:"Ctrl->",command:"toggleBlockquote"})],Jw.prototype,"shortcut",1);var aie=Object.defineProperty,lie=Object.getOwnPropertyDescriptor,Jh=(t,e,n,r)=>{for(var o=r>1?void 0:r?lie(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&aie(e,n,o),o},cie={icon:"bold",label:({t})=>t(IC.LABEL),description:({t})=>t(IC.DESCRIPTION)},dl=class extends ks{get name(){return"bold"}createTags(){return[we.FormattingMark,we.FontStyle]}createMarkSpec(t,e){return{...e,attrs:t.defaults(),parseDOM:[{tag:"strong",getAttrs:t.parse},{tag:"b",getAttrs:n=>Ft(n)&&n.style.fontWeight!=="normal"?t.parse(n):!1},{style:"font-weight",getAttrs:n=>ke(n)&&/^(bold(er)?|[5-9]\d{2,})$/.test(n)?null:!1},...e.parseDOM??[]],toDOM:n=>{const{weight:r}=this.options;return r?["strong",{"font-weight":r.toString()},0]:["strong",t.dom(n),0]}}}createInputRules(){return[Ju({regexp:/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/,type:this.type,ignoreWhitespace:!0})]}toggleBold(t){return Es({type:this.type,selection:t})}setBold(t){return({tr:e,dispatch:n})=>{const{from:r,to:o}=or(t??e.selection,e.doc);return n==null||n(e.addMark(r,o,this.type.create())),!0}}removeBold(t){return({tr:e,dispatch:n})=>{const{from:r,to:o}=or(t??e.selection,e.doc);return e.doc.rangeHasMark(r,o,this.type)?(n==null||n(e.removeMark(r,o,this.type)),!0):!1}}shortcut(t){return this.toggleBold()(t)}};Jh([le(cie)],dl.prototype,"toggleBold",1),Jh([le()],dl.prototype,"setBold",1),Jh([le()],dl.prototype,"removeBold",1),Jh([Zt({shortcut:oe.Bold,command:"toggleBold"})],dl.prototype,"shortcut",1),dl=Jh([Ne({defaultOptions:{weight:void 0},staticKeys:["weight"]})],dl);var uie=Object.defineProperty,die=Object.getOwnPropertyDescriptor,Qw=(t,e,n,r)=>{for(var o=r>1?void 0:r?die(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&uie(e,n,o),o},{DESCRIPTION:hie,LABEL:pie}=bP,fie={icon:"codeLine",description:({t})=>t(hie),label:({t})=>t(pie)},Qh=class extends ks{get name(){return"code"}createTags(){return[we.Code,we.ExcludeInputRules]}createMarkSpec(t,e){return{excludes:"_",...e,attrs:t.defaults(),parseDOM:[{tag:"code",getAttrs:t.parse},...e.parseDOM??[]],toDOM:n=>["code",{spellcheck:"false",...t.dom(n)},0]}}createKeymap(){return{"Mod-`":Es({type:this.type})}}keyboardShortcut(t){return this.toggleCode()(t)}toggleCode(){return Es({type:this.type})}createInputRules(){return[Ju({regexp:new RegExp(`(?:\`)([^\`${qv}]+)(?:\`)$`),type:this.type,ignoreWhitespace:!0})]}createPasteRules(){return[{type:"mark",regexp:/`([^`]+)`/g,markType:this.type}]}};Qw([Zt({shortcut:oe.Code,command:"toggleCode"})],Qh.prototype,"keyboardShortcut",1),Qw([le(fie)],Qh.prototype,"toggleCode",1),Qh=Qw([Ne({})],Qh);var aN=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Je=(t,e,n)=>(aN(t,e,"read from private field"),n?n.call(t):e.get(t)),uu=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},oa=(t,e,n,r)=>(aN(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),gie='',mie='',vie=encodeURIComponent(gie),yie=encodeURIComponent(mie),Lr,bie=class{constructor(t){uu(this,Lr,void 0);const e=document.createElement("div"),n=document.createElement("div");this.dom=e,oa(this,Lr,n),this.type=t,this.createHandle(t)}createHandle(t){switch(Un(this.dom,{position:"absolute",pointerEvents:"auto",display:"flex",alignItems:"center",justifyContent:"center",zIndex:"100"}),Un(Je(this,Lr),{opacity:"0",transition:"opacity 300ms ease-in 0s"}),Je(this,Lr).dataset.dragging="",t){case 0:Un(this.dom,{right:"0px",top:"0px",height:"100%",width:"15px",cursor:"col-resize"}),Un(Je(this,Lr),{width:" 4px",height:"36px",maxHeight:"50%",boxSizing:"content-box",background:"rgba(0, 0, 0, 0.65)",border:"1px solid rgba(255, 255, 255, 0.5)",borderRadius:"6px"});break;case 1:Un(this.dom,{left:"0px",top:"0px",height:"100%",width:"15px",cursor:"col-resize"}),Un(Je(this,Lr),{width:" 4px",height:"36px",maxHeight:"50%",boxSizing:"content-box",background:"rgba(0, 0, 0, 0.65)",border:"1px solid rgba(255, 255, 255, 0.5)",borderRadius:"6px"});break;case 2:Un(this.dom,{bottom:"0px",width:"100%",height:"14px",cursor:"row-resize"}),Un(Je(this,Lr),{width:" 42px",height:"4px",boxSizing:"content-box",maxWidth:"50%",background:"rgba(0, 0, 0, 0.65)",border:"1px solid rgba(255, 255, 255, 0.5)",borderRadius:"6px"});break;case 3:Un(this.dom,{right:"-1px",bottom:"-2px",width:"30px",height:"30px",cursor:"nwse-resize",zIndex:"101"}),Un(Je(this,Lr),{height:"22px",width:"22px",backgroundRepeat:"no-repeat",backgroundImage:`url("data:image/svg+xml,${yie}") `});break;case 4:Un(this.dom,{left:"-1px",bottom:"-2px",width:"30px",height:"30px",cursor:"nesw-resize",zIndex:"101"}),Un(Je(this,Lr),{height:"22px",width:"22px",backgroundRepeat:"no-repeat",backgroundImage:`url("data:image/svg+xml,${vie}") `});break}this.dom.append(Je(this,Lr))}setHandleVisibility(t){const e=t||!!Je(this,Lr).dataset.dragging;Je(this,Lr).style.opacity=e?"1":"0"}dataSetDragging(t){Je(this,Lr).dataset.dragging=t?"true":""}};Lr=new WeakMap;var rv=50,lN=(t=>(t[t.Fixed=0]="Fixed",t[t.Flexible=1]="Flexible",t))(lN||{}),hl,pl,fl,Zi,gl,xie=class{constructor({node:t,view:e,getPos:n,aspectRatio:r=0,options:o,initialSize:i}){uu(this,hl,void 0),uu(this,pl,void 0),uu(this,fl,[]),uu(this,Zi,void 0),uu(this,gl,void 0);const s=this.createWrapper(t,i),l=this.createElement({node:t,view:e,getPos:n,options:o}),u=(r===1?[0,1,2,3,4]:[0,1]).map(h=>new bie(h));for(const h of u){const p=f=>{this.startResizing(f,e,n,h)};h.dom.addEventListener("mousedown",p),Je(this,fl).push(()=>h.dom.removeEventListener("mousedown",p)),s.append(h.dom)}const c=()=>{u.forEach(h=>h.setHandleVisibility(!0))},d=()=>{u.forEach(h=>h.setHandleVisibility(!1))};s.addEventListener("mouseover",c),s.addEventListener("mouseout",d),Je(this,fl).push(()=>s.removeEventListener("mouseover",c),()=>s.removeEventListener("mouseout",d)),s.append(l),this.dom=s,oa(this,pl,t),oa(this,hl,l),this.aspectRatio=r}createWrapper(t,e){const n=document.createElement("div");return n.classList.add("remirror-resizable-view"),n.style.position="relative",e?Un(n,{width:cN(e.width),aspectRatio:`${e.width} / ${e.height}`}):Un(n,{width:cN(t.attrs.width),aspectRatio:`${t.attrs.width} / ${t.attrs.height}`}),Un(n,{maxWidth:"100%",minWidth:`${rv}px`,verticalAlign:"bottom",display:"inline-block",lineHeight:"0",transition:"width 0.15s ease-out, height 0.15s ease-out"}),n}startResizing(t,e,n,r){var o,i;t.preventDefault(),r.dataSetDragging(!0),Je(this,hl).style.pointerEvents="none";const s=t.pageX,l=t.pageY,a=((o=Je(this,hl))==null?void 0:o.getBoundingClientRect().width)||0,u=((i=Je(this,hl))==null?void 0:i.getBoundingClientRect().height)||0,c=Qv(100,!1,h=>{const p=h.pageX,f=h.pageY,g=p-s,m=f-l;let v=null,y=null;if(this.aspectRatio===0&&a&&u)switch(r.type){case 0:case 3:v=a+g,y=u/a*v;break;case 1:case 4:v=a-g,y=u/a*v;break;case 2:y=u+m,v=a/u*y;break}else if(this.aspectRatio===1)switch(r.type){case 0:v=a+g;break;case 1:v=a-g;break;case 2:y=u+m;break;case 3:v=a+g,y=u+m;break;case 4:v=a-g,y=u+m;break}typeof v=="number"&&v{h.preventDefault(),r.dataSetDragging(!1),r.setHandleVisibility(!1),Je(this,hl).style.pointerEvents="auto",document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d);const p=n(),f=e.state.tr.setNodeMarkup(p,void 0,{...Je(this,pl).attrs,width:Je(this,Zi),height:Je(this,gl)});e.dispatch(f)};document.addEventListener("mousemove",c),document.addEventListener("mouseup",d),Je(this,fl).push(()=>document.removeEventListener("mousemove",c)),Je(this,fl).push(()=>document.removeEventListener("mouseup",d))}update(t){return t.type!==Je(this,pl).type||this.aspectRatio===0&&t.attrs.width&&t.attrs.width!==Je(this,Zi)||this.aspectRatio===1&&t.attrs.width&&t.attrs.height&&t.attrs.width!==Je(this,Zi)&&t.attrs.height!==Je(this,gl)||!wie(Je(this,pl),t,["width","height"])?!1:(oa(this,pl,t),oa(this,Zi,t.attrs.width),oa(this,gl,t.attrs.height),!0)}destroy(){Je(this,fl).forEach(t=>t())}};hl=new WeakMap,pl=new WeakMap,fl=new WeakMap,Zi=new WeakMap,gl=new WeakMap;function wie(t,e,n){return t===e||kie(t,e,n)&&t.content.eq(e.content)}function kie(t,e,n){const r=t.attrs,o=e.attrs,i={};for(const l of n)i[l]=null;t.attrs={...r,...i},e.attrs={...o,...i};const s=t.sameMarkup(e);return t.attrs=r,e.attrs=o,s}function cN(t){return typeof t=="number"?`${t}px`:t||void 0}var Eie=Object.defineProperty,Sie=Object.getOwnPropertyDescriptor,uN=(t,e,n,r)=>{for(var o=r>1?void 0:r?Sie(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Eie(e,n,o),o},ov=class extends Rn{get name(){return"hardBreak"}createTags(){return[we.InlineNode]}createNodeSpec(t,e){return{inline:!0,selectable:!1,atom:!0,leafText:()=>` -`,...e,attrs:t.defaults(),parseDOM:[{tag:"br",getAttrs:t.parse},...e.parseDOM??[]],toDOM:n=>["br",t.dom(n)]}}createKeymap(){const t=R3(Gu(IA),()=>(this.store.commands.insertHardBreak(),!0));return{"Mod-Enter":t,"Shift-Enter":t}}insertHardBreak(){return t=>{const{tr:e,dispatch:n}=t;return n==null||n(e.replaceSelectionWith(this.type.create()).scrollIntoView()),!0}}};uN([le()],ov.prototype,"insertHardBreak",1),ov=uN([Ne({defaultPriority:tt.Low})],ov);var Cie=Object.defineProperty,Tie=Object.getOwnPropertyDescriptor,dN=(t,e,n,r)=>{for(var o=r>1?void 0:r?Tie(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Cie(e,n,o),o},{LABEL:Aie}=xP,_ie={icon:({attrs:t})=>`h${(t==null?void 0:t.level)??"1"}`,label:({t,attrs:e})=>t({...Aie,values:{level:e==null?void 0:e.level}})},Rie=[oe.H1,oe.H2,oe.H3,oe.H4,oe.H5,oe.H6],iv=class extends Rn{get name(){return"heading"}createTags(){return[we.Block,we.TextBlock,we.FormattingNode]}createNodeSpec(t,e){return{content:"inline*",defining:!0,draggable:!1,...e,attrs:{...t.defaults(),level:{default:this.options.defaultLevel}},parseDOM:[...this.options.levels.map(n=>({tag:`h${n}`,getAttrs:r=>({...t.parse(r),level:n})})),...e.parseDOM??[]],toDOM:n=>this.options.levels.includes(n.attrs.level)?[`h${n.attrs.level}`,t.dom(n),0]:[`h${this.options.defaultLevel}`,t.dom(n),0]}}toggleHeading(t={}){return i0({type:this.type,toggleType:"paragraph",attrs:t})}createKeymap(t){const e=this.store.getExtension(We),n=ye(),r=[];for(const o of this.options.levels){const i=Rie[o-1]??oe.H1;n[i]=Zu(this.type,{level:o}),r.push({attrs:{level:o},shortcut:t(i)[0]})}return e.updateDecorated("toggleHeading",{shortcut:r}),n}createInputRules(){return this.options.levels.map(t=>CP(new RegExp(`^(#{1,${t}})\\s$`),this.type,()=>({level:t})))}createPasteRules(){return this.options.levels.map(t=>({type:"node",nodeType:this.type,regexp:new RegExp(`^#{${t}}\\s([\\s\\w]+)$`),getAttributes:()=>({level:t}),startOfTextBlock:!0}))}};dN([le(_ie)],iv.prototype,"toggleHeading",1),iv=dN([Ne({defaultOptions:{levels:[1,2,3,4,5,6],defaultLevel:1},staticKeys:["defaultLevel","levels"]})],iv);var Mie=Object.defineProperty,Oie=Object.getOwnPropertyDescriptor,hN=(t,e,n,r)=>{for(var o=r>1?void 0:r?Oie(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Mie(e,n,o),o},Iie={icon:"separator",label:({t})=>t(LC.LABEL),description:({t})=>t(LC.DESCRIPTION)},sv=class extends Rn{get name(){return"horizontalRule"}createTags(){return[we.Block]}createNodeSpec(t,e){return{...e,attrs:t.defaults(),parseDOM:[{tag:"hr",getAttrs:t.parse},...e.parseDOM??[]],toDOM:n=>["hr",t.dom(n)]}}insertHorizontalRule(){return t=>{const{tr:e,dispatch:n}=t,r=e.selection.$anchor,o=r.parent;return o.type.name==="doc"||o.isAtom||o.isLeaf?!1:(n&&(e.selection.empty&&ef(o)&&e.insert(r.pos+1,o),e.replaceSelectionWith(this.type.create()),this.updateFromNodeSelection(e),n(e.scrollIntoView())),!0)}}createInputRules(){return[TA({regexp:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type,beforeDispatch:({tr:t})=>{this.updateFromNodeSelection(t)}})]}updateFromNodeSelection(t){if(!qu(t.selection)||t.selection.node.type.name!==this.name)return;const e=t.selection.$from.pos+1,{insertionNode:n}=this.options;if(!n)return;const r=this.store.schema.nodes[n];be(r,{code:re.EXTENSION,message:`'${n}' node provided as the insertionNode to the '${this.constructorName}' does not exist.`});const o=r.create();t.insert(e,o),t.setSelection(Me.near(t.doc.resolve(e+1)))}};hN([le(Iie)],sv.prototype,"insertHorizontalRule",1),sv=hN([Ne({defaultOptions:{insertionNode:"paragraph"}})],sv);var Lie=Object.defineProperty,Nie=Object.getOwnPropertyDescriptor,ek=(t,e,n,r)=>{for(var o=r>1?void 0:r?Nie(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Lie(e,n,o),o},$ie=class extends xie{constructor(t,e,n){super({node:t,view:e,getPos:n,aspectRatio:lN.Fixed})}createElement({node:t}){const e=document.createElement("img");return e.setAttribute("src",t.attrs.src),Un(e,{width:"100%",minWidth:"50px",objectFit:"contain"}),e}},ep=class extends Rn{get name(){return"image"}createTags(){return[we.InlineNode,we.Media]}createNodeSpec(t,e){const{preferPastedTextContent:n}=this.options;return{inline:!0,draggable:!0,selectable:!1,...e,attrs:{...t.defaults(),alt:{default:""},crop:{default:null},height:{default:null},width:{default:null},rotate:{default:null},src:{default:null},title:{default:""},fileName:{default:null},resizable:{default:!1}},parseDOM:[{tag:"img[src]",getAttrs:r=>{var o;if(Ft(r)){const i=Pie({element:r,parse:t.parse});return n&&((o=i.src)!=null&&o.startsWith("file:///"))?!1:i}return{}}},...e.parseDOM??[]],toDOM:r=>{const o=nf(r.attrs,t);return["img",{...t.dom(r),...o}]}}}insertImage(t,e){return({tr:n,dispatch:r})=>{const{from:o,to:i}=or(e??n.selection,n.doc),s=this.type.create(t);return r==null||r(n.replaceRangeWith(o,i,s)),!0}}uploadImage(t,e){const{updatePlaceholder:n,destroyPlaceholder:r,createPlaceholder:o}=this.options;return i=>{const{tr:s}=i;let l=s.selection.from;return this.store.createPlaceholderCommand({promise:t,placeholder:{type:"widget",get pos(){return l},createElement:(a,u)=>{const c=o(a,u);return e==null||e(c),c},onUpdate:(a,u,c,d)=>{n(a,u,c,d)},onDestroy:(a,u)=>{r(a,u)}},onSuccess:(a,u,c)=>this.insertImage(a,u)(c)}).validate(({tr:a,dispatch:u})=>{const c=fC(a.doc,l,this.type);return c==null?!1:(l=c,a.selection.empty||u==null||u(a.deleteSelection()),!0)},"unshift").generateCommand()(i)}}fileUploadFileHandler(t,e,n){var r;const{preferPastedTextContent:o,uploadHandler:i}=this.options;if(o&&Bie(e)&&((r=e.clipboardData)!=null&&r.getData("text/plain")))return!1;const{commands:s,chain:l}=this.store,a=t.map((c,d)=>({file:c,progress:h=>{s.updatePlaceholder(u[d],h)}})),u=i(a);$r(n)&&l.selectText(n);for(const c of u)l.uploadImage(c);return l.run(),!0}createPasteRules(){return[{type:"file",regexp:/image/i,fileHandler:t=>{const e=t.type==="drop"?t.pos:void 0;return this.fileUploadFileHandler(t.files,t.event,e)}}]}createNodeViews(){return this.options.enableResizing?(t,e,n)=>new $ie(t,e,n):{}}};ek([le()],ep.prototype,"insertImage",1),ek([le()],ep.prototype,"uploadImage",1),ep=ek([Ne({defaultOptions:{createPlaceholder:zie,updatePlaceholder:()=>{},destroyPlaceholder:()=>{},uploadHandler:Fie,enableResizing:!1,preferPastedTextContent:!0}})],ep);function Die(t){let{width:e,height:n}=t.style;return e=e||t.getAttribute("width")||"",n=n||t.getAttribute("height")||"",{width:e,height:n}}function Pie({element:t,parse:e}){const{width:n,height:r}=Die(t);return{...e(t),alt:t.getAttribute("alt")??"",height:Number.parseInt(r||"0",10)||null,src:t.getAttribute("src")??null,title:t.getAttribute("title")??"",width:Number.parseInt(n||"0",10)||null,fileName:t.getAttribute("data-file-name")??null}}function zie(t,e){const n=document.createElement("div");return n.classList.add(bU.IMAGE_LOADER),n}function Fie(t){be(t.length>0,{code:re.EXTENSION,message:"The upload handler was applied for the image extension without any valid files"});let e=0;const n=[];for(const{file:r,progress:o}of t)n.push(()=>new Promise(i=>{const s=new FileReader;s.addEventListener("load",l=>{var a;e+=1,o(e/t.length),i({src:(a=l.target)==null?void 0:a.result,fileName:r.name})},{once:!0}),s.readAsDataURL(r)}));return n}function Bie(t){return t.clipboardData!==void 0}var Hie=Object.defineProperty,Uie=Object.getOwnPropertyDescriptor,tk=(t,e,n,r)=>{for(var o=r>1?void 0:r?Uie(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Hie(e,n,o),o},Wie={icon:"italic",label:({t})=>t(NC.LABEL),description:({t})=>t(NC.DESCRIPTION)},tp=class extends ks{get name(){return"italic"}createTags(){return[we.FontStyle,we.FormattingMark]}createMarkSpec(t,e){return{...e,attrs:t.defaults(),parseDOM:[{tag:"i",getAttrs:t.parse},{tag:"em",getAttrs:t.parse},{style:"font-style=italic"},...e.parseDOM??[]],toDOM:n=>["em",t.dom(n),0]}}createKeymap(){return{"Mod-i":Es({type:this.type})}}createInputRules(){return[Ju({regexp:/(?:^|[^*])\*([^*]+)\*$/,type:this.type,ignoreWhitespace:!0,updateCaptured:({fullMatch:t,start:e})=>t.startsWith("*")?{}:{fullMatch:t.slice(1),start:e+1}}),Ju({regexp:/(?:^|\W)_([^_]+)_$/,type:this.type,ignoreWhitespace:!0,updateCaptured:({fullMatch:t,start:e})=>t.startsWith("_")?{}:{fullMatch:t.slice(1),start:e+1}})]}createPasteRules(){return[{type:"mark",markType:this.type,regexp:/(?:^|\W)_([^_]+)_/g},{type:"mark",markType:this.type,regexp:/\*([^*]+)\*/g}]}toggleItalic(t){return Es({type:this.type,selection:t})}shortcut(t){return this.toggleItalic()(t)}};tk([le(Wie)],tp.prototype,"toggleItalic",1),tk([Zt({shortcut:oe.Italic,command:"toggleItalic"})],tp.prototype,"shortcut",1),tp=tk([Ne({})],tp);var pN={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(typeof self<"u"?self:$e,function(){return function(n){function r(i){if(o[i])return o[i].exports;var s=o[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,r),s.l=!0,s.exports}var o={};return r.m=n,r.c=o,r.d=function(i,s,l){r.o(i,s)||Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:l})},r.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(s,"a",s),s},r.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},r.p="",r(r.s=0)}([function(n,r,o){function i(){throw new TypeError("The given URL is not a string. Please verify your string|array.")}function s(u){typeof u!="string"&&i();for(var c=0,d=0,h=0,p=u.length,f=0;p--&&++f&&!(c&&-1h?"":u.slice(h,c)}var l=["/",":","?","#"],a=[".","/","@"];n.exports=function(u){if(typeof u=="string")return s(u);if(Array.isArray(u)){var c=[],d,h=0;for(d=u.length;h{for(var o=r>1?void 0:r?Kie(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Gie(e,n,o),o},Yie=["com","de","net","org","uk","cn","ga","nl","cf","ml","tk","ru","br","gq","xyz","fr","eu","info","co","au","ca","it","in","ch","pl","es","online","us","top","be","jp","biz","se","at","dk","cz","za","me","ir","icu","shop","kr","site","mx","hu","io","cc","club","no","cyou"],fN="updateLink",Xie=/(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?:[\da-z\u00A1-\uFFFF][\w\u00A1-\uFFFF-]{0,62})?[\da-z\u00A1-\uFFFF]\.)*(?:(?:\d(?!\.)|[a-z\u00A1-\uFFFF])(?:[\da-z\u00A1-\uFFFF][\w\u00A1-\uFFFF-]{0,62})?[\da-z\u00A1-\uFFFF]\.)+[a-z\u00A1-\uFFFF]{2,}(?::\d{2,5})?(?:[#/?]\S*)?/gi,ml=class extends ks{constructor(){super(...arguments),this._autoLinkRegexNonGlobal=void 0}get name(){return"link"}createTags(){return[we.Link,we.ExcludeInputRules]}createMarkSpec(t,e){const n="data-link-auto",r=o=>{const{defaultTarget:i,supportedTargets:s}=this.options,l=i?[...s,i]:s;return o&&Jn(l,o)?{target:o}:void 0};return{inclusive:!1,excludes:"_",...e,attrs:{...t.defaults(),href:{},target:{default:this.options.defaultTarget},auto:{default:!1}},parseDOM:[{tag:"a[href]",getAttrs:o=>{if(!Ft(o))return!1;const i=o.getAttribute("href"),s=o.textContent,l=this.options.autoLink&&(o.hasAttribute(n)||i===s||(i==null?void 0:i.replace(`${this.options.defaultProtocol}//`,""))===s);return{...t.parse(o),href:i,auto:l,...r(o.getAttribute("target"))}}},...e.parseDOM??[]],toDOM:o=>{const{auto:i,target:s,...l}=nf(o.attrs,t),a=o.attrs.auto?{[n]:""}:{};return["a",{...t.dom(o),...l,rel:"noopener noreferrer nofollow",...a,...r(o.attrs.target)},0]}}}onCreate(){const{autoLinkRegex:t}=this.options;this._autoLinkRegexNonGlobal=new RegExp(`^${t.source}$`,t.flags.replace("g",""))}shortcut({tr:t}){let e="",{from:n,to:r,empty:o,$from:i}=t.selection,s=!1;const l=Ti(i,this.type);if(o){const a=l??mA(t);if(!a)return!1;({text:e,from:n,to:r}=a),s=!0}return n===r?!1:(s||(e=t.doc.textBetween(n,r)),this.options.onActivateLink(e),this.options.onShortcut({activeLink:l?{attrs:l.mark.attrs,from:l.from,to:l.to}:void 0,selectedText:e,from:n,to:r}),!0)}updateLink(t,e){return n=>{const{tr:r}=n;return!(xs(r.selection)&&!Q1(r.selection)||j3(r.selection)||Jp({trState:r,type:this.type}))&&!e?!1:(r.setMeta(this.name,{command:fN,attrs:t,range:e}),hz({type:this.type,attrs:t,range:e})(n))}}selectLink(){return this.store.commands.selectMark.original(this.type)}removeLink(t){return e=>{const{tr:n}=e;return Jp({trState:n,type:this.type,...t})?CA({type:this.type,expand:!0,range:t})(e):!1}}createPasteRules(){return[{type:"mark",regexp:this.options.autoLinkRegex,markType:this.type,getAttributes:(t,e)=>({href:this.buildHref(Ql(t)),auto:!e}),transformMatch:t=>{const e=Ql(t);return!e||!this.isValidUrl(e)?!1:e}}]}createEventHandlers(){return{clickMark:(t,e)=>{const n=e.getMark(this.type);if(!n)return;const r=n.mark.attrs,o={...r,...n};if(this.options.onClick(t,o))return!0;if(!this.store.view.editable)return;let i=!1;if(this.options.openLinkOnClick){i=!0;const s=r.href;window.open(s,"_blank")}return this.options.selectTextOnClick&&(i=!0,this.store.commands.selectText(n)),i}}}createPlugin(){return{appendTransaction:(t,e,n)=>{if(t.filter(p=>!!p.getMeta(this.name)).forEach(p=>{const f=p.getMeta(this.name);if(f.command===fN){const{range:g,attrs:m}=f,{selection:v,doc:y}=n,b={range:g,selection:v,doc:y,attrs:m},{from:x,to:k}=g??v;this.options.onUpdateLink(y.textBetween(x,k),b)}}),!this.options.autoLink||ly(e)-ly(n)===1||!t.some(p=>p.docChanged))return;const s=M3(t,e),l=gA(s,[Gt,pn]),{mapping:a}=s,{tr:u,doc:c}=n,{updateLink:d,removeLink:h}=this.store.chain(u);if(l.forEach(({prevFrom:p,prevTo:f,from:g,to:m})=>{const v=[],y=m-g===2,b=this.getLinkMarksInRange(e.doc,p,f,!0).filter(x=>x.mark.type===this.type).map(({from:x,to:k,text:w})=>({mappedFrom:a.map(x),mappedTo:a.map(k),text:w,from:x,to:k}));b.forEach(({mappedFrom:x,mappedTo:k,from:w,to:S},A)=>this.getLinkMarksInRange(c,x,k,!0).filter(C=>C.mark.type===this.type).forEach(C=>{const O=e.doc.textBetween(w,S,void 0," "),R=c.textBetween(C.from,C.to+1,void 0," ").trim(),_=this.isValidUrl(O);this.isValidUrl(R)||(_&&(h({from:C.from,to:C.to}).tr(),b.splice(A,1)),!y&&g===m&&this.findAutoLinks(R).map(E=>this.addLinkProperties({...E,from:x+E.start,to:x+E.end})).forEach(({attrs:E,range:M,text:I})=>{d(E,M).tr(),v.push({attrs:E,range:M,text:I})}))})),this.findTextBlocksInRange(c,{from:g,to:m}).forEach(({text:x,positionStart:k})=>{this.findAutoLinks(x).map(w=>this.addLinkProperties({...w,from:k+w.start+1,to:k+w.end+1})).filter(({range:w})=>{const S=g>=w.from&&g<=w.to,A=m>=w.from&&m<=w.to;return S||A||y}).filter(({range:w})=>this.getLinkMarksInRange(u.doc,w.from,w.to,!1).length===0).filter(({range:{from:w},text:S})=>!b.some(({text:A,mappedFrom:C})=>C===w&&A===S)).forEach(({attrs:w,text:S,range:A})=>{d(w,A).tr(),v.push({attrs:w,range:A,text:S})})}),window.requestAnimationFrame(()=>{v.forEach(({attrs:x,range:k,text:w})=>{const{doc:S,selection:A}=u;this.options.onUpdateLink(w,{attrs:x,doc:S,range:k,selection:A})})})}),u.steps.length!==0)return u}}}buildHref(t){return this.options.extractHref({url:t,defaultProtocol:this.options.defaultProtocol})}getLinkMarksInRange(t,e,n,r){const o=[];if(e===n){const i=Math.max(e-1,0),s=t.resolve(i),l=Ti(s,this.type);(l==null?void 0:l.mark.attrs.auto)===r&&o.push(l)}else t.nodesBetween(e,n,(i,s)=>{const a=(i.marks??[]).find(({type:u,attrs:c})=>u===this.type&&c.auto===r);a&&o.push({from:s,to:s+i.nodeSize,mark:a,text:i.textContent})});return o}findTextBlocksInRange(t,e){const n=[];return t.nodesBetween(e.from,e.to,(r,o)=>{!r.isTextblock||!r.type.allowsMarkType(this.type)||n.push({node:r,pos:o})}),n.map(r=>({text:t.textBetween(r.pos,r.pos+r.node.nodeSize,void 0," "),positionStart:r.pos}))}addLinkProperties({from:t,to:e,href:n,...r}){return{...r,range:{from:t,to:e},attrs:{href:n,auto:!0}}}findAutoLinks(t){if(this.options.findAutoLinks)return this.options.findAutoLinks(t,this.options.defaultProtocol);const e=[];for(const n of Il(t,this.options.autoLinkRegex)){const r=Ql(n);if(!r)continue;const o=this.buildHref(r);!this.isValidTLD(o)&&!o.startsWith("tel:")||e.push({text:r,href:o,start:n.index,end:n.index+r.length})}return e}isValidUrl(t){var e;return this.options.isValidUrl?this.options.isValidUrl(t,this.options.defaultProtocol):this.isValidTLD(this.buildHref(t))&&!!((e=this._autoLinkRegexNonGlobal)!=null&&e.test(t))}isValidTLD(t){const{autoLinkAllowedTLDs:e}=this.options;if(e.length===0)return!0;const n=jie(t);if(n==="")return!0;const r=c4(n.split("."));return e.includes(r)}};np([Zt({shortcut:oe.InsertLink})],ml.prototype,"shortcut",1),np([le()],ml.prototype,"updateLink",1),np([le()],ml.prototype,"selectLink",1),np([le()],ml.prototype,"removeLink",1),ml=np([Ne({defaultOptions:{autoLink:!1,defaultProtocol:"",selectTextOnClick:!1,openLinkOnClick:!1,autoLinkRegex:Xie,autoLinkAllowedTLDs:Yie,findAutoLinks:void 0,isValidUrl:void 0,defaultTarget:null,supportedTargets:[],extractHref:qie},staticKeys:["autoLinkRegex"],handlerKeyOptions:{onClick:{earlyReturnValue:!0}},handlerKeys:["onActivateLink","onShortcut","onUpdateLink","onClick"],defaultPriority:tt.Medium})],ml);function qie({url:t,defaultProtocol:e}){const n=/^((?:https?|ftp)?:)\/\//.test(t);return!n&&t.includes("@")?`mailto:${t}`:n?t:`${e}//${t}`}function Zie(t){for(var e=1;e0&&t[e-1]===` -`;)e--;return t.substring(0,e)}var ese=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function rk(t){return ok(t,ese)}var gN=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function mN(t){return ok(t,gN)}function tse(t){return yN(t,gN)}var vN=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function nse(t){return ok(t,vN)}function rse(t){return yN(t,vN)}function ok(t,e){return e.indexOf(t.nodeName)>=0}function yN(t,e){return t.getElementsByTagName&&e.some(function(n){return t.getElementsByTagName(n).length})}var Yn={};Yn.paragraph={filter:"p",replacement:function(t){return` +*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var i="",s=0;s{for(var o=r>1?void 0:r?Eie(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&kie(e,n,o),o};function Sie(t){const e=[],n=new Map;for(const s of t){const l=n.get(s.from)??[],a=n.get(s.to)??[];n.set(s.from,[...l,{type:"start",annotation:s}]),n.set(s.to,[...a,{type:"end",annotation:s}])}const r=as([...n.entries()],([s],[l])=>s-l);let o=[],i=0;for(const[s,l]of r){const a=l.filter(c=>c.type==="start").map(c=>c.annotation),u=new Set(l.filter(c=>c.type==="end").map(c=>c.annotation.id));o.length>0&&e.push({from:i,to:s,annotations:o}),i=s,o=[...o,...a].filter(c=>!u.has(c.id))}return e}var Cie=class{constructor(t,e){this.getStyle=t,this.store=e,this.annotations=[],this.decorationSet=Ue.empty}addAnnotation(t){const e={from:t.from,to:t.to,...t.annotationData};this.store.addAnnotation(e)}updateAnnotation(t){this.store.updateAnnotation(t.annotationId,t.annotationData)}removeAnnotations(t){this.store.removeAnnotations(t.annotationIds)}setAnnotations(t){this.store.setAnnotations(t.annotations)}formatAnnotations(){return this.store.formatAnnotations()}createDecorations(t,e=[]){const n=Sie(e).map(r=>{const o=r.annotations.map(s=>s.className).filter(s=>s),i=this.getStyle(r.annotations);return mt.inline(r.from,r.to,{class:o.length>0?o.join(" "):void 0,style:i})});return Ue.create(t.doc,n)}apply({tr:t,action:e}){const n=e==null?void 0:e.type;return!e&&!t.docChanged?this:(n!==void 0?(n===0&&this.addAnnotation(e),n===4&&this.updateAnnotation(e),n===2&&this.removeAnnotations(e),n===3&&this.setAnnotations(e),this.annotations=this.formatAnnotations(),this.decorationSet=this.createDecorations(t,this.annotations)):(this.annotations=this.annotations.map(r=>({...r,from:t.mapping.map(r.from,1),to:t.mapping.map(r.to,-1)})).filter(r=>r.to!==r.from),this.store.setAnnotations(this.annotations),this.decorationSet=this.decorationSet.map(t.mapping,t.doc)),this)}},bN=class{constructor(t=new Map,e=r=>r,n=r=>r){this.map=t,this.positionToStored=e,this.positionFromStored=n}addAnnotation({from:t,to:e,...n}){const r={from:this.positionToStored(t),to:this.positionToStored(e),...n};this.map.set(n.id,r)}updateAnnotation(t,e){const n=this.map.get(t);n&&this.map.set(t,{...n,...e})}removeAnnotations(t){t.forEach(e=>{this.map.delete(e)})}setAnnotations(t){typeof this.map.clear=="function"?this.map.clear():this.map.forEach(e=>this.map.delete(e.id)),t.forEach(e=>{this.addAnnotation(e)})}formatAnnotations(){const t=[];return this.map.forEach(({from:e,to:n,...r})=>{const o=this.positionFromStored(e),i=this.positionFromStored(n);if(!o||!i)return;const s={from:o,to:i,...r};t.push(s)}),t}};function Tie(t){const n=200*(1-Math.min(t.length,5)/5)+55;return`background: rgb(${n}, ${n}, 255);`}var Dn=class extends ct{constructor(){super(...arguments),this.enrichText=t=>{const{doc:e}=this.store.getState(),n=t.to<=e.content.size?e.textBetween(t.from,t.to,this.options.blockSeparator):void 0;return{...t,text:n}}}get name(){return"annotation"}onSetOptions(t){const{pickChanged:e}=t,n=e(["getStore","getMap","transformPosition","transformPositionBeforeRender"]);Au(n)||this.store.updateExtensionPlugins(this)}createPlugin(){let t;this.options.getMap?(n1(xr.isProduction,'Must not provide both "getMap" and "getStore"'),t=new bN(this.options.getMap(),this.options.transformPosition,this.options.transformPositionBeforeRender)):t=this.options.getStore();const e=new Cie(this.options.getStyle,t);return{state:{init(){return e},apply(n){const r=n.getMeta(Dn.name);return e.apply({tr:n,action:r})}},props:{decorations(n){var r;return(r=this.getState(n))==null?void 0:r.decorationSet}}}}addAnnotation(t){return({tr:e,dispatch:n})=>{const{empty:r,from:o,to:i}=e.selection;return r?!1:(n==null||n(e.setMeta(Dn.name,{type:0,from:o,to:i,annotationData:t})),!0)}}updateAnnotation(t,e){return({tr:n,dispatch:r})=>{if(r){const o={...e,id:t},i={type:4,annotationId:t,annotationData:o};r(n.setMeta(Dn.name,i))}return!0}}removeAnnotations(t){return({tr:e,dispatch:n})=>(n==null||n(e.setMeta(Dn.name,{type:2,annotationIds:t})),!0)}setAnnotations(t){return({tr:e,dispatch:n})=>(n==null||n(e.setMeta(Dn.name,{type:3,annotations:t})),!0)}redrawAnnotations(){return({tr:t,dispatch:e})=>(e==null||e(t.setMeta(Dn.name,{type:1})),!0)}getAnnotations(){return this.getPluginState().annotations.map(this.enrichText)}getAnnotationsAt(t,e=!0){const n=[],{doc:r,selection:o}=this.store.getState(),i=this.getPluginState(),{from:s,to:l}=or(t??o,r);for(const a of i.annotations)(Yo(s,a.from,a.to)||Yo(l,a.from,a.to)||Yo(a.from,s,l)||Yo(a.to,s,l))&&(e?n.push(this.enrichText(a)):a.from!==s&&a.to!==l&&n.push(this.enrichText(a)));return n}selectionHasAnnotation(t){return this.getAnnotationsAt(t).length>0}};Zi([le()],Dn.prototype,"addAnnotation",1),Zi([le()],Dn.prototype,"updateAnnotation",1),Zi([le()],Dn.prototype,"removeAnnotations",1),Zi([le()],Dn.prototype,"setAnnotations",1),Zi([le()],Dn.prototype,"redrawAnnotations",1),Zi([nt()],Dn.prototype,"getAnnotations",1),Zi([nt()],Dn.prototype,"getAnnotationsAt",1),Zi([nt()],Dn.prototype,"selectionHasAnnotation",1),Dn=Zi([Ne({defaultOptions:{getStyle:Tie,blockSeparator:void 0,getStore:()=>new bN,getMap:void 0,transformPosition:void 0,transformPositionBeforeRender:void 0},defaultPriority:tt.Low})],Dn);var Aie=Object.defineProperty,_ie=Object.getOwnPropertyDescriptor,xN=(t,e,n,r)=>{for(var o=r>1?void 0:r?_ie(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Aie(e,n,o),o},nk=class extends Mn{get name(){return"blockquote"}createTags(){return[we.Block,we.FormattingNode]}createNodeSpec(t,e){return{content:"block+",defining:!0,draggable:!1,...e,attrs:t.defaults(),parseDOM:[{tag:"blockquote",getAttrs:t.parse,priority:100},...e.parseDOM??[]],toDOM:n=>["blockquote",t.dom(n),0]}}toggleBlockquote(){return PA(this.type)}shortcut(t){return this.toggleBlockquote()(t)}createInputRules(){return[Up(/^\s*>\s$/,this.type)]}createPasteRules(){return{type:"node",nodeType:this.type,regexp:/^\s*>\s$/,startOfTextBlock:!0}}};xN([le({icon:"doubleQuotesL",description:({t})=>t(HC.DESCRIPTION),label:({t})=>t(HC.LABEL)})],nk.prototype,"toggleBlockquote",1),xN([Zt({shortcut:"Ctrl->",command:"toggleBlockquote"})],nk.prototype,"shortcut",1);var Rie=Object.defineProperty,Mie=Object.getOwnPropertyDescriptor,ep=(t,e,n,r)=>{for(var o=r>1?void 0:r?Mie(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Rie(e,n,o),o},Oie={icon:"bold",label:({t})=>t(UC.LABEL),description:({t})=>t(UC.DESCRIPTION)},hl=class extends Es{get name(){return"bold"}createTags(){return[we.FormattingMark,we.FontStyle]}createMarkSpec(t,e){return{...e,attrs:t.defaults(),parseDOM:[{tag:"strong",getAttrs:t.parse},{tag:"b",getAttrs:n=>Ft(n)&&n.style.fontWeight!=="normal"?t.parse(n):!1},{style:"font-weight",getAttrs:n=>ke(n)&&/^(bold(er)?|[5-9]\d{2,})$/.test(n)?null:!1},...e.parseDOM??[]],toDOM:n=>{const{weight:r}=this.options;return r?["strong",{"font-weight":r.toString()},0]:["strong",t.dom(n),0]}}}createInputRules(){return[ed({regexp:/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/,type:this.type,ignoreWhitespace:!0})]}toggleBold(t){return Ss({type:this.type,selection:t})}setBold(t){return({tr:e,dispatch:n})=>{const{from:r,to:o}=or(t??e.selection,e.doc);return n==null||n(e.addMark(r,o,this.type.create())),!0}}removeBold(t){return({tr:e,dispatch:n})=>{const{from:r,to:o}=or(t??e.selection,e.doc);return e.doc.rangeHasMark(r,o,this.type)?(n==null||n(e.removeMark(r,o,this.type)),!0):!1}}shortcut(t){return this.toggleBold()(t)}};ep([le(Oie)],hl.prototype,"toggleBold",1),ep([le()],hl.prototype,"setBold",1),ep([le()],hl.prototype,"removeBold",1),ep([Zt({shortcut:oe.Bold,command:"toggleBold"})],hl.prototype,"shortcut",1),hl=ep([Ne({defaultOptions:{weight:void 0},staticKeys:["weight"]})],hl);var Iie=Object.defineProperty,Lie=Object.getOwnPropertyDescriptor,rk=(t,e,n,r)=>{for(var o=r>1?void 0:r?Lie(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Iie(e,n,o),o},{DESCRIPTION:Nie,LABEL:$ie}=$P,Die={icon:"codeLine",description:({t})=>t(Nie),label:({t})=>t($ie)},tp=class extends Es{get name(){return"code"}createTags(){return[we.Code,we.ExcludeInputRules]}createMarkSpec(t,e){return{excludes:"_",...e,attrs:t.defaults(),parseDOM:[{tag:"code",getAttrs:t.parse},...e.parseDOM??[]],toDOM:n=>["code",{spellcheck:"false",...t.dom(n)},0]}}createKeymap(){return{"Mod-`":Ss({type:this.type})}}keyboardShortcut(t){return this.toggleCode()(t)}toggleCode(){return Ss({type:this.type})}createInputRules(){return[ed({regexp:new RegExp(`(?:\`)([^\`${Jv}]+)(?:\`)$`),type:this.type,ignoreWhitespace:!0})]}createPasteRules(){return[{type:"mark",regexp:/`([^`]+)`/g,markType:this.type}]}};rk([Zt({shortcut:oe.Code,command:"toggleCode"})],tp.prototype,"keyboardShortcut",1),rk([le(Die)],tp.prototype,"toggleCode",1),tp=rk([Ne({})],tp);var wN=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Je=(t,e,n)=>(wN(t,e,"read from private field"),n?n.call(t):e.get(t)),cu=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},ia=(t,e,n,r)=>(wN(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Pie='',zie='',Fie=encodeURIComponent(Pie),Bie=encodeURIComponent(zie),Nr,Hie=class{constructor(t){cu(this,Nr,void 0);const e=document.createElement("div"),n=document.createElement("div");this.dom=e,ia(this,Nr,n),this.type=t,this.createHandle(t)}createHandle(t){switch(Wn(this.dom,{position:"absolute",pointerEvents:"auto",display:"flex",alignItems:"center",justifyContent:"center",zIndex:"100"}),Wn(Je(this,Nr),{opacity:"0",transition:"opacity 300ms ease-in 0s"}),Je(this,Nr).dataset.dragging="",t){case 0:Wn(this.dom,{right:"0px",top:"0px",height:"100%",width:"15px",cursor:"col-resize"}),Wn(Je(this,Nr),{width:" 4px",height:"36px",maxHeight:"50%",boxSizing:"content-box",background:"rgba(0, 0, 0, 0.65)",border:"1px solid rgba(255, 255, 255, 0.5)",borderRadius:"6px"});break;case 1:Wn(this.dom,{left:"0px",top:"0px",height:"100%",width:"15px",cursor:"col-resize"}),Wn(Je(this,Nr),{width:" 4px",height:"36px",maxHeight:"50%",boxSizing:"content-box",background:"rgba(0, 0, 0, 0.65)",border:"1px solid rgba(255, 255, 255, 0.5)",borderRadius:"6px"});break;case 2:Wn(this.dom,{bottom:"0px",width:"100%",height:"14px",cursor:"row-resize"}),Wn(Je(this,Nr),{width:" 42px",height:"4px",boxSizing:"content-box",maxWidth:"50%",background:"rgba(0, 0, 0, 0.65)",border:"1px solid rgba(255, 255, 255, 0.5)",borderRadius:"6px"});break;case 3:Wn(this.dom,{right:"-1px",bottom:"-2px",width:"30px",height:"30px",cursor:"nwse-resize",zIndex:"101"}),Wn(Je(this,Nr),{height:"22px",width:"22px",backgroundRepeat:"no-repeat",backgroundImage:`url("data:image/svg+xml,${Bie}") `});break;case 4:Wn(this.dom,{left:"-1px",bottom:"-2px",width:"30px",height:"30px",cursor:"nesw-resize",zIndex:"101"}),Wn(Je(this,Nr),{height:"22px",width:"22px",backgroundRepeat:"no-repeat",backgroundImage:`url("data:image/svg+xml,${Fie}") `});break}this.dom.append(Je(this,Nr))}setHandleVisibility(t){const e=t||!!Je(this,Nr).dataset.dragging;Je(this,Nr).style.opacity=e?"1":"0"}dataSetDragging(t){Je(this,Nr).dataset.dragging=t?"true":""}};Nr=new WeakMap;var iv=50,kN=(t=>(t[t.Fixed=0]="Fixed",t[t.Flexible=1]="Flexible",t))(kN||{}),pl,fl,gl,Ji,ml,Uie=class{constructor({node:t,view:e,getPos:n,aspectRatio:r=0,options:o,initialSize:i}){cu(this,pl,void 0),cu(this,fl,void 0),cu(this,gl,[]),cu(this,Ji,void 0),cu(this,ml,void 0);const s=this.createWrapper(t,i),l=this.createElement({node:t,view:e,getPos:n,options:o}),u=(r===1?[0,1,2,3,4]:[0,1]).map(h=>new Hie(h));for(const h of u){const p=f=>{this.startResizing(f,e,n,h)};h.dom.addEventListener("mousedown",p),Je(this,gl).push(()=>h.dom.removeEventListener("mousedown",p)),s.append(h.dom)}const c=()=>{u.forEach(h=>h.setHandleVisibility(!0))},d=()=>{u.forEach(h=>h.setHandleVisibility(!1))};s.addEventListener("mouseover",c),s.addEventListener("mouseout",d),Je(this,gl).push(()=>s.removeEventListener("mouseover",c),()=>s.removeEventListener("mouseout",d)),s.append(l),this.dom=s,ia(this,fl,t),ia(this,pl,l),this.aspectRatio=r}createWrapper(t,e){const n=document.createElement("div");return n.classList.add("remirror-resizable-view"),n.style.position="relative",e?Wn(n,{width:EN(e.width),aspectRatio:`${e.width} / ${e.height}`}):Wn(n,{width:EN(t.attrs.width),aspectRatio:`${t.attrs.width} / ${t.attrs.height}`}),Wn(n,{maxWidth:"100%",minWidth:`${iv}px`,verticalAlign:"bottom",display:"inline-block",lineHeight:"0",transition:"width 0.15s ease-out, height 0.15s ease-out"}),n}startResizing(t,e,n,r){var o,i;t.preventDefault(),r.dataSetDragging(!0),Je(this,pl).style.pointerEvents="none";const s=t.pageX,l=t.pageY,a=((o=Je(this,pl))==null?void 0:o.getBoundingClientRect().width)||0,u=((i=Je(this,pl))==null?void 0:i.getBoundingClientRect().height)||0,c=t1(100,!1,h=>{const p=h.pageX,f=h.pageY,g=p-s,m=f-l;let v=null,y=null;if(this.aspectRatio===0&&a&&u)switch(r.type){case 0:case 3:v=a+g,y=u/a*v;break;case 1:case 4:v=a-g,y=u/a*v;break;case 2:y=u+m,v=a/u*y;break}else if(this.aspectRatio===1)switch(r.type){case 0:v=a+g;break;case 1:v=a-g;break;case 2:y=u+m;break;case 3:v=a+g,y=u+m;break;case 4:v=a-g,y=u+m;break}typeof v=="number"&&v{h.preventDefault(),r.dataSetDragging(!1),r.setHandleVisibility(!1),Je(this,pl).style.pointerEvents="auto",document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d);const p=n(),f=e.state.tr.setNodeMarkup(p,void 0,{...Je(this,fl).attrs,width:Je(this,Ji),height:Je(this,ml)});e.dispatch(f)};document.addEventListener("mousemove",c),document.addEventListener("mouseup",d),Je(this,gl).push(()=>document.removeEventListener("mousemove",c)),Je(this,gl).push(()=>document.removeEventListener("mouseup",d))}update(t){return t.type!==Je(this,fl).type||this.aspectRatio===0&&t.attrs.width&&t.attrs.width!==Je(this,Ji)||this.aspectRatio===1&&t.attrs.width&&t.attrs.height&&t.attrs.width!==Je(this,Ji)&&t.attrs.height!==Je(this,ml)||!Wie(Je(this,fl),t,["width","height"])?!1:(ia(this,fl,t),ia(this,Ji,t.attrs.width),ia(this,ml,t.attrs.height),!0)}destroy(){Je(this,gl).forEach(t=>t())}};pl=new WeakMap,fl=new WeakMap,gl=new WeakMap,Ji=new WeakMap,ml=new WeakMap;function Wie(t,e,n){return t===e||Vie(t,e,n)&&t.content.eq(e.content)}function Vie(t,e,n){const r=t.attrs,o=e.attrs,i={};for(const l of n)i[l]=null;t.attrs={...r,...i},e.attrs={...o,...i};const s=t.sameMarkup(e);return t.attrs=r,e.attrs=o,s}function EN(t){return typeof t=="number"?`${t}px`:t||void 0}var jie=Object.defineProperty,Gie=Object.getOwnPropertyDescriptor,SN=(t,e,n,r)=>{for(var o=r>1?void 0:r?Gie(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&jie(e,n,o),o},sv=class extends Mn{get name(){return"hardBreak"}createTags(){return[we.InlineNode]}createNodeSpec(t,e){return{inline:!0,selectable:!1,atom:!0,leafText:()=>` +`,...e,attrs:t.defaults(),parseDOM:[{tag:"br",getAttrs:t.parse},...e.parseDOM??[]],toDOM:n=>["br",t.dom(n)]}}createKeymap(){const t=Y3(Yu(GA),()=>(this.store.commands.insertHardBreak(),!0));return{"Mod-Enter":t,"Shift-Enter":t}}insertHardBreak(){return t=>{const{tr:e,dispatch:n}=t;return n==null||n(e.replaceSelectionWith(this.type.create()).scrollIntoView()),!0}}};SN([le()],sv.prototype,"insertHardBreak",1),sv=SN([Ne({defaultPriority:tt.Low})],sv);var Kie=Object.defineProperty,Yie=Object.getOwnPropertyDescriptor,CN=(t,e,n,r)=>{for(var o=r>1?void 0:r?Yie(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Kie(e,n,o),o},{LABEL:Xie}=DP,qie={icon:({attrs:t})=>`h${(t==null?void 0:t.level)??"1"}`,label:({t,attrs:e})=>t({...Xie,values:{level:e==null?void 0:e.level}})},Zie=[oe.H1,oe.H2,oe.H3,oe.H4,oe.H5,oe.H6],av=class extends Mn{get name(){return"heading"}createTags(){return[we.Block,we.TextBlock,we.FormattingNode]}createNodeSpec(t,e){return{content:"inline*",defining:!0,draggable:!1,...e,attrs:{...t.defaults(),level:{default:this.options.defaultLevel}},parseDOM:[...this.options.levels.map(n=>({tag:`h${n}`,getAttrs:r=>({...t.parse(r),level:n})})),...e.parseDOM??[]],toDOM:n=>this.options.levels.includes(n.attrs.level)?[`h${n.attrs.level}`,t.dom(n),0]:[`h${this.options.defaultLevel}`,t.dom(n),0]}}toggleHeading(t={}){return c0({type:this.type,toggleType:"paragraph",attrs:t})}createKeymap(t){const e=this.store.getExtension(We),n=ye(),r=[];for(const o of this.options.levels){const i=Zie[o-1]??oe.H1;n[i]=Qu(this.type,{level:o}),r.push({attrs:{level:o},shortcut:t(i)[0]})}return e.updateDecorated("toggleHeading",{shortcut:r}),n}createInputRules(){return this.options.levels.map(t=>HP(new RegExp(`^(#{1,${t}})\\s$`),this.type,()=>({level:t})))}createPasteRules(){return this.options.levels.map(t=>({type:"node",nodeType:this.type,regexp:new RegExp(`^#{${t}}\\s([\\s\\w]+)$`),getAttributes:()=>({level:t}),startOfTextBlock:!0}))}};CN([le(qie)],av.prototype,"toggleHeading",1),av=CN([Ne({defaultOptions:{levels:[1,2,3,4,5,6],defaultLevel:1},staticKeys:["defaultLevel","levels"]})],av);var Jie=Object.defineProperty,Qie=Object.getOwnPropertyDescriptor,TN=(t,e,n,r)=>{for(var o=r>1?void 0:r?Qie(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Jie(e,n,o),o},ese={icon:"separator",label:({t})=>t(WC.LABEL),description:({t})=>t(WC.DESCRIPTION)},lv=class extends Mn{get name(){return"horizontalRule"}createTags(){return[we.Block]}createNodeSpec(t,e){return{...e,attrs:t.defaults(),parseDOM:[{tag:"hr",getAttrs:t.parse},...e.parseDOM??[]],toDOM:n=>["hr",t.dom(n)]}}insertHorizontalRule(){return t=>{const{tr:e,dispatch:n}=t,r=e.selection.$anchor,o=r.parent;return o.type.name==="doc"||o.isAtom||o.isLeaf?!1:(n&&(e.selection.empty&&nf(o)&&e.insert(r.pos+1,o),e.replaceSelectionWith(this.type.create()),this.updateFromNodeSelection(e),n(e.scrollIntoView())),!0)}}createInputRules(){return[BA({regexp:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type,beforeDispatch:({tr:t})=>{this.updateFromNodeSelection(t)}})]}updateFromNodeSelection(t){if(!Ju(t.selection)||t.selection.node.type.name!==this.name)return;const e=t.selection.$from.pos+1,{insertionNode:n}=this.options;if(!n)return;const r=this.store.schema.nodes[n];be(r,{code:re.EXTENSION,message:`'${n}' node provided as the insertionNode to the '${this.constructorName}' does not exist.`});const o=r.create();t.insert(e,o),t.setSelection(Oe.near(t.doc.resolve(e+1)))}};TN([le(ese)],lv.prototype,"insertHorizontalRule",1),lv=TN([Ne({defaultOptions:{insertionNode:"paragraph"}})],lv);var tse=Object.defineProperty,nse=Object.getOwnPropertyDescriptor,ok=(t,e,n,r)=>{for(var o=r>1?void 0:r?nse(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&tse(e,n,o),o},rse=class extends Uie{constructor(t,e,n){super({node:t,view:e,getPos:n,aspectRatio:kN.Fixed})}createElement({node:t}){const e=document.createElement("img");return e.setAttribute("src",t.attrs.src),Wn(e,{width:"100%",minWidth:"50px",objectFit:"contain"}),e}},np=class extends Mn{get name(){return"image"}createTags(){return[we.InlineNode,we.Media]}createNodeSpec(t,e){const{preferPastedTextContent:n}=this.options;return{inline:!0,draggable:!0,selectable:!1,...e,attrs:{...t.defaults(),alt:{default:""},crop:{default:null},height:{default:null},width:{default:null},rotate:{default:null},src:{default:null},title:{default:""},fileName:{default:null},resizable:{default:!1}},parseDOM:[{tag:"img[src]",getAttrs:r=>{var o;if(Ft(r)){const i=ise({element:r,parse:t.parse});return n&&((o=i.src)!=null&&o.startsWith("file:///"))?!1:i}return{}}},...e.parseDOM??[]],toDOM:r=>{const o=of(r.attrs,t);return["img",{...t.dom(r),...o}]}}}insertImage(t,e){return({tr:n,dispatch:r})=>{const{from:o,to:i}=or(e??n.selection,n.doc),s=this.type.create(t);return r==null||r(n.replaceRangeWith(o,i,s)),!0}}uploadImage(t,e){const{updatePlaceholder:n,destroyPlaceholder:r,createPlaceholder:o}=this.options;return i=>{const{tr:s}=i;let l=s.selection.from;return this.store.createPlaceholderCommand({promise:t,placeholder:{type:"widget",get pos(){return l},createElement:(a,u)=>{const c=o(a,u);return e==null||e(c),c},onUpdate:(a,u,c,d)=>{n(a,u,c,d)},onDestroy:(a,u)=>{r(a,u)}},onSuccess:(a,u,c)=>this.insertImage(a,u)(c)}).validate(({tr:a,dispatch:u})=>{const c=SC(a.doc,l,this.type);return c==null?!1:(l=c,a.selection.empty||u==null||u(a.deleteSelection()),!0)},"unshift").generateCommand()(i)}}fileUploadFileHandler(t,e,n){var r;const{preferPastedTextContent:o,uploadHandler:i}=this.options;if(o&&lse(e)&&((r=e.clipboardData)!=null&&r.getData("text/plain")))return!1;const{commands:s,chain:l}=this.store,a=t.map((c,d)=>({file:c,progress:h=>{s.updatePlaceholder(u[d],h)}})),u=i(a);Dr(n)&&l.selectText(n);for(const c of u)l.uploadImage(c);return l.run(),!0}createPasteRules(){return[{type:"file",regexp:/image/i,fileHandler:t=>{const e=t.type==="drop"?t.pos:void 0;return this.fileUploadFileHandler(t.files,t.event,e)}}]}createNodeViews(){return this.options.enableResizing?(t,e,n)=>new rse(t,e,n):{}}};ok([le()],np.prototype,"insertImage",1),ok([le()],np.prototype,"uploadImage",1),np=ok([Ne({defaultOptions:{createPlaceholder:sse,updatePlaceholder:()=>{},destroyPlaceholder:()=>{},uploadHandler:ase,enableResizing:!1,preferPastedTextContent:!0}})],np);function ose(t){let{width:e,height:n}=t.style;return e=e||t.getAttribute("width")||"",n=n||t.getAttribute("height")||"",{width:e,height:n}}function ise({element:t,parse:e}){const{width:n,height:r}=ose(t);return{...e(t),alt:t.getAttribute("alt")??"",height:Number.parseInt(r||"0",10)||null,src:t.getAttribute("src")??null,title:t.getAttribute("title")??"",width:Number.parseInt(n||"0",10)||null,fileName:t.getAttribute("data-file-name")??null}}function sse(t,e){const n=document.createElement("div");return n.classList.add(FU.IMAGE_LOADER),n}function ase(t){be(t.length>0,{code:re.EXTENSION,message:"The upload handler was applied for the image extension without any valid files"});let e=0;const n=[];for(const{file:r,progress:o}of t)n.push(()=>new Promise(i=>{const s=new FileReader;s.addEventListener("load",l=>{var a;e+=1,o(e/t.length),i({src:(a=l.target)==null?void 0:a.result,fileName:r.name})},{once:!0}),s.readAsDataURL(r)}));return n}function lse(t){return t.clipboardData!==void 0}var cse=Object.defineProperty,use=Object.getOwnPropertyDescriptor,ik=(t,e,n,r)=>{for(var o=r>1?void 0:r?use(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&cse(e,n,o),o},dse={icon:"italic",label:({t})=>t(VC.LABEL),description:({t})=>t(VC.DESCRIPTION)},rp=class extends Es{get name(){return"italic"}createTags(){return[we.FontStyle,we.FormattingMark]}createMarkSpec(t,e){return{...e,attrs:t.defaults(),parseDOM:[{tag:"i",getAttrs:t.parse},{tag:"em",getAttrs:t.parse},{style:"font-style=italic"},...e.parseDOM??[]],toDOM:n=>["em",t.dom(n),0]}}createKeymap(){return{"Mod-i":Ss({type:this.type})}}createInputRules(){return[ed({regexp:/(?:^|[^*])\*([^*]+)\*$/,type:this.type,ignoreWhitespace:!0,updateCaptured:({fullMatch:t,start:e})=>t.startsWith("*")?{}:{fullMatch:t.slice(1),start:e+1}}),ed({regexp:/(?:^|\W)_([^_]+)_$/,type:this.type,ignoreWhitespace:!0,updateCaptured:({fullMatch:t,start:e})=>t.startsWith("_")?{}:{fullMatch:t.slice(1),start:e+1}})]}createPasteRules(){return[{type:"mark",markType:this.type,regexp:/(?:^|\W)_([^_]+)_/g},{type:"mark",markType:this.type,regexp:/\*([^*]+)\*/g}]}toggleItalic(t){return Ss({type:this.type,selection:t})}shortcut(t){return this.toggleItalic()(t)}};ik([le(dse)],rp.prototype,"toggleItalic",1),ik([Zt({shortcut:oe.Italic,command:"toggleItalic"})],rp.prototype,"shortcut",1),rp=ik([Ne({})],rp);var AN={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(typeof self<"u"?self:$e,function(){return function(n){function r(i){if(o[i])return o[i].exports;var s=o[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,r),s.l=!0,s.exports}var o={};return r.m=n,r.c=o,r.d=function(i,s,l){r.o(i,s)||Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:l})},r.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(s,"a",s),s},r.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},r.p="",r(r.s=0)}([function(n,r,o){function i(){throw new TypeError("The given URL is not a string. Please verify your string|array.")}function s(u){typeof u!="string"&&i();for(var c=0,d=0,h=0,p=u.length,f=0;p--&&++f&&!(c&&-1h?"":u.slice(h,c)}var l=["/",":","?","#"],a=[".","/","@"];n.exports=function(u){if(typeof u=="string")return s(u);if(Array.isArray(u)){var c=[],d,h=0;for(d=u.length;h{for(var o=r>1?void 0:r?gse(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&fse(e,n,o),o},mse=["com","de","net","org","uk","cn","ga","nl","cf","ml","tk","ru","br","gq","xyz","fr","eu","info","co","au","ca","it","in","ch","pl","es","online","us","top","be","jp","biz","se","at","dk","cz","za","me","ir","icu","shop","kr","site","mx","hu","io","cc","club","no","cyou"],_N="updateLink",vse=/(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?:[\da-z\u00A1-\uFFFF][\w\u00A1-\uFFFF-]{0,62})?[\da-z\u00A1-\uFFFF]\.)*(?:(?:\d(?!\.)|[a-z\u00A1-\uFFFF])(?:[\da-z\u00A1-\uFFFF][\w\u00A1-\uFFFF-]{0,62})?[\da-z\u00A1-\uFFFF]\.)+[a-z\u00A1-\uFFFF]{2,}(?::\d{2,5})?(?:[#/?]\S*)?/gi,vl=class extends Es{constructor(){super(...arguments),this._autoLinkRegexNonGlobal=void 0}get name(){return"link"}createTags(){return[we.Link,we.ExcludeInputRules]}createMarkSpec(t,e){const n="data-link-auto",r=o=>{const{defaultTarget:i,supportedTargets:s}=this.options,l=i?[...s,i]:s;return o&&Qn(l,o)?{target:o}:void 0};return{inclusive:!1,excludes:"_",...e,attrs:{...t.defaults(),href:{},target:{default:this.options.defaultTarget},auto:{default:!1}},parseDOM:[{tag:"a[href]",getAttrs:o=>{if(!Ft(o))return!1;const i=o.getAttribute("href"),s=o.textContent,l=this.options.autoLink&&(o.hasAttribute(n)||i===s||(i==null?void 0:i.replace(`${this.options.defaultProtocol}//`,""))===s);return{...t.parse(o),href:i,auto:l,...r(o.getAttribute("target"))}}},...e.parseDOM??[]],toDOM:o=>{const{auto:i,target:s,...l}=of(o.attrs,t),a=o.attrs.auto?{[n]:""}:{};return["a",{...t.dom(o),...l,rel:"noopener noreferrer nofollow",...a,...r(o.attrs.target)},0]}}}onCreate(){const{autoLinkRegex:t}=this.options;this._autoLinkRegexNonGlobal=new RegExp(`^${t.source}$`,t.flags.replace("g",""))}shortcut({tr:t}){let e="",{from:n,to:r,empty:o,$from:i}=t.selection,s=!1;const l=Ti(i,this.type);if(o){const a=l??MA(t);if(!a)return!1;({text:e,from:n,to:r}=a),s=!0}return n===r?!1:(s||(e=t.doc.textBetween(n,r)),this.options.onActivateLink(e),this.options.onShortcut({activeLink:l?{attrs:l.mark.attrs,from:l.from,to:l.to}:void 0,selectedText:e,from:n,to:r}),!0)}updateLink(t,e){return n=>{const{tr:r}=n;return!(ws(r.selection)&&!r0(r.selection)||uz(r.selection)||ef({trState:r,type:this.type}))&&!e?!1:(r.setMeta(this.name,{command:_N,attrs:t,range:e}),Oz({type:this.type,attrs:t,range:e})(n))}}selectLink(){return this.store.commands.selectMark.original(this.type)}removeLink(t){return e=>{const{tr:n}=e;return ef({trState:n,type:this.type,...t})?FA({type:this.type,expand:!0,range:t})(e):!1}}createPasteRules(){return[{type:"mark",regexp:this.options.autoLinkRegex,markType:this.type,getAttributes:(t,e)=>({href:this.buildHref(Jl(t)),auto:!e}),transformMatch:t=>{const e=Jl(t);return!e||!this.isValidUrl(e)?!1:e}}]}createEventHandlers(){return{clickMark:(t,e)=>{const n=e.getMark(this.type);if(!n)return;const r=n.mark.attrs,o={...r,...n};if(this.options.onClick(t,o))return!0;if(!this.store.view.editable)return;let i=!1;if(this.options.openLinkOnClick){i=!0;const s=r.href;window.open(s,"_blank")}return this.options.selectTextOnClick&&(i=!0,this.store.commands.selectText(n)),i}}}createPlugin(){return{appendTransaction:(t,e,n)=>{if(t.filter(p=>!!p.getMeta(this.name)).forEach(p=>{const f=p.getMeta(this.name);if(f.command===_N){const{range:g,attrs:m}=f,{selection:v,doc:y}=n,b={range:g,selection:v,doc:y,attrs:m},{from:x,to:k}=g??v;this.options.onUpdateLink(y.textBetween(x,k),b)}}),!this.options.autoLink||hy(e)-hy(n)===1||!t.some(p=>p.docChanged))return;const s=X3(t,e),l=RA(s,[Gt,pn]),{mapping:a}=s,{tr:u,doc:c}=n,{updateLink:d,removeLink:h}=this.store.chain(u);if(l.forEach(({prevFrom:p,prevTo:f,from:g,to:m})=>{const v=[],y=m-g===2,b=this.getLinkMarksInRange(e.doc,p,f,!0).filter(x=>x.mark.type===this.type).map(({from:x,to:k,text:w})=>({mappedFrom:a.map(x),mappedTo:a.map(k),text:w,from:x,to:k}));b.forEach(({mappedFrom:x,mappedTo:k,from:w,to:S},T)=>this.getLinkMarksInRange(c,x,k,!0).filter(C=>C.mark.type===this.type).forEach(C=>{const O=e.doc.textBetween(w,S,void 0," "),R=c.textBetween(C.from,C.to+1,void 0," ").trim(),_=this.isValidUrl(O);this.isValidUrl(R)||(_&&(h({from:C.from,to:C.to}).tr(),b.splice(T,1)),!y&&g===m&&this.findAutoLinks(R).map(E=>this.addLinkProperties({...E,from:x+E.start,to:x+E.end})).forEach(({attrs:E,range:M,text:I})=>{d(E,M).tr(),v.push({attrs:E,range:M,text:I})}))})),this.findTextBlocksInRange(c,{from:g,to:m}).forEach(({text:x,positionStart:k})=>{this.findAutoLinks(x).map(w=>this.addLinkProperties({...w,from:k+w.start+1,to:k+w.end+1})).filter(({range:w})=>{const S=g>=w.from&&g<=w.to,T=m>=w.from&&m<=w.to;return S||T||y}).filter(({range:w})=>this.getLinkMarksInRange(u.doc,w.from,w.to,!1).length===0).filter(({range:{from:w},text:S})=>!b.some(({text:T,mappedFrom:C})=>C===w&&T===S)).forEach(({attrs:w,text:S,range:T})=>{d(w,T).tr(),v.push({attrs:w,range:T,text:S})})}),window.requestAnimationFrame(()=>{v.forEach(({attrs:x,range:k,text:w})=>{const{doc:S,selection:T}=u;this.options.onUpdateLink(w,{attrs:x,doc:S,range:k,selection:T})})})}),u.steps.length!==0)return u}}}buildHref(t){return this.options.extractHref({url:t,defaultProtocol:this.options.defaultProtocol})}getLinkMarksInRange(t,e,n,r){const o=[];if(e===n){const i=Math.max(e-1,0),s=t.resolve(i),l=Ti(s,this.type);(l==null?void 0:l.mark.attrs.auto)===r&&o.push(l)}else t.nodesBetween(e,n,(i,s)=>{const a=(i.marks??[]).find(({type:u,attrs:c})=>u===this.type&&c.auto===r);a&&o.push({from:s,to:s+i.nodeSize,mark:a,text:i.textContent})});return o}findTextBlocksInRange(t,e){const n=[];return t.nodesBetween(e.from,e.to,(r,o)=>{!r.isTextblock||!r.type.allowsMarkType(this.type)||n.push({node:r,pos:o})}),n.map(r=>({text:t.textBetween(r.pos,r.pos+r.node.nodeSize,void 0," "),positionStart:r.pos}))}addLinkProperties({from:t,to:e,href:n,...r}){return{...r,range:{from:t,to:e},attrs:{href:n,auto:!0}}}findAutoLinks(t){if(this.options.findAutoLinks)return this.options.findAutoLinks(t,this.options.defaultProtocol);const e=[];for(const n of Ll(t,this.options.autoLinkRegex)){const r=Jl(n);if(!r)continue;const o=this.buildHref(r);!this.isValidTLD(o)&&!o.startsWith("tel:")||e.push({text:r,href:o,start:n.index,end:n.index+r.length})}return e}isValidUrl(t){var e;return this.options.isValidUrl?this.options.isValidUrl(t,this.options.defaultProtocol):this.isValidTLD(this.buildHref(t))&&!!((e=this._autoLinkRegexNonGlobal)!=null&&e.test(t))}isValidTLD(t){const{autoLinkAllowedTLDs:e}=this.options;if(e.length===0)return!0;const n=pse(t);if(n==="")return!0;const r=E4(n.split("."));return e.includes(r)}};op([Zt({shortcut:oe.InsertLink})],vl.prototype,"shortcut",1),op([le()],vl.prototype,"updateLink",1),op([le()],vl.prototype,"selectLink",1),op([le()],vl.prototype,"removeLink",1),vl=op([Ne({defaultOptions:{autoLink:!1,defaultProtocol:"",selectTextOnClick:!1,openLinkOnClick:!1,autoLinkRegex:vse,autoLinkAllowedTLDs:mse,findAutoLinks:void 0,isValidUrl:void 0,defaultTarget:null,supportedTargets:[],extractHref:yse},staticKeys:["autoLinkRegex"],handlerKeyOptions:{onClick:{earlyReturnValue:!0}},handlerKeys:["onActivateLink","onShortcut","onUpdateLink","onClick"],defaultPriority:tt.Medium})],vl);function yse({url:t,defaultProtocol:e}){const n=/^((?:https?|ftp)?:)\/\//.test(t);return!n&&t.includes("@")?`mailto:${t}`:n?t:`${e}//${t}`}function bse(t){for(var e=1;e0&&t[e-1]===` +`;)e--;return t.substring(0,e)}var kse=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function ak(t){return lk(t,kse)}var RN=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function MN(t){return lk(t,RN)}function Ese(t){return IN(t,RN)}var ON=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function Sse(t){return lk(t,ON)}function Cse(t){return IN(t,ON)}function lk(t,e){return e.indexOf(t.nodeName)>=0}function IN(t,e){return t.getElementsByTagName&&e.some(function(n){return t.getElementsByTagName(n).length})}var Xn={};Xn.paragraph={filter:"p",replacement:function(t){return` `+t+` -`}},Yn.lineBreak={filter:"br",replacement:function(t,e,n){return n.br+` -`}},Yn.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(t,e,n){var r=Number(e.nodeName.charAt(1));if(n.headingStyle==="setext"&&r<3){var o=nk(r===1?"=":"-",t.length);return` +`}},Xn.lineBreak={filter:"br",replacement:function(t,e,n){return n.br+` +`}},Xn.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(t,e,n){var r=Number(e.nodeName.charAt(1));if(n.headingStyle==="setext"&&r<3){var o=sk(r===1?"=":"-",t.length);return` `+t+` `+o+` `}else return` -`+nk("#",r)+" "+t+` +`+sk("#",r)+" "+t+` -`}},Yn.blockquote={filter:"blockquote",replacement:function(t){return t=t.replace(/^\n+|\n+$/g,""),t=t.replace(/^/gm,"> "),` +`}},Xn.blockquote={filter:"blockquote",replacement:function(t){return t=t.replace(/^\n+|\n+$/g,""),t=t.replace(/^/gm,"> "),` `+t+` -`}},Yn.list={filter:["ul","ol"],replacement:function(t,e){var n=e.parentNode;return n.nodeName==="LI"&&n.lastElementChild===e?` +`}},Xn.list={filter:["ul","ol"],replacement:function(t,e){var n=e.parentNode;return n.nodeName==="LI"&&n.lastElementChild===e?` `+t:` `+t+` -`}},Yn.listItem={filter:"li",replacement:function(t,e,n){t=t.replace(/^\n+/,"").replace(/\n+$/,` +`}},Xn.listItem={filter:"li",replacement:function(t,e,n){t=t.replace(/^\n+/,"").replace(/\n+$/,` `).replace(/\n/gm,` `);var r=n.bulletListMarker+" ",o=e.parentNode;if(o.nodeName==="OL"){var i=o.getAttribute("start"),s=Array.prototype.indexOf.call(o.children,e);r=(i?Number(i)+s:s+1)+". "}return r+t+(e.nextSibling&&!/\n$/.test(t)?` -`:"")}},Yn.indentedCodeBlock={filter:function(t,e){return e.codeBlockStyle==="indented"&&t.nodeName==="PRE"&&t.firstChild&&t.firstChild.nodeName==="CODE"},replacement:function(t,e,n){return` +`:"")}},Xn.indentedCodeBlock={filter:function(t,e){return e.codeBlockStyle==="indented"&&t.nodeName==="PRE"&&t.firstChild&&t.firstChild.nodeName==="CODE"},replacement:function(t,e,n){return` `+e.firstChild.textContent.replace(/\n/g,` `)+` -`}},Yn.fencedCodeBlock={filter:function(t,e){return e.codeBlockStyle==="fenced"&&t.nodeName==="PRE"&&t.firstChild&&t.firstChild.nodeName==="CODE"},replacement:function(t,e,n){for(var r=e.firstChild.getAttribute("class")||"",o=(r.match(/language-(\S+)/)||[null,""])[1],i=e.firstChild.textContent,s=n.fence.charAt(0),l=3,a=new RegExp("^"+s+"{3,}","gm"),u;u=a.exec(i);)u[0].length>=l&&(l=u[0].length+1);var c=nk(s,l);return` +`}},Xn.fencedCodeBlock={filter:function(t,e){return e.codeBlockStyle==="fenced"&&t.nodeName==="PRE"&&t.firstChild&&t.firstChild.nodeName==="CODE"},replacement:function(t,e,n){for(var r=e.firstChild.getAttribute("class")||"",o=(r.match(/language-(\S+)/)||[null,""])[1],i=e.firstChild.textContent,s=n.fence.charAt(0),l=3,a=new RegExp("^"+s+"{3,}","gm"),u;u=a.exec(i);)u[0].length>=l&&(l=u[0].length+1);var c=sk(s,l);return` `+c+o+` `+i.replace(/\n$/,"")+` `+c+` -`}},Yn.horizontalRule={filter:"hr",replacement:function(t,e,n){return` +`}},Xn.horizontalRule={filter:"hr",replacement:function(t,e,n){return` `+n.hr+` -`}},Yn.inlineLink={filter:function(t,e){return e.linkStyle==="inlined"&&t.nodeName==="A"&&t.getAttribute("href")},replacement:function(t,e){var n=e.getAttribute("href"),r=av(e.getAttribute("title"));return r&&(r=' "'+r+'"'),"["+t+"]("+n+r+")"}},Yn.referenceLink={filter:function(t,e){return e.linkStyle==="referenced"&&t.nodeName==="A"&&t.getAttribute("href")},replacement:function(t,e,n){var r=e.getAttribute("href"),o=av(e.getAttribute("title"));o&&(o=' "'+o+'"');var i,s;switch(n.linkReferenceStyle){case"collapsed":i="["+t+"][]",s="["+t+"]: "+r+o;break;case"shortcut":i="["+t+"]",s="["+t+"]: "+r+o;break;default:var l=this.references.length+1;i="["+t+"]["+l+"]",s="["+l+"]: "+r+o}return this.references.push(s),i},references:[],append:function(t){var e="";return this.references.length&&(e=` +`}},Xn.inlineLink={filter:function(t,e){return e.linkStyle==="inlined"&&t.nodeName==="A"&&t.getAttribute("href")},replacement:function(t,e){var n=e.getAttribute("href"),r=cv(e.getAttribute("title"));return r&&(r=' "'+r+'"'),"["+t+"]("+n+r+")"}},Xn.referenceLink={filter:function(t,e){return e.linkStyle==="referenced"&&t.nodeName==="A"&&t.getAttribute("href")},replacement:function(t,e,n){var r=e.getAttribute("href"),o=cv(e.getAttribute("title"));o&&(o=' "'+o+'"');var i,s;switch(n.linkReferenceStyle){case"collapsed":i="["+t+"][]",s="["+t+"]: "+r+o;break;case"shortcut":i="["+t+"]",s="["+t+"]: "+r+o;break;default:var l=this.references.length+1;i="["+t+"]["+l+"]",s="["+l+"]: "+r+o}return this.references.push(s),i},references:[],append:function(t){var e="";return this.references.length&&(e=` `+this.references.join(` `)+` -`,this.references=[]),e}},Yn.emphasis={filter:["em","i"],replacement:function(t,e,n){return t.trim()?n.emDelimiter+t+n.emDelimiter:""}},Yn.strong={filter:["strong","b"],replacement:function(t,e,n){return t.trim()?n.strongDelimiter+t+n.strongDelimiter:""}},Yn.code={filter:function(t){var e=t.previousSibling||t.nextSibling,n=t.parentNode.nodeName==="PRE"&&!e;return t.nodeName==="CODE"&&!n},replacement:function(t){if(!t)return"";t=t.replace(/\r?\n|\r/g," ");for(var e=/^`|^ .*?[^ ].* $|`$/.test(t)?" ":"",n="`",r=t.match(/`+/gm)||[];r.indexOf(n)!==-1;)n=n+"`";return n+e+t+e+n}},Yn.image={filter:"img",replacement:function(t,e){var n=av(e.getAttribute("alt")),r=e.getAttribute("src")||"",o=av(e.getAttribute("title")),i=o?' "'+o+'"':"";return r?"!["+n+"]("+r+i+")":""}};function av(t){return t?t.replace(/(\n+\s*)+/g,` -`):""}function bN(t){this.options=t,this._keep=[],this._remove=[],this.blankRule={replacement:t.blankReplacement},this.keepReplacement=t.keepReplacement,this.defaultRule={replacement:t.defaultReplacement},this.array=[];for(var e in t.rules)this.array.push(t.rules[e])}bN.prototype={add:function(t,e){this.array.unshift(e)},keep:function(t){this._keep.unshift({filter:t,replacement:this.keepReplacement})},remove:function(t){this._remove.unshift({filter:t,replacement:function(){return""}})},forNode:function(t){if(t.isBlank)return this.blankRule;var e;return(e=ik(this.array,t,this.options))||(e=ik(this._keep,t,this.options))||(e=ik(this._remove,t,this.options))?e:this.defaultRule},forEach:function(t){for(var e=0;e-1)return!0}else if(typeof r=="function"){if(r.call(t,e,n))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function ise(t){var e=t.element,n=t.isBlock,r=t.isVoid,o=t.isPre||function(d){return d.nodeName==="PRE"};if(!(!e.firstChild||o(e))){for(var i=null,s=!1,l=null,a=xN(l,e,o);a!==e;){if(a.nodeType===3||a.nodeType===4){var u=a.data.replace(/[ \r\n\t]+/g," ");if((!i||/ $/.test(i.data))&&!s&&u[0]===" "&&(u=u.substr(1)),!u){a=sk(a);continue}a.data=u,i=a}else if(a.nodeType===1)n(a)||a.nodeName==="BR"?(i&&(i.data=i.data.replace(/ $/,"")),i=null,s=!1):r(a)||o(a)?(i=null,s=!0):i&&(s=!1);else{a=sk(a);continue}var c=xN(l,a,o);l=a,a=c}i&&(i.data=i.data.replace(/ $/,""),i.data||sk(i))}}function sk(t){var e=t.nextSibling||t.parentNode;return t.parentNode.removeChild(t),e}function xN(t,e,n){return t&&t.parentNode===e||n(e)?e.nextSibling||e.parentNode:e.firstChild||e.nextSibling||e.parentNode}var ak=typeof window<"u"?window:{};function sse(){var t=ak.DOMParser,e=!1;try{new t().parseFromString("","text/html")&&(e=!0)}catch{}return e}function ase(){var t=function(){};return lse()?t.prototype.parseFromString=function(e){var n=new window.ActiveXObject("htmlfile");return n.designMode="on",n.open(),n.write(e),n.close(),n}:t.prototype.parseFromString=function(e){var n=document.implementation.createHTMLDocument("");return n.open(),n.write(e),n.close(),n},t}function lse(){var t=!1;try{document.implementation.createHTMLDocument("").open()}catch{ak.ActiveXObject&&(t=!0)}return t}var cse=sse()?ak.DOMParser:ase();function use(t,e){var n;if(typeof t=="string"){var r=dse().parseFromString(''+t+"","text/html");n=r.getElementById("turndown-root")}else n=t.cloneNode(!0);return ise({element:n,isBlock:rk,isVoid:mN,isPre:e.preformattedCode?hse:null}),n}var lk;function dse(){return lk=lk||new cse,lk}function hse(t){return t.nodeName==="PRE"||t.nodeName==="CODE"}function pse(t,e){return t.isBlock=rk(t),t.isCode=t.nodeName==="CODE"||t.parentNode.isCode,t.isBlank=fse(t),t.flankingWhitespace=gse(t,e),t}function fse(t){return!mN(t)&&!nse(t)&&/^\s*$/i.test(t.textContent)&&!tse(t)&&!rse(t)}function gse(t,e){if(t.isBlock||e.preformattedCode&&t.isCode)return{leading:"",trailing:""};var n=mse(t.textContent);return n.leadingAscii&&wN("left",t,e)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&wN("right",t,e)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function mse(t){var e=t.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:e[1],leadingAscii:e[2],leadingNonAscii:e[3],trailing:e[4],trailingNonAscii:e[5],trailingAscii:e[6]}}function wN(t,e,n){var r,o,i;return t==="left"?(r=e.previousSibling,o=/ $/):(r=e.nextSibling,o=/^ /),r&&(r.nodeType===3?i=o.test(r.nodeValue):n.preformattedCode&&r.nodeName==="CODE"?i=!1:r.nodeType===1&&!rk(r)&&(i=o.test(r.textContent))),i}var vse=Array.prototype.reduce,yse=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function rp(t){if(!(this instanceof rp))return new rp(t);var e={rules:Yn,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(n,r){return r.isBlock?` +`,this.references=[]),e}},Xn.emphasis={filter:["em","i"],replacement:function(t,e,n){return t.trim()?n.emDelimiter+t+n.emDelimiter:""}},Xn.strong={filter:["strong","b"],replacement:function(t,e,n){return t.trim()?n.strongDelimiter+t+n.strongDelimiter:""}},Xn.code={filter:function(t){var e=t.previousSibling||t.nextSibling,n=t.parentNode.nodeName==="PRE"&&!e;return t.nodeName==="CODE"&&!n},replacement:function(t){if(!t)return"";t=t.replace(/\r?\n|\r/g," ");for(var e=/^`|^ .*?[^ ].* $|`$/.test(t)?" ":"",n="`",r=t.match(/`+/gm)||[];r.indexOf(n)!==-1;)n=n+"`";return n+e+t+e+n}},Xn.image={filter:"img",replacement:function(t,e){var n=cv(e.getAttribute("alt")),r=e.getAttribute("src")||"",o=cv(e.getAttribute("title")),i=o?' "'+o+'"':"";return r?"!["+n+"]("+r+i+")":""}};function cv(t){return t?t.replace(/(\n+\s*)+/g,` +`):""}function LN(t){this.options=t,this._keep=[],this._remove=[],this.blankRule={replacement:t.blankReplacement},this.keepReplacement=t.keepReplacement,this.defaultRule={replacement:t.defaultReplacement},this.array=[];for(var e in t.rules)this.array.push(t.rules[e])}LN.prototype={add:function(t,e){this.array.unshift(e)},keep:function(t){this._keep.unshift({filter:t,replacement:this.keepReplacement})},remove:function(t){this._remove.unshift({filter:t,replacement:function(){return""}})},forNode:function(t){if(t.isBlank)return this.blankRule;var e;return(e=ck(this.array,t,this.options))||(e=ck(this._keep,t,this.options))||(e=ck(this._remove,t,this.options))?e:this.defaultRule},forEach:function(t){for(var e=0;e-1)return!0}else if(typeof r=="function"){if(r.call(t,e,n))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function Ase(t){var e=t.element,n=t.isBlock,r=t.isVoid,o=t.isPre||function(d){return d.nodeName==="PRE"};if(!(!e.firstChild||o(e))){for(var i=null,s=!1,l=null,a=NN(l,e,o);a!==e;){if(a.nodeType===3||a.nodeType===4){var u=a.data.replace(/[ \r\n\t]+/g," ");if((!i||/ $/.test(i.data))&&!s&&u[0]===" "&&(u=u.substr(1)),!u){a=uk(a);continue}a.data=u,i=a}else if(a.nodeType===1)n(a)||a.nodeName==="BR"?(i&&(i.data=i.data.replace(/ $/,"")),i=null,s=!1):r(a)||o(a)?(i=null,s=!0):i&&(s=!1);else{a=uk(a);continue}var c=NN(l,a,o);l=a,a=c}i&&(i.data=i.data.replace(/ $/,""),i.data||uk(i))}}function uk(t){var e=t.nextSibling||t.parentNode;return t.parentNode.removeChild(t),e}function NN(t,e,n){return t&&t.parentNode===e||n(e)?e.nextSibling||e.parentNode:e.firstChild||e.nextSibling||e.parentNode}var dk=typeof window<"u"?window:{};function _se(){var t=dk.DOMParser,e=!1;try{new t().parseFromString("","text/html")&&(e=!0)}catch{}return e}function Rse(){var t=function(){};return Mse()?t.prototype.parseFromString=function(e){var n=new window.ActiveXObject("htmlfile");return n.designMode="on",n.open(),n.write(e),n.close(),n}:t.prototype.parseFromString=function(e){var n=document.implementation.createHTMLDocument("");return n.open(),n.write(e),n.close(),n},t}function Mse(){var t=!1;try{document.implementation.createHTMLDocument("").open()}catch{dk.ActiveXObject&&(t=!0)}return t}var Ose=_se()?dk.DOMParser:Rse();function Ise(t,e){var n;if(typeof t=="string"){var r=Lse().parseFromString(''+t+"","text/html");n=r.getElementById("turndown-root")}else n=t.cloneNode(!0);return Ase({element:n,isBlock:ak,isVoid:MN,isPre:e.preformattedCode?Nse:null}),n}var hk;function Lse(){return hk=hk||new Ose,hk}function Nse(t){return t.nodeName==="PRE"||t.nodeName==="CODE"}function $se(t,e){return t.isBlock=ak(t),t.isCode=t.nodeName==="CODE"||t.parentNode.isCode,t.isBlank=Dse(t),t.flankingWhitespace=Pse(t,e),t}function Dse(t){return!MN(t)&&!Sse(t)&&/^\s*$/i.test(t.textContent)&&!Ese(t)&&!Cse(t)}function Pse(t,e){if(t.isBlock||e.preformattedCode&&t.isCode)return{leading:"",trailing:""};var n=zse(t.textContent);return n.leadingAscii&&$N("left",t,e)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&$N("right",t,e)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function zse(t){var e=t.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:e[1],leadingAscii:e[2],leadingNonAscii:e[3],trailing:e[4],trailingNonAscii:e[5],trailingAscii:e[6]}}function $N(t,e,n){var r,o,i;return t==="left"?(r=e.previousSibling,o=/ $/):(r=e.nextSibling,o=/^ /),r&&(r.nodeType===3?i=o.test(r.nodeValue):n.preformattedCode&&r.nodeName==="CODE"?i=!1:r.nodeType===1&&!ak(r)&&(i=o.test(r.textContent))),i}var Fse=Array.prototype.reduce,Bse=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function ip(t){if(!(this instanceof ip))return new ip(t);var e={rules:Xn,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(n,r){return r.isBlock?` `:""},keepReplacement:function(n,r){return r.isBlock?` @@ -4927,22 +4928,22 @@ Error generating stack: `+i.message+` `+n+` -`:n}};this.options=Zie({},e,t),this.rules=new bN(this.options)}rp.prototype={turndown:function(t){if(!wse(t))throw new TypeError(t+" is not a string, or an element/document/fragment node.");if(t==="")return"";var e=kN.call(this,new use(t,this.options));return bse.call(this,e)},use:function(t){if(Array.isArray(t))for(var e=0;e"']/,Ese=new RegExp(CN.source,"g"),TN=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Sse=new RegExp(TN.source,"g"),Cse={"&":"&","<":"<",">":">",'"':""","'":"'"},AN=t=>Cse[t];function Xn(t,e){if(e){if(CN.test(t))return t.replace(Ese,AN)}else if(TN.test(t))return t.replace(Sse,AN);return t}const Tse=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function _N(t){return t.replace(Tse,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const Ase=/(^|[^\[])\^/g;function vt(t,e){t=typeof t=="string"?t:t.source,e=e||"";const n={replace:(r,o)=>(o=o.source||o,o=o.replace(Ase,"$1"),t=t.replace(r,o),n),getRegex:()=>new RegExp(t,e)};return n}const _se=/[^\w:]/g,Rse=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function RN(t,e,n){if(t){let r;try{r=decodeURIComponent(_N(n)).replace(_se,"").toLowerCase()}catch{return null}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0)return null}e&&!Rse.test(n)&&(n=Lse(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const lv={},Mse=/^[^:]+:\/*[^/]*$/,Ose=/^([^:]+:)[\s\S]*$/,Ise=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Lse(t,e){lv[" "+t]||(Mse.test(t)?lv[" "+t]=t+"/":lv[" "+t]=uv(t,"/",!0)),t=lv[" "+t];const n=t.indexOf(":")===-1;return e.substring(0,2)==="//"?n?e:t.replace(Ose,"$1")+e:e.charAt(0)==="/"?n?e:t.replace(Ise,"$1")+e:t+e}const cv={exec:function(){}};function MN(t,e){const n=t.replace(/\|/g,(i,s,l)=>{let a=!1,u=s;for(;--u>=0&&l[u]==="\\";)a=!a;return a?"|":" |"}),r=n.split(/ \|/);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>e)r.splice(e);else for(;r.length1;)e&1&&(n+=t),e>>=1,t+=t;return n+t}function IN(t,e,n,r){const o=e.href,i=e.title?Xn(e.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");if(t[0].charAt(0)!=="!"){r.state.inLink=!0;const l={type:"link",raw:n,href:o,title:i,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}return{type:"image",raw:n,href:o,title:i,text:Xn(s)}}function Dse(t,e){const n=t.match(/^(\s+)(?:```)/);if(n===null)return e;const r=n[1];return e.split(` +`.substring(0,o);return n+i+r}function Wse(t){return t!=null&&(typeof t=="string"||t.nodeType&&(t.nodeType===1||t.nodeType===9||t.nodeType===11))}function zN(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let yl=zN();function Vse(t){yl=t}const FN=/[&<>"']/,jse=new RegExp(FN.source,"g"),BN=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Gse=new RegExp(BN.source,"g"),Kse={"&":"&","<":"<",">":">",'"':""","'":"'"},HN=t=>Kse[t];function qn(t,e){if(e){if(FN.test(t))return t.replace(jse,HN)}else if(BN.test(t))return t.replace(Gse,HN);return t}const Yse=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function UN(t){return t.replace(Yse,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const Xse=/(^|[^\[])\^/g;function vt(t,e){t=typeof t=="string"?t:t.source,e=e||"";const n={replace:(r,o)=>(o=o.source||o,o=o.replace(Xse,"$1"),t=t.replace(r,o),n),getRegex:()=>new RegExp(t,e)};return n}const qse=/[^\w:]/g,Zse=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function WN(t,e,n){if(t){let r;try{r=decodeURIComponent(UN(n)).replace(qse,"").toLowerCase()}catch{return null}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0)return null}e&&!Zse.test(n)&&(n=tae(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const uv={},Jse=/^[^:]+:\/*[^/]*$/,Qse=/^([^:]+:)[\s\S]*$/,eae=/^([^:]+:\/*[^/]*)[\s\S]*$/;function tae(t,e){uv[" "+t]||(Jse.test(t)?uv[" "+t]=t+"/":uv[" "+t]=hv(t,"/",!0)),t=uv[" "+t];const n=t.indexOf(":")===-1;return e.substring(0,2)==="//"?n?e:t.replace(Qse,"$1")+e:e.charAt(0)==="/"?n?e:t.replace(eae,"$1")+e:t+e}const dv={exec:function(){}};function VN(t,e){const n=t.replace(/\|/g,(i,s,l)=>{let a=!1,u=s;for(;--u>=0&&l[u]==="\\";)a=!a;return a?"|":" |"}),r=n.split(/ \|/);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>e)r.splice(e);else for(;r.length1;)e&1&&(n+=t),e>>=1,t+=t;return n+t}function GN(t,e,n,r){const o=e.href,i=e.title?qn(e.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");if(t[0].charAt(0)!=="!"){r.state.inLink=!0;const l={type:"link",raw:n,href:o,title:i,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}return{type:"image",raw:n,href:o,title:i,text:qn(s)}}function oae(t,e){const n=t.match(/^(\s+)(?:```)/);if(n===null)return e;const r=n[1];return e.split(` `).map(o=>{const i=o.match(/^\s+/);if(i===null)return o;const[s]=i;return s.length>=r.length?o.slice(r.length):o}).join(` -`)}class ck{constructor(e){this.options=e||vl}space(e){const n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){const n=this.rules.block.code.exec(e);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:uv(r,` -`)}}}fences(e){const n=this.rules.block.fences.exec(e);if(n){const r=n[0],o=Dse(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:o}}}heading(e){const n=this.rules.block.heading.exec(e);if(n){let r=n[2].trim();if(/#$/.test(r)){const o=uv(r,"#");(this.options.pedantic||!o||/ $/.test(o))&&(r=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:n[0]}}blockquote(e){const n=this.rules.block.blockquote.exec(e);if(n){const r=n[0].replace(/^ *>[ \t]?/gm,""),o=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(r);return this.lexer.state.top=o,{type:"blockquote",raw:n[0],tokens:i,text:r}}}list(e){let n=this.rules.block.list.exec(e);if(n){let r,o,i,s,l,a,u,c,d,h,p,f,g=n[1].trim();const m=g.length>1,v={type:"list",raw:"",ordered:m,start:m?+g.slice(0,-1):"",loose:!1,items:[]};g=m?`\\d{1,9}\\${g.slice(-1)}`:`\\${g}`,this.options.pedantic&&(g=m?g:"[*+-]");const y=new RegExp(`^( {0,3}${g})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(f=!1,!(!(n=y.exec(e))||this.rules.block.hr.test(e)));){if(r=n[0],e=e.substring(r.length),c=n[2].split(` +`)}class pk{constructor(e){this.options=e||yl}space(e){const n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){const n=this.rules.block.code.exec(e);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:hv(r,` +`)}}}fences(e){const n=this.rules.block.fences.exec(e);if(n){const r=n[0],o=oae(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:o}}}heading(e){const n=this.rules.block.heading.exec(e);if(n){let r=n[2].trim();if(/#$/.test(r)){const o=hv(r,"#");(this.options.pedantic||!o||/ $/.test(o))&&(r=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:n[0]}}blockquote(e){const n=this.rules.block.blockquote.exec(e);if(n){const r=n[0].replace(/^ *>[ \t]?/gm,""),o=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(r);return this.lexer.state.top=o,{type:"blockquote",raw:n[0],tokens:i,text:r}}}list(e){let n=this.rules.block.list.exec(e);if(n){let r,o,i,s,l,a,u,c,d,h,p,f,g=n[1].trim();const m=g.length>1,v={type:"list",raw:"",ordered:m,start:m?+g.slice(0,-1):"",loose:!1,items:[]};g=m?`\\d{1,9}\\${g.slice(-1)}`:`\\${g}`,this.options.pedantic&&(g=m?g:"[*+-]");const y=new RegExp(`^( {0,3}${g})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(f=!1,!(!(n=y.exec(e))||this.rules.block.hr.test(e)));){if(r=n[0],e=e.substring(r.length),c=n[2].split(` `,1)[0].replace(/^\t+/,x=>" ".repeat(3*x.length)),d=e.split(` `,1)[0],this.options.pedantic?(s=2,p=c.trimLeft()):(s=n[2].search(/[^ ]/),s=s>4?1:s,p=c.slice(s),s+=n[1].length),a=!1,!c&&/^ *$/.test(d)&&(r+=d+` `,e=e.substring(d.length+1),f=!0),!f){const x=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),k=new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),w=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),S=new RegExp(`^ {0,${Math.min(3,s-1)}}#`);for(;e&&(h=e.split(` `,1)[0],d=h,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(w.test(d)||S.test(d)||x.test(d)||k.test(e)));){if(d.search(/[^ ]/)>=s||!d.trim())p+=` `+d.slice(s);else{if(a||c.search(/[^ ]/)>=4||w.test(c)||S.test(c)||k.test(c))break;p+=` `+d}!a&&!d.trim()&&(a=!0),r+=h+` -`,e=e.substring(h.length+1),c=d.slice(s)}}v.loose||(u?v.loose=!0:/\n *\n *$/.test(r)&&(u=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(p),o&&(i=o[0]!=="[ ] ",p=p.replace(/^\[[ xX]\] +/,""))),v.items.push({type:"list_item",raw:r,task:!!o,checked:i,loose:!1,text:p}),v.raw+=r}v.items[v.items.length-1].raw=r.trimRight(),v.items[v.items.length-1].text=p.trimRight(),v.raw=v.raw.trimRight();const b=v.items.length;for(l=0;lw.type==="space"),k=x.length>0&&x.some(w=>/\n.*\n/.test(w.raw));v.loose=k}if(v.loose)for(l=0;l$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline._escapes,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:o,title:i}}}table(e){const n=this.rules.block.table.exec(e);if(n){const r={type:"table",header:MN(n[1]).map(o=>({text:o})),align:n[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(` -`):[]};if(r.header.length===r.align.length){r.raw=n[0];let o=r.align.length,i,s,l,a;for(i=0;i({text:u}));for(o=r.header.length,s=0;s/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Xn(n[0]):n[0]}}link(e){const n=this.rules.inline.link.exec(e);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const s=uv(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=Nse(n[2],"()");if(s>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+s;n[2]=n[2].substring(0,s),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let o=n[2],i="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);s&&(o=s[1],i=s[3])}else i=n[3]?n[3].slice(1,-1):"";return o=o.trim(),/^$/.test(r)?o=o.slice(1):o=o.slice(1,-1)),IN(n,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},n[0],this.lexer)}}reflink(e,n){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let o=(r[2]||r[1]).replace(/\s+/g," ");if(o=n[o.toLowerCase()],!o){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return IN(r,o,r[0],this.lexer)}}emStrong(e,n,r=""){let o=this.rules.inline.emStrong.lDelim.exec(e);if(!o||o[3]&&r.match(/[\p{L}\p{N}]/u))return;const i=o[1]||o[2]||"";if(!i||i&&(r===""||this.rules.inline.punctuation.exec(r))){const s=o[0].length-1;let l,a,u=s,c=0;const d=o[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d.lastIndex=0,n=n.slice(-1*e.length+s);(o=d.exec(n))!=null;){if(l=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!l)continue;if(a=l.length,o[3]||o[4]){u+=a;continue}else if((o[5]||o[6])&&s%3&&!((s+a)%3)){c+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u+c);const h=e.slice(0,s+o.index+(o[0].length-l.length)+a);if(Math.min(s,a)%2){const f=h.slice(1,-1);return{type:"em",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}const p=h.slice(2,-2);return{type:"strong",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){const n=this.rules.inline.code.exec(e);if(n){let r=n[2].replace(/\n/g," ");const o=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return o&&i&&(r=r.substring(1,r.length-1)),r=Xn(r,!0),{type:"codespan",raw:n[0],text:r}}}br(e){const n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e){const n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(e,n){const r=this.rules.inline.autolink.exec(e);if(r){let o,i;return r[2]==="@"?(o=Xn(this.options.mangle?n(r[1]):r[1]),i="mailto:"+o):(o=Xn(r[1]),i=o),{type:"link",raw:r[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}url(e,n){let r;if(r=this.rules.inline.url.exec(e)){let o,i;if(r[2]==="@")o=Xn(this.options.mangle?n(r[0]):r[0]),i="mailto:"+o;else{let s;do s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0];while(s!==r[0]);o=Xn(r[0]),r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e,n){const r=this.rules.inline.text.exec(e);if(r){let o;return this.lexer.state.inRawBlock?o=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Xn(r[0]):r[0]:o=Xn(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:o}}}}const Te={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:cv,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Te._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Te._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Te.def=vt(Te.def).replace("label",Te._label).replace("title",Te._title).getRegex(),Te.bullet=/(?:[*+-]|\d{1,9}[.)])/,Te.listItemStart=vt(/^( *)(bull) */).replace("bull",Te.bullet).getRegex(),Te.list=vt(Te.list).replace(/bull/g,Te.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Te.def.source+")").getRegex(),Te._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Te._comment=/|$)/,Te.html=vt(Te.html,"i").replace("comment",Te._comment).replace("tag",Te._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Te.paragraph=vt(Te._paragraph).replace("hr",Te.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Te._tag).getRegex(),Te.blockquote=vt(Te.blockquote).replace("paragraph",Te.paragraph).getRegex(),Te.normal={...Te},Te.gfm={...Te.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Te.gfm.table=vt(Te.gfm.table).replace("hr",Te.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Te._tag).getRegex(),Te.gfm.paragraph=vt(Te._paragraph).replace("hr",Te.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Te.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Te._tag).getRegex(),Te.pedantic={...Te.normal,html:vt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Te._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:cv,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:vt(Te.normal._paragraph).replace("hr",Te.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",Te.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const pe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:cv,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:cv,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",pe.punctuation=vt(pe.punctuation).replace(/punctuation/g,pe._punctuation).getRegex(),pe.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,pe.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,pe._comment=vt(Te._comment).replace("(?:-->|$)","-->").getRegex(),pe.emStrong.lDelim=vt(pe.emStrong.lDelim).replace(/punct/g,pe._punctuation).getRegex(),pe.emStrong.rDelimAst=vt(pe.emStrong.rDelimAst,"g").replace(/punct/g,pe._punctuation).getRegex(),pe.emStrong.rDelimUnd=vt(pe.emStrong.rDelimUnd,"g").replace(/punct/g,pe._punctuation).getRegex(),pe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,pe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,pe._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,pe.autolink=vt(pe.autolink).replace("scheme",pe._scheme).replace("email",pe._email).getRegex(),pe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,pe.tag=vt(pe.tag).replace("comment",pe._comment).replace("attribute",pe._attribute).getRegex(),pe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,pe._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,pe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,pe.link=vt(pe.link).replace("label",pe._label).replace("href",pe._href).replace("title",pe._title).getRegex(),pe.reflink=vt(pe.reflink).replace("label",pe._label).replace("ref",Te._label).getRegex(),pe.nolink=vt(pe.nolink).replace("ref",Te._label).getRegex(),pe.reflinkSearch=vt(pe.reflinkSearch,"g").replace("reflink",pe.reflink).replace("nolink",pe.nolink).getRegex(),pe.normal={...pe},pe.pedantic={...pe.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:vt(/^!?\[(label)\]\((.*?)\)/).replace("label",pe._label).getRegex(),reflink:vt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",pe._label).getRegex()},pe.gfm={...pe.normal,escape:vt(pe.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),e+="&#"+r+";";return e}class ia{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||vl,this.options.tokenizer=this.options.tokenizer||new ck,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:Te.normal,inline:pe.normal};this.options.pedantic?(n.block=Te.pedantic,n.inline=pe.pedantic):this.options.gfm&&(n.block=Te.gfm,this.options.breaks?n.inline=pe.breaks:n.inline=pe.gfm),this.tokenizer.rules=n}static get rules(){return{block:Te,inline:pe}}static lex(e,n){return new ia(n).lex(e)}static lexInline(e,n){return new ia(n).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,` +`,e=e.substring(h.length+1),c=d.slice(s)}}v.loose||(u?v.loose=!0:/\n *\n *$/.test(r)&&(u=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(p),o&&(i=o[0]!=="[ ] ",p=p.replace(/^\[[ xX]\] +/,""))),v.items.push({type:"list_item",raw:r,task:!!o,checked:i,loose:!1,text:p}),v.raw+=r}v.items[v.items.length-1].raw=r.trimRight(),v.items[v.items.length-1].text=p.trimRight(),v.raw=v.raw.trimRight();const b=v.items.length;for(l=0;lw.type==="space"),k=x.length>0&&x.some(w=>/\n.*\n/.test(w.raw));v.loose=k}if(v.loose)for(l=0;l$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline._escapes,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:o,title:i}}}table(e){const n=this.rules.block.table.exec(e);if(n){const r={type:"table",header:VN(n[1]).map(o=>({text:o})),align:n[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(r.header.length===r.align.length){r.raw=n[0];let o=r.align.length,i,s,l,a;for(i=0;i({text:u}));for(o=r.header.length,s=0;s/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):qn(n[0]):n[0]}}link(e){const n=this.rules.inline.link.exec(e);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const s=hv(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=nae(n[2],"()");if(s>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+s;n[2]=n[2].substring(0,s),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let o=n[2],i="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);s&&(o=s[1],i=s[3])}else i=n[3]?n[3].slice(1,-1):"";return o=o.trim(),/^$/.test(r)?o=o.slice(1):o=o.slice(1,-1)),GN(n,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},n[0],this.lexer)}}reflink(e,n){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let o=(r[2]||r[1]).replace(/\s+/g," ");if(o=n[o.toLowerCase()],!o){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return GN(r,o,r[0],this.lexer)}}emStrong(e,n,r=""){let o=this.rules.inline.emStrong.lDelim.exec(e);if(!o||o[3]&&r.match(/[\p{L}\p{N}]/u))return;const i=o[1]||o[2]||"";if(!i||i&&(r===""||this.rules.inline.punctuation.exec(r))){const s=o[0].length-1;let l,a,u=s,c=0;const d=o[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d.lastIndex=0,n=n.slice(-1*e.length+s);(o=d.exec(n))!=null;){if(l=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!l)continue;if(a=l.length,o[3]||o[4]){u+=a;continue}else if((o[5]||o[6])&&s%3&&!((s+a)%3)){c+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u+c);const h=e.slice(0,s+o.index+(o[0].length-l.length)+a);if(Math.min(s,a)%2){const f=h.slice(1,-1);return{type:"em",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}const p=h.slice(2,-2);return{type:"strong",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){const n=this.rules.inline.code.exec(e);if(n){let r=n[2].replace(/\n/g," ");const o=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return o&&i&&(r=r.substring(1,r.length-1)),r=qn(r,!0),{type:"codespan",raw:n[0],text:r}}}br(e){const n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e){const n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(e,n){const r=this.rules.inline.autolink.exec(e);if(r){let o,i;return r[2]==="@"?(o=qn(this.options.mangle?n(r[1]):r[1]),i="mailto:"+o):(o=qn(r[1]),i=o),{type:"link",raw:r[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}url(e,n){let r;if(r=this.rules.inline.url.exec(e)){let o,i;if(r[2]==="@")o=qn(this.options.mangle?n(r[0]):r[0]),i="mailto:"+o;else{let s;do s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0];while(s!==r[0]);o=qn(r[0]),r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e,n){const r=this.rules.inline.text.exec(e);if(r){let o;return this.lexer.state.inRawBlock?o=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):qn(r[0]):r[0]:o=qn(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:o}}}}const Te={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:dv,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Te._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Te._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Te.def=vt(Te.def).replace("label",Te._label).replace("title",Te._title).getRegex(),Te.bullet=/(?:[*+-]|\d{1,9}[.)])/,Te.listItemStart=vt(/^( *)(bull) */).replace("bull",Te.bullet).getRegex(),Te.list=vt(Te.list).replace(/bull/g,Te.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Te.def.source+")").getRegex(),Te._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Te._comment=/|$)/,Te.html=vt(Te.html,"i").replace("comment",Te._comment).replace("tag",Te._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Te.paragraph=vt(Te._paragraph).replace("hr",Te.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Te._tag).getRegex(),Te.blockquote=vt(Te.blockquote).replace("paragraph",Te.paragraph).getRegex(),Te.normal={...Te},Te.gfm={...Te.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Te.gfm.table=vt(Te.gfm.table).replace("hr",Te.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Te._tag).getRegex(),Te.gfm.paragraph=vt(Te._paragraph).replace("hr",Te.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Te.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Te._tag).getRegex(),Te.pedantic={...Te.normal,html:vt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Te._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:dv,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:vt(Te.normal._paragraph).replace("hr",Te.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",Te.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const pe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:dv,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:dv,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",pe.punctuation=vt(pe.punctuation).replace(/punctuation/g,pe._punctuation).getRegex(),pe.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,pe.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,pe._comment=vt(Te._comment).replace("(?:-->|$)","-->").getRegex(),pe.emStrong.lDelim=vt(pe.emStrong.lDelim).replace(/punct/g,pe._punctuation).getRegex(),pe.emStrong.rDelimAst=vt(pe.emStrong.rDelimAst,"g").replace(/punct/g,pe._punctuation).getRegex(),pe.emStrong.rDelimUnd=vt(pe.emStrong.rDelimUnd,"g").replace(/punct/g,pe._punctuation).getRegex(),pe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,pe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,pe._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,pe.autolink=vt(pe.autolink).replace("scheme",pe._scheme).replace("email",pe._email).getRegex(),pe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,pe.tag=vt(pe.tag).replace("comment",pe._comment).replace("attribute",pe._attribute).getRegex(),pe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,pe._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,pe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,pe.link=vt(pe.link).replace("label",pe._label).replace("href",pe._href).replace("title",pe._title).getRegex(),pe.reflink=vt(pe.reflink).replace("label",pe._label).replace("ref",Te._label).getRegex(),pe.nolink=vt(pe.nolink).replace("ref",Te._label).getRegex(),pe.reflinkSearch=vt(pe.reflinkSearch,"g").replace("reflink",pe.reflink).replace("nolink",pe.nolink).getRegex(),pe.normal={...pe},pe.pedantic={...pe.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:vt(/^!?\[(label)\]\((.*?)\)/).replace("label",pe._label).getRegex(),reflink:vt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",pe._label).getRegex()},pe.gfm={...pe.normal,escape:vt(pe.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),e+="&#"+r+";";return e}class sa{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||yl,this.options.tokenizer=this.options.tokenizer||new pk,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:Te.normal,inline:pe.normal};this.options.pedantic?(n.block=Te.pedantic,n.inline=pe.pedantic):this.options.gfm&&(n.block=Te.gfm,this.options.breaks?n.inline=pe.breaks:n.inline=pe.gfm),this.tokenizer.rules=n}static get rules(){return{block:Te,inline:pe}}static lex(e,n){return new sa(n).lex(e)}static lexInline(e,n){return new sa(n).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,` `),this.blockTokens(e,this.tokens);let n;for(;n=this.inlineQueue.shift();)this.inlineTokens(n.src,n.tokens);return this.tokens}blockTokens(e,n=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(l,a,u)=>a+" ".repeat(u.length));let r,o,i,s;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(r=l.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+=` `:n.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),o=n[n.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=` `+r.raw,o.text+=` @@ -4952,9 +4953,9 @@ Error generating stack: `+i.message+` `+r.raw,o.text+=` `+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(r),s=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),o=n[n.length-1],o&&o.type==="text"?(o.raw+=` `+r.raw,o.text+=` -`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(r);continue}if(e){const l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let r,o,i,s=e,l,a,u;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)c.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+ON("a",l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,l.index)+"["+ON("a",l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.escapedEmSt.exec(s))!=null;)s=s.slice(0,l.index+l[0].length-2)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(a||(u=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(r=c.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),o=n[n.length-1],o&&r.type==="text"&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length),o=n[n.length-1],o&&r.type==="text"&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(e,s,u)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(e,LN)){e=e.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e,LN))){e=e.substring(r.raw.length),n.push(r);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const d=e.slice(1);let h;this.options.extensions.startInline.forEach(function(p){h=p.call({lexer:this},d),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(i=e.substring(0,c+1))}if(r=this.tokenizer.inlineText(i,Pse)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),a=!0,o=n[n.length-1],o&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(e){const c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class uk{constructor(e){this.options=e||vl}code(e,n,r){const o=(n||"").match(/\S*/)[0];if(this.options.highlight){const i=this.options.highlight(e,o);i!=null&&i!==e&&(r=!0,e=i)}return e=e.replace(/\n$/,"")+` -`,o?'
'+(r?e:Xn(e,!0))+`
-`:"
"+(r?e:Xn(e,!0))+`
+`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(r);continue}if(e){const l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let r,o,i,s=e,l,a,u;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)c.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+jN("a",l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,l.index)+"["+jN("a",l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.escapedEmSt.exec(s))!=null;)s=s.slice(0,l.index+l[0].length-2)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(a||(u=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(r=c.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),o=n[n.length-1],o&&r.type==="text"&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length),o=n[n.length-1],o&&r.type==="text"&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(e,s,u)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(e,KN)){e=e.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e,KN))){e=e.substring(r.raw.length),n.push(r);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const d=e.slice(1);let h;this.options.extensions.startInline.forEach(function(p){h=p.call({lexer:this},d),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(i=e.substring(0,c+1))}if(r=this.tokenizer.inlineText(i,iae)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),a=!0,o=n[n.length-1],o&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(e){const c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class fk{constructor(e){this.options=e||yl}code(e,n,r){const o=(n||"").match(/\S*/)[0];if(this.options.highlight){const i=this.options.highlight(e,o);i!=null&&i!==e&&(r=!0,e=i)}return e=e.replace(/\n$/,"")+` +`,o?'
'+(r?e:qn(e,!0))+`
+`:"
"+(r?e:qn(e,!0))+`
`}blockquote(e){return`
${e}
`}html(e){return e}heading(e,n,r,o){if(this.options.headerIds){const i=this.options.headerPrefix+o.slug(r);return`${e} @@ -4972,18 +4973,18 @@ ${e} `}tablerow(e){return` ${e} `}tablecell(e,n){const r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+e+` -`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
":"
"}del(e){return`${e}`}link(e,n,r){if(e=RN(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let o='",o}image(e,n,r){if(e=RN(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let o=`${r}":">",o}text(e){return e}}class NN{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,n,r){return""+r}image(e,n,r){return""+r}br(){return""}}class $N{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,n){let r=e,o=0;if(this.seen.hasOwnProperty(r)){o=this.seen[e];do o++,r=e+"-"+o;while(this.seen.hasOwnProperty(r))}return n||(this.seen[e]=o,this.seen[r]=0),r}slug(e,n={}){const r=this.serialize(e);return this.getNextSafeSlug(r,n.dryrun)}}class sa{constructor(e){this.options=e||vl,this.options.renderer=this.options.renderer||new uk,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new NN,this.slugger=new $N}static parse(e,n){return new sa(n).parse(e)}static parseInline(e,n){return new sa(n).parseInline(e)}parse(e,n=!0){let r="",o,i,s,l,a,u,c,d,h,p,f,g,m,v,y,b,x,k,w;const S=e.length;for(o=0;o0&&y.tokens[0].type==="paragraph"?(y.tokens[0].text=k+" "+y.tokens[0].text,y.tokens[0].tokens&&y.tokens[0].tokens.length>0&&y.tokens[0].tokens[0].type==="text"&&(y.tokens[0].tokens[0].text=k+" "+y.tokens[0].tokens[0].text)):y.tokens.unshift({type:"text",text:k}):v+=k),v+=this.parse(y.tokens,m),h+=this.renderer.listitem(v,x,b);r+=this.renderer.list(h,f,g);continue}case"html":{r+=this.renderer.html(p.text);continue}case"paragraph":{r+=this.renderer.paragraph(this.parseInline(p.tokens));continue}case"text":{for(h=p.tokens?this.parseInline(p.tokens):p.text;o+1{if(r.message+=` -Please report this to https://github.com/markedjs/marked.`,t){const o="

An error occurred:

"+Xn(r.message+"",!0)+"
";if(e)return Promise.resolve(o);if(n){n(null,o);return}return o}if(e)return Promise.reject(r);if(n){n(r);return}throw r}}function DN(t,e){return(n,r,o)=>{typeof r=="function"&&(o=r,r=null);const i={...r};r={...Ae.defaults,...i};const s=zse(r.silent,r.async,o);if(typeof n>"u"||n===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if($se(r),r.hooks&&(r.hooks.options=r),o){const l=r.highlight;let a;try{r.hooks&&(n=r.hooks.preprocess(n)),a=t(n,r)}catch(d){return s(d)}const u=function(d){let h;if(!d)try{r.walkTokens&&Ae.walkTokens(a,r.walkTokens),h=e(a,r),r.hooks&&(h=r.hooks.postprocess(h))}catch(p){d=p}return r.highlight=l,d?s(d):o(null,h)};if(!l||l.length<3||(delete r.highlight,!a.length))return u();let c=0;Ae.walkTokens(a,function(d){d.type==="code"&&(c++,setTimeout(()=>{l(d.text,d.lang,function(h,p){if(h)return u(h);p!=null&&p!==d.text&&(d.text=p,d.escaped=!0),c--,c===0&&u()})},0))}),c===0&&u();return}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(l=>t(l,r)).then(l=>r.walkTokens?Promise.all(Ae.walkTokens(l,r.walkTokens)).then(()=>l):l).then(l=>e(l,r)).then(l=>r.hooks?r.hooks.postprocess(l):l).catch(s);try{r.hooks&&(n=r.hooks.preprocess(n));const l=t(n,r);r.walkTokens&&Ae.walkTokens(l,r.walkTokens);let a=e(l,r);return r.hooks&&(a=r.hooks.postprocess(a)),a}catch(l){return s(l)}}}function Ae(t,e,n){return DN(ia.lex,sa.parse)(t,e,n)}Ae.options=Ae.setOptions=function(t){return Ae.defaults={...Ae.defaults,...t},kse(Ae.defaults),Ae},Ae.getDefaults=SN,Ae.defaults=vl,Ae.use=function(...t){const e=Ae.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(n=>{const r={...n};if(r.async=Ae.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const i=e.renderers[o.name];i?e.renderers[o.name]=function(...s){let l=o.renderer.apply(this,s);return l===!1&&(l=i.apply(this,s)),l}:e.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[o.level]?e[o.level].unshift(o.tokenizer):e[o.level]=[o.tokenizer],o.start&&(o.level==="block"?e.startBlock?e.startBlock.push(o.start):e.startBlock=[o.start]:o.level==="inline"&&(e.startInline?e.startInline.push(o.start):e.startInline=[o.start]))}o.childTokens&&(e.childTokens[o.name]=o.childTokens)}),r.extensions=e),n.renderer){const o=Ae.defaults.renderer||new uk;for(const i in n.renderer){const s=o[i];o[i]=(...l)=>{let a=n.renderer[i].apply(o,l);return a===!1&&(a=s.apply(o,l)),a}}r.renderer=o}if(n.tokenizer){const o=Ae.defaults.tokenizer||new ck;for(const i in n.tokenizer){const s=o[i];o[i]=(...l)=>{let a=n.tokenizer[i].apply(o,l);return a===!1&&(a=s.apply(o,l)),a}}r.tokenizer=o}if(n.hooks){const o=Ae.defaults.hooks||new dv;for(const i in n.hooks){const s=o[i];dv.passThroughHooks.has(i)?o[i]=l=>{if(Ae.defaults.async)return Promise.resolve(n.hooks[i].call(o,l)).then(u=>s.call(o,u));const a=n.hooks[i].call(o,l);return s.call(o,a)}:o[i]=(...l)=>{let a=n.hooks[i].apply(o,l);return a===!1&&(a=s.apply(o,l)),a}}r.hooks=o}if(n.walkTokens){const o=Ae.defaults.walkTokens;r.walkTokens=function(i){let s=[];return s.push(n.walkTokens.call(this,i)),o&&(s=s.concat(o.call(this,i))),s}}Ae.setOptions(r)})},Ae.walkTokens=function(t,e){let n=[];for(const r of t)switch(n=n.concat(e.call(Ae,r)),r.type){case"table":{for(const o of r.header)n=n.concat(Ae.walkTokens(o.tokens,e));for(const o of r.rows)for(const i of o)n=n.concat(Ae.walkTokens(i.tokens,e));break}case"list":{n=n.concat(Ae.walkTokens(r.items,e));break}default:Ae.defaults.extensions&&Ae.defaults.extensions.childTokens&&Ae.defaults.extensions.childTokens[r.type]?Ae.defaults.extensions.childTokens[r.type].forEach(function(o){n=n.concat(Ae.walkTokens(r[o],e))}):r.tokens&&(n=n.concat(Ae.walkTokens(r.tokens,e)))}return n},Ae.parseInline=DN(ia.lexInline,sa.parseInline),Ae.Parser=sa,Ae.parser=sa.parse,Ae.Renderer=uk,Ae.TextRenderer=NN,Ae.Lexer=ia,Ae.lexer=ia.lex,Ae.Tokenizer=ck,Ae.Slugger=$N,Ae.Hooks=dv,Ae.parse=Ae,Ae.options,Ae.setOptions,Ae.use,Ae.walkTokens,Ae.parseInline,sa.parse,ia.lex;var Fse=Object.defineProperty,Bse=Object.getOwnPropertyDescriptor,hv=(t,e,n,r)=>{for(var o=r>1?void 0:r?Bse(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Fse(e,n,o),o},Hse=Ap(rp);function Use(t){return Vse.turndown(t)}function dk(t){const e=t.parentNode;if(!Ft(e))return!1;if(e.nodeName==="THEAD")return!0;if(e.nodeName!=="TABLE"&&!PN(e))return!1;const n=[...t.childNodes];return n.every(r=>r.nodeName==="TH")&&n.some(r=>!!r.textContent)}function pv(t){return Ft(t)&&t.matches("th[data-controller-cell]")}function Wse(t){const e=t.parentNode;return!Ft(e)||e.nodeName!=="TABLE"&&!PN(e)?!1:[...t.childNodes].every(r=>pv(r))}function PN(t){var n;if(t.nodeName!=="TBODY")return!1;const e=t.previousSibling;return e?Ft(e)&&e.nodeName==="THEAD"&&!((n=e.textContent)!=null&&n.trim()):!0}function zN(t){const e=t.closest("table");if(!e)return!1;const{parentNode:n}=e;return n?!!n.closest("table"):!0}function FN(t,e){var i;const n=[];for(const s of((i=e.parentNode)==null?void 0:i.childNodes)??[])pv(s)||n.push(s);return`${(n.indexOf(e)===0?"| ":" ")+t.trim()} |`}var Vse=new Hse({codeBlockStyle:"fenced",headingStyle:"atx"}).addRule("taskListItems",{filter:t=>t.nodeName==="LI"&&t.hasAttribute("data-task-list-item"),replacement:(t,e)=>`- ${e.hasAttribute("data-checked")?"[x]":"[ ]"} ${t.trimStart()}`}).addRule("tableCell",{filter:["th","td"],replacement:(t,e)=>pv(e)?"":FN(t,e)}).addRule("tableRow",{filter:"tr",replacement:(t,e)=>{let n="";const r={left:":--",right:"--:",center:":-:"},o=[...e.childNodes].filter(i=>!pv(i));if(dk(e))for(const i of o){if(!Ft(i))continue;let s="---";const l=(i.getAttribute("align")??"").toLowerCase();l&&(s=r[l]||s),n+=FN(s,i)}return` +`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
":"
"}del(e){return`${e}`}link(e,n,r){if(e=WN(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let o='
",o}image(e,n,r){if(e=WN(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let o=`${r}":">",o}text(e){return e}}class YN{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,n,r){return""+r}image(e,n,r){return""+r}br(){return""}}class XN{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,n){let r=e,o=0;if(this.seen.hasOwnProperty(r)){o=this.seen[e];do o++,r=e+"-"+o;while(this.seen.hasOwnProperty(r))}return n||(this.seen[e]=o,this.seen[r]=0),r}slug(e,n={}){const r=this.serialize(e);return this.getNextSafeSlug(r,n.dryrun)}}class aa{constructor(e){this.options=e||yl,this.options.renderer=this.options.renderer||new fk,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new YN,this.slugger=new XN}static parse(e,n){return new aa(n).parse(e)}static parseInline(e,n){return new aa(n).parseInline(e)}parse(e,n=!0){let r="",o,i,s,l,a,u,c,d,h,p,f,g,m,v,y,b,x,k,w;const S=e.length;for(o=0;o0&&y.tokens[0].type==="paragraph"?(y.tokens[0].text=k+" "+y.tokens[0].text,y.tokens[0].tokens&&y.tokens[0].tokens.length>0&&y.tokens[0].tokens[0].type==="text"&&(y.tokens[0].tokens[0].text=k+" "+y.tokens[0].tokens[0].text)):y.tokens.unshift({type:"text",text:k}):v+=k),v+=this.parse(y.tokens,m),h+=this.renderer.listitem(v,x,b);r+=this.renderer.list(h,f,g);continue}case"html":{r+=this.renderer.html(p.text);continue}case"paragraph":{r+=this.renderer.paragraph(this.parseInline(p.tokens));continue}case"text":{for(h=p.tokens?this.parseInline(p.tokens):p.text;o+1{if(r.message+=` +Please report this to https://github.com/markedjs/marked.`,t){const o="

An error occurred:

"+qn(r.message+"",!0)+"
";if(e)return Promise.resolve(o);if(n){n(null,o);return}return o}if(e)return Promise.reject(r);if(n){n(r);return}throw r}}function qN(t,e){return(n,r,o)=>{typeof r=="function"&&(o=r,r=null);const i={...r};r={...Ae.defaults,...i};const s=sae(r.silent,r.async,o);if(typeof n>"u"||n===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(rae(r),r.hooks&&(r.hooks.options=r),o){const l=r.highlight;let a;try{r.hooks&&(n=r.hooks.preprocess(n)),a=t(n,r)}catch(d){return s(d)}const u=function(d){let h;if(!d)try{r.walkTokens&&Ae.walkTokens(a,r.walkTokens),h=e(a,r),r.hooks&&(h=r.hooks.postprocess(h))}catch(p){d=p}return r.highlight=l,d?s(d):o(null,h)};if(!l||l.length<3||(delete r.highlight,!a.length))return u();let c=0;Ae.walkTokens(a,function(d){d.type==="code"&&(c++,setTimeout(()=>{l(d.text,d.lang,function(h,p){if(h)return u(h);p!=null&&p!==d.text&&(d.text=p,d.escaped=!0),c--,c===0&&u()})},0))}),c===0&&u();return}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(l=>t(l,r)).then(l=>r.walkTokens?Promise.all(Ae.walkTokens(l,r.walkTokens)).then(()=>l):l).then(l=>e(l,r)).then(l=>r.hooks?r.hooks.postprocess(l):l).catch(s);try{r.hooks&&(n=r.hooks.preprocess(n));const l=t(n,r);r.walkTokens&&Ae.walkTokens(l,r.walkTokens);let a=e(l,r);return r.hooks&&(a=r.hooks.postprocess(a)),a}catch(l){return s(l)}}}function Ae(t,e,n){return qN(sa.lex,aa.parse)(t,e,n)}Ae.options=Ae.setOptions=function(t){return Ae.defaults={...Ae.defaults,...t},Vse(Ae.defaults),Ae},Ae.getDefaults=zN,Ae.defaults=yl,Ae.use=function(...t){const e=Ae.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(n=>{const r={...n};if(r.async=Ae.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const i=e.renderers[o.name];i?e.renderers[o.name]=function(...s){let l=o.renderer.apply(this,s);return l===!1&&(l=i.apply(this,s)),l}:e.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[o.level]?e[o.level].unshift(o.tokenizer):e[o.level]=[o.tokenizer],o.start&&(o.level==="block"?e.startBlock?e.startBlock.push(o.start):e.startBlock=[o.start]:o.level==="inline"&&(e.startInline?e.startInline.push(o.start):e.startInline=[o.start]))}o.childTokens&&(e.childTokens[o.name]=o.childTokens)}),r.extensions=e),n.renderer){const o=Ae.defaults.renderer||new fk;for(const i in n.renderer){const s=o[i];o[i]=(...l)=>{let a=n.renderer[i].apply(o,l);return a===!1&&(a=s.apply(o,l)),a}}r.renderer=o}if(n.tokenizer){const o=Ae.defaults.tokenizer||new pk;for(const i in n.tokenizer){const s=o[i];o[i]=(...l)=>{let a=n.tokenizer[i].apply(o,l);return a===!1&&(a=s.apply(o,l)),a}}r.tokenizer=o}if(n.hooks){const o=Ae.defaults.hooks||new pv;for(const i in n.hooks){const s=o[i];pv.passThroughHooks.has(i)?o[i]=l=>{if(Ae.defaults.async)return Promise.resolve(n.hooks[i].call(o,l)).then(u=>s.call(o,u));const a=n.hooks[i].call(o,l);return s.call(o,a)}:o[i]=(...l)=>{let a=n.hooks[i].apply(o,l);return a===!1&&(a=s.apply(o,l)),a}}r.hooks=o}if(n.walkTokens){const o=Ae.defaults.walkTokens;r.walkTokens=function(i){let s=[];return s.push(n.walkTokens.call(this,i)),o&&(s=s.concat(o.call(this,i))),s}}Ae.setOptions(r)})},Ae.walkTokens=function(t,e){let n=[];for(const r of t)switch(n=n.concat(e.call(Ae,r)),r.type){case"table":{for(const o of r.header)n=n.concat(Ae.walkTokens(o.tokens,e));for(const o of r.rows)for(const i of o)n=n.concat(Ae.walkTokens(i.tokens,e));break}case"list":{n=n.concat(Ae.walkTokens(r.items,e));break}default:Ae.defaults.extensions&&Ae.defaults.extensions.childTokens&&Ae.defaults.extensions.childTokens[r.type]?Ae.defaults.extensions.childTokens[r.type].forEach(function(o){n=n.concat(Ae.walkTokens(r[o],e))}):r.tokens&&(n=n.concat(Ae.walkTokens(r.tokens,e)))}return n},Ae.parseInline=qN(sa.lexInline,aa.parseInline),Ae.Parser=aa,Ae.parser=aa.parse,Ae.Renderer=fk,Ae.TextRenderer=YN,Ae.Lexer=sa,Ae.lexer=sa.lex,Ae.Tokenizer=pk,Ae.Slugger=XN,Ae.Hooks=pv,Ae.parse=Ae,Ae.options,Ae.setOptions,Ae.use,Ae.walkTokens,Ae.parseInline,aa.parse,sa.lex;var aae=Object.defineProperty,lae=Object.getOwnPropertyDescriptor,fv=(t,e,n,r)=>{for(var o=r>1?void 0:r?lae(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&aae(e,n,o),o},cae=Rp(ip);function uae(t){return hae.turndown(t)}function gk(t){const e=t.parentNode;if(!Ft(e))return!1;if(e.nodeName==="THEAD")return!0;if(e.nodeName!=="TABLE"&&!ZN(e))return!1;const n=[...t.childNodes];return n.every(r=>r.nodeName==="TH")&&n.some(r=>!!r.textContent)}function gv(t){return Ft(t)&&t.matches("th[data-controller-cell]")}function dae(t){const e=t.parentNode;return!Ft(e)||e.nodeName!=="TABLE"&&!ZN(e)?!1:[...t.childNodes].every(r=>gv(r))}function ZN(t){var n;if(t.nodeName!=="TBODY")return!1;const e=t.previousSibling;return e?Ft(e)&&e.nodeName==="THEAD"&&!((n=e.textContent)!=null&&n.trim()):!0}function JN(t){const e=t.closest("table");if(!e)return!1;const{parentNode:n}=e;return n?!!n.closest("table"):!0}function QN(t,e){var i;const n=[];for(const s of((i=e.parentNode)==null?void 0:i.childNodes)??[])gv(s)||n.push(s);return`${(n.indexOf(e)===0?"| ":" ")+t.trim()} |`}var hae=new cae({codeBlockStyle:"fenced",headingStyle:"atx"}).addRule("taskListItems",{filter:t=>t.nodeName==="LI"&&t.hasAttribute("data-task-list-item"),replacement:(t,e)=>`- ${e.hasAttribute("data-checked")?"[x]":"[ ]"} ${t.trimStart()}`}).addRule("tableCell",{filter:["th","td"],replacement:(t,e)=>gv(e)?"":QN(t,e)}).addRule("tableRow",{filter:"tr",replacement:(t,e)=>{let n="";const r={left:":--",right:"--:",center:":-:"},o=[...e.childNodes].filter(i=>!gv(i));if(gk(e))for(const i of o){if(!Ft(i))continue;let s="---";const l=(i.getAttribute("align")??"").toLowerCase();l&&(s=r[l]||s),n+=QN(s,i)}return` ${t}${n?` -${n}`:""}`}}).addRule("table",{filter:t=>{if(t.nodeName!=="TABLE"||zN(t))return!1;const e=[...t.rows].filter(n=>!Wse(n));return dk(e[0])},replacement:t=>(t=t.replace(` +${n}`:""}`}}).addRule("table",{filter:t=>{if(t.nodeName!=="TABLE"||JN(t))return!1;const e=[...t.rows].filter(n=>!dae(n));return gk(e[0])},replacement:t=>(t=t.replace(` `,` `),` ${t} -`)}).addRule("tableSection",{filter:["thead","tbody","tfoot"],replacement:function(t){return t}}).keep(t=>t.nodeName==="TABLE"&&!dk(t.rows[0])).keep(t=>t.nodeName==="TABLE"&&zN(t)).addRule("strikethrough",{filter:["del","s","strike"],replacement:function(t){return`~${t}~`}}).addRule("fencedCodeBlock",{filter:(t,e)=>!!(e.codeBlockStyle==="fenced"&&t.nodeName==="PRE"&&t.firstChild&&t.firstChild.nodeName==="CODE"),replacement:(t,e,n)=>{var i,s;be(Ft(e.firstChild),{code:re.EXTENSION,message:`Invalid node \`${(i=e.firstChild)==null?void 0:i.nodeName}\` encountered for codeblock when converting html to markdown.`});const o=((s=(e.firstChild.getAttribute("class")??"").match(/(?:lang|language)-(\S+)/))==null?void 0:s[1])??e.firstChild.getAttribute("data-code-block-language")??"";return` +`)}).addRule("tableSection",{filter:["thead","tbody","tfoot"],replacement:function(t){return t}}).keep(t=>t.nodeName==="TABLE"&&!gk(t.rows[0])).keep(t=>t.nodeName==="TABLE"&&JN(t)).addRule("strikethrough",{filter:["del","s","strike"],replacement:function(t){return`~${t}~`}}).addRule("fencedCodeBlock",{filter:(t,e)=>!!(e.codeBlockStyle==="fenced"&&t.nodeName==="PRE"&&t.firstChild&&t.firstChild.nodeName==="CODE"),replacement:(t,e,n)=>{var i,s;be(Ft(e.firstChild),{code:re.EXTENSION,message:`Invalid node \`${(i=e.firstChild)==null?void 0:i.nodeName}\` encountered for codeblock when converting html to markdown.`});const o=((s=(e.firstChild.getAttribute("class")??"").match(/(?:lang|language)-(\S+)/))==null?void 0:s[1])??e.firstChild.getAttribute("data-code-block-language")??"";return` ${n.fence}${o} ${e.firstChild.textContent} @@ -4995,13 +4996,18 @@ ${t} ${t} `},listitem(t,e,n){return e?`
  • ${t}
  • `:`
  • ${t}
  • -`}}});function jse(t,e){const n=Ae(t,{gfm:!0,smartLists:!0,xhtml:!0});return e?e(n):n}var du=class extends ht{get name(){return"markdown"}onCreate(){this.store.setStringHandler("markdown",this.markdownToProsemirrorNode.bind(this))}createPlugin(){return{props:{clipboardTextSerializer:this.options.copyAsMarkdown?e=>{const n=document.createElement("div"),r=Dr.fromSchema(this.store.schema);return n.append(r.serializeFragment(e.content)),this.options.htmlToMarkdown(n.innerHTML)}:void 0}}}markdownToProsemirrorNode(t){return this.store.stringHandlers.html({...t,content:this.options.markdownToHtml(t.content,this.options.htmlSanitizer)})}insertMarkdown(t,e){return n=>{const{state:r}=n;let o=this.options.markdownToHtml(t,this.options.htmlSanitizer);o=!(e!=null&&e.alwaysWrapInBlock)&&o.startsWith("

    <")&&o.endsWith(`

    -`)?o.slice(3,-5):`
    ${o}
    `;const i=this.store.stringHandlers.html({content:o,schema:r.schema,fragment:!0});return this.store.commands.insertNode.original(i,{...e,replaceEmptyParentBlock:!0})(n)}}getMarkdown(t){return this.options.htmlToMarkdown(this.store.helpers.getHTML(t))}toggleBoldMarkdown(){return t=>!1}};hv([le()],du.prototype,"insertMarkdown",1),hv([nt()],du.prototype,"getMarkdown",1),hv([le()],du.prototype,"toggleBoldMarkdown",1),du=hv([Ne({defaultOptions:{htmlToMarkdown:Use,markdownToHtml:jse,htmlSanitizer:void 0,activeNodes:[we.Code],copyAsMarkdown:!1},staticKeys:["htmlToMarkdown","markdownToHtml","htmlSanitizer"]})],du);var Gse=Object.defineProperty,Kse=Object.getOwnPropertyDescriptor,hk=(t,e,n,r)=>{for(var o=r>1?void 0:r?Kse(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Gse(e,n,o),o},Yse={icon:"strikethrough",label:({t})=>t($C.LABEL),description:({t})=>t($C.DESCRIPTION)},op=class extends ks{get name(){return"strike"}createTags(){return[we.FontStyle,we.FormattingMark]}createMarkSpec(t,e){return{...e,attrs:t.defaults(),parseDOM:[{tag:"s",getAttrs:t.parse},{tag:"del",getAttrs:t.parse},{tag:"strike",getAttrs:t.parse},{style:"text-decoration",getAttrs:n=>n==="line-through"?{}:!1},...e.parseDOM??[]],toDOM:n=>["s",t.dom(n),0]}}toggleStrike(){return Es({type:this.type})}shortcut(t){return this.toggleStrike()(t)}createInputRules(){return[Ju({regexp:/~([^~]+)~$/,type:this.type,ignoreWhitespace:!0})]}createPasteRules(){return[{regexp:/~([^~]+)~/g,type:"mark",markType:this.type}]}};hk([le(Yse)],op.prototype,"toggleStrike",1),hk([Zt({shortcut:oe.Strike,command:"toggleStrike"})],op.prototype,"shortcut",1),op=hk([Ne({})],op);var BN=new ba("trailingNode");function Xse(t){const{ignoredNodes:e=[],nodeName:n="paragraph"}=t??{},r=Nl([...e,n]);let o,i;return new Xo({key:BN,appendTransaction(s,l,a){const{doc:u,tr:c}=a,d=BN.getState(a),h=u.content.size;if(d)return c.insert(h,o.create())},state:{init:(s,{doc:l,schema:a})=>{var u;const c=a.nodes[n];if(!c)throw new Error(`Invalid node being used for trailing node extension: '${n}'`);return o=c,i=Object.values(a.nodes).map(d=>d).filter(d=>!r.includes(d.name)),Jn(i,(u=l.lastChild)==null?void 0:u.type)},apply:(s,l)=>{var a;return s.docChanged?Jn(i,(a=s.doc.lastChild)==null?void 0:a.type):l}}})}var qse=Object.defineProperty,Zse=Object.getOwnPropertyDescriptor,Jse=(t,e,n,r)=>{for(var o=r>1?void 0:r?Zse(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&qse(e,n,o),o},pk=class extends ht{get name(){return"trailingNode"}onSetOptions(t){const{changes:e}=t;(e.disableTags.changed||e.ignoredNodes.changed||e.nodeName.changed)&&this.store.updateExtensionPlugins(this)}createExternalPlugins(){const{tags:t}=this.store,{disableTags:e,nodeName:n}=this.options,r=e?[...this.options.ignoredNodes]:[...this.options.ignoredNodes,...t.lastNodeCompatible];return[Xse({ignoredNodes:r,nodeName:n})]}};pk=Jse([Ne({defaultOptions:{ignoredNodes:[],disableTags:!1,nodeName:"paragraph"}})],pk);var Qse=Object.defineProperty,eae=Object.getOwnPropertyDescriptor,fk=(t,e,n,r)=>{for(var o=r>1?void 0:r?eae(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Qse(e,n,o),o},tae={icon:"underline",label:({t})=>t(DC.LABEL),description:({t})=>t(DC.DESCRIPTION)},ip=class extends ks{get name(){return"underline"}createTags(){return[we.FontStyle,we.FormattingMark]}createMarkSpec(t,e){return{...e,attrs:t.defaults(),parseDOM:[{tag:"u",getAttrs:t.parse},{style:"text-decoration",getAttrs:n=>n==="underline"?{}:!1},...e.parseDOM??[]],toDOM:n=>["u",t.dom(n),0]}}toggleUnderline(t){return Es({type:this.type,selection:t})}shortcut(t){return this.toggleUnderline()(t)}};fk([le(tae)],ip.prototype,"toggleUnderline",1),fk([Zt({shortcut:oe.Underline,command:"toggleUnderline"})],ip.prototype,"shortcut",1),ip=fk([Ne({})],ip);/* +`}}});function pae(t,e){const n=Ae(t,{gfm:!0,smartLists:!0,xhtml:!0});return e?e(n):n}var uu=class extends ct{get name(){return"markdown"}onCreate(){this.store.setStringHandler("markdown",this.markdownToProsemirrorNode.bind(this))}createPlugin(){return{props:{clipboardTextSerializer:this.options.copyAsMarkdown?e=>{const n=document.createElement("div"),r=Xo.fromSchema(this.store.schema);return n.append(r.serializeFragment(e.content)),this.options.htmlToMarkdown(n.innerHTML)}:void 0}}}markdownToProsemirrorNode(t){return this.store.stringHandlers.html({...t,content:this.options.markdownToHtml(t.content,this.options.htmlSanitizer)})}insertMarkdown(t,e){return n=>{const{state:r}=n;let o=this.options.markdownToHtml(t,this.options.htmlSanitizer);o=!(e!=null&&e.alwaysWrapInBlock)&&o.startsWith("

    <")&&o.endsWith(`

    +`)?o.slice(3,-5):`
    ${o}
    `;const i=this.store.stringHandlers.html({content:o,schema:r.schema,fragment:!0});return this.store.commands.insertNode.original(i,{...e,replaceEmptyParentBlock:!0})(n)}}getMarkdown(t){return this.options.htmlToMarkdown(this.store.helpers.getHTML(t))}toggleBoldMarkdown(){return t=>!1}};fv([le()],uu.prototype,"insertMarkdown",1),fv([nt()],uu.prototype,"getMarkdown",1),fv([le()],uu.prototype,"toggleBoldMarkdown",1),uu=fv([Ne({defaultOptions:{htmlToMarkdown:uae,markdownToHtml:pae,htmlSanitizer:void 0,activeNodes:[we.Code],copyAsMarkdown:!1},staticKeys:["htmlToMarkdown","markdownToHtml","htmlSanitizer"]})],uu);var fae=Object.defineProperty,gae=Object.getOwnPropertyDescriptor,mk=(t,e,n,r)=>{for(var o=r>1?void 0:r?gae(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&fae(e,n,o),o},mae={icon:"strikethrough",label:({t})=>t(jC.LABEL),description:({t})=>t(jC.DESCRIPTION)},sp=class extends Es{get name(){return"strike"}createTags(){return[we.FontStyle,we.FormattingMark]}createMarkSpec(t,e){return{...e,attrs:t.defaults(),parseDOM:[{tag:"s",getAttrs:t.parse},{tag:"del",getAttrs:t.parse},{tag:"strike",getAttrs:t.parse},{style:"text-decoration",getAttrs:n=>n==="line-through"?{}:!1},...e.parseDOM??[]],toDOM:n=>["s",t.dom(n),0]}}toggleStrike(){return Ss({type:this.type})}shortcut(t){return this.toggleStrike()(t)}createInputRules(){return[ed({regexp:/~([^~]+)~$/,type:this.type,ignoreWhitespace:!0})]}createPasteRules(){return[{regexp:/~([^~]+)~/g,type:"mark",markType:this.type}]}};mk([le(mae)],sp.prototype,"toggleStrike",1),mk([Zt({shortcut:oe.Strike,command:"toggleStrike"})],sp.prototype,"shortcut",1),sp=mk([Ne({})],sp);var e$=new wa("trailingNode");function vae(t){const{ignoredNodes:e=[],nodeName:n="paragraph"}=t??{},r=$l([...e,n]);let o,i;return new qo({key:e$,appendTransaction(s,l,a){const{doc:u,tr:c}=a,d=e$.getState(a),h=u.content.size;if(d)return c.insert(h,o.create())},state:{init:(s,{doc:l,schema:a})=>{var u;const c=a.nodes[n];if(!c)throw new Error(`Invalid node being used for trailing node extension: '${n}'`);return o=c,i=Object.values(a.nodes).map(d=>d).filter(d=>!r.includes(d.name)),Qn(i,(u=l.lastChild)==null?void 0:u.type)},apply:(s,l)=>{var a;return s.docChanged?Qn(i,(a=s.doc.lastChild)==null?void 0:a.type):l}}})}var yae=Object.defineProperty,bae=Object.getOwnPropertyDescriptor,xae=(t,e,n,r)=>{for(var o=r>1?void 0:r?bae(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&yae(e,n,o),o},vk=class extends ct{get name(){return"trailingNode"}onSetOptions(t){const{changes:e}=t;(e.disableTags.changed||e.ignoredNodes.changed||e.nodeName.changed)&&this.store.updateExtensionPlugins(this)}createExternalPlugins(){const{tags:t}=this.store,{disableTags:e,nodeName:n}=this.options,r=e?[...this.options.ignoredNodes]:[...this.options.ignoredNodes,...t.lastNodeCompatible];return[vae({ignoredNodes:r,nodeName:n})]}};vk=xae([Ne({defaultOptions:{ignoredNodes:[],disableTags:!1,nodeName:"paragraph"}})],vk);var wae=Object.defineProperty,kae=Object.getOwnPropertyDescriptor,yk=(t,e,n,r)=>{for(var o=r>1?void 0:r?kae(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&wae(e,n,o),o},Eae={icon:"underline",label:({t})=>t(GC.LABEL),description:({t})=>t(GC.DESCRIPTION)},ap=class extends Es{get name(){return"underline"}createTags(){return[we.FontStyle,we.FormattingMark]}createMarkSpec(t,e){return{...e,attrs:t.defaults(),parseDOM:[{tag:"u",getAttrs:t.parse},{style:"text-decoration",getAttrs:n=>n==="underline"?{}:!1},...e.parseDOM??[]],toDOM:n=>["u",t.dom(n),0]}}toggleUnderline(t){return Ss({type:this.type,selection:t})}shortcut(t){return this.toggleUnderline()(t)}};yk([le(Eae)],ap.prototype,"toggleUnderline",1),yk([Zt({shortcut:oe.Underline,command:"toggleUnderline"})],ap.prototype,"shortcut",1),ap=yk([Ne({})],ap);/* + * Squidex Headless CMS + * + * @license + * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. + */class Sae extends ct{get name(){return"backspaceKey"}createKeymap(){return{Backspace:({state:n,dispatch:r})=>{const{selection:o,doc:i}=n;if(!o.empty)return!1;const s=o.$from,l=s.nodeBefore;if(l&&l.type.spec.selectable){const a=s.pos-l.nodeSize;return r&&r(n.tr.setSelection(_e.create(i,a))),!0}return!1}}}}/* * Squidex Headless CMS * * @license * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. - */const HN={};function nae(t,e){if(HN[t])return;const n=document.createElement("style"),r=rae(t)/1e4,o=oae({h:Math.abs(r),s:.6,v:.6}),i=iae(o);n.type="text/css",n.textContent=` + */const t$={};function Cae(t,e){if(t$[t])return;const n=document.createElement("style"),r=Tae(t)/1e4,o=Aae({h:Math.abs(r),s:.6,v:.6}),i=_ae(o);n.type="text/css",n.textContent=` .remirror-editor-wrapper .${e}${t}::before { content: '[${t}]'; font-family: monospace; @@ -5015,25 +5021,25 @@ ${t} font-size: 90%; color: ${i}; } - `,document.head.appendChild(n),HN[t]=!0}function rae(t){let e=0;if(!t||t.length===0)return e;for(let n=0;n{for(var o=r>1?void 0:r?aae(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&sae(e,n,o),o};const fv="__editor_";let hu=class extends ks{get name(){return"className"}constructor(t){super(t);for(const e of t.classNames||[])nae(e,fv)}createTags(){return[we.FontStyle,we.FormattingMark]}createMarkSpec(t,e){return{...e,attrs:{...t.defaults(),className:{}},excludes:"",parseDOM:[{tag:"*",getAttrs:n=>{var r;if(!Ft(n))return!1;for(let o of n.classList)if(o.startsWith(fv)&&(o=o.substring(fv.length)),((r=this.options.classNames)==null?void 0:r.indexOf(o))>=0)return{...t.parse(n),className:o};return!1}},...e.parseDOM??[]],toDOM:n=>{const{className:r,...o}=nf(n.attrs,t),i=t.dom(n),s=i.className,l=lae(r,s);return["span",{...o,...i,class:l},0]}}}setClassName(t,e){return({tr:n,dispatch:r})=>{const{from:o,to:i}=or(e??n.selection,n.doc);return r==null||r(n.addMark(o,i,this.type.create({className:t}))),!0}}removeClassName(t){return this.store.commands.removeMark.original({type:this.type,selection:t,expand:!0})}};gk([le({})],hu.prototype,"setClassName",1),gk([le({})],hu.prototype,"removeClassName",1),hu=gk([Ne({defaultOptions:{},staticKeys:["classNames"]})],hu);function lae(t,e){return t&&(t=`${fv}${t}`),t&&e?`${t} ${e}`:t||e}/* + `,document.head.appendChild(n),t$[t]=!0}function Tae(t){let e=0;if(!t||t.length===0)return e;for(let n=0;n{for(var o=r>1?void 0:r?Mae(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Rae(e,n,o),o};const mv="__editor_";let du=class extends Es{get name(){return"className"}constructor(t){super(t);for(const e of t.classNames||[])Cae(e,mv)}createTags(){return[we.FontStyle,we.FormattingMark]}createMarkSpec(t,e){return{...e,attrs:{...t.defaults(),className:{}},excludes:"",parseDOM:[{tag:"*",getAttrs:n=>{var r;if(!Ft(n))return!1;for(let o of n.classList)if(o.startsWith(mv)&&(o=o.substring(mv.length)),((r=this.options.classNames)==null?void 0:r.indexOf(o))>=0)return{...t.parse(n),className:o};return!1}},...e.parseDOM??[]],toDOM:n=>{const{className:r,...o}=of(n.attrs,t),i=t.dom(n),s=i.className,l=Oae(r,s);return["span",{...o,...i,class:l},0]}}}setClassName(t,e){return({tr:n,dispatch:r})=>{const{from:o,to:i}=or(e??n.selection,n.doc);return r==null||r(n.addMark(o,i,this.type.create({className:t}))),!0}}removeClassName(t){return this.store.commands.removeMark.original({type:this.type,selection:t,expand:!0})}};bk([le({})],du.prototype,"setClassName",1),bk([le({})],du.prototype,"removeClassName",1),du=bk([Ne({defaultOptions:{},staticKeys:["classNames"]})],du);function Oae(t,e){return t&&(t=`${mv}${t}`),t&&e?`${t} ${e}`:t||e}/* * Squidex Headless CMS * * @license * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. - */function UN(t){const[e,n]=D.useState(t),r=D.useRef(t);return r.current=e,[e,n,r]}function cae(){const{getState:t,getPluginState:e}=Xr({autoUpdate:!0}),{doc:n,selection:r}=t(),{from:o,to:i}=or(r,n),s=e("annotation");let l=VN,a=jN;for(const u of s.annotations)(Yo(o,u.from,u.to)||Yo(i,u.from,u.to)||Yo(u.from,o,i)||Yo(u.to,o,i))&&(a===jN&&(a=[]),a.push(u.id)),l===VN&&(l=[]),l.push(u);return{selected:a,available:l}}function WN(t,e,n){const[r,o]=D.useState(e());return D.useEffect(()=>{const i=setTimeout(()=>{o(e())},t);return()=>{clearTimeout(i)}},n),r}function uae(t,e){const[n,r]=D.useState(!0);return D.useEffect(()=>{r(!1);const o=setTimeout(()=>{r(!0)},t);return()=>{clearTimeout(o)}},e),n}function dae(t){const[e,n]=D.useState(()=>!!localStorage.getItem(t));D.useEffect(()=>{const o=i=>{const s=i;s.detail.key===t&&n(s.detail.value)};return document.addEventListener(mk,o),()=>{document.removeEventListener(mk,o)}},[]);const r=D.useCallback(o=>{n(o),o?localStorage.setItem(t,"1"):localStorage.removeItem(t),document.dispatchEvent(new CustomEvent(mk,{detail:{key:t,value:o}}))},[]);return[e,r]}const VN=[],jN=[],mk="storeChanged";vk.displayName="abap",vk.aliases=[];function vk(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|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/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:/[,.:()]/}}hr.displayName="clike",hr.aliases=[];function hr(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:/[{}[\];(),.:]/}}aa.displayName="javascript",aa.aliases=["js"];function aa(t){t.register(hr),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:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),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}yk.displayName="actionscript",yk.aliases=[];function yk(t){t.register(aa),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}})}bk.displayName="bash",bk.aliases=["sh","shell"];function bk(t){(function(e){var n="\\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",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:r,environment:{pattern:RegExp("\\$"+n),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("(\\{)"+n),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})/};e.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+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|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|java|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|sysctl|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}},r.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=o.variable[1].inside,l=0;l?^\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:/[,;:()]/}}wk.displayName="batch",wk.aliases=[];function wk(t){(function(e){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},o=/"(?:[\\"]"|[^"])*"(?!")/,i=/(?:\b|-)\d+\b/;e.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:o,parameter:r,variable:n,number:i,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:o,parameter:r,variable:n,number:i,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:o,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:i,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:o,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:i,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}sp.displayName="c",sp.aliases=[];function sp(t){t.register(hr),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}kk.displayName="clojure",kk.aliases=[];function kk(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:/[{}\[\](),]/}}Ek.displayName="cmake",Ek.aliases=[];function Ek(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_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\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|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:/[()>}]|\$[<{]/}}Sk.displayName="cobol",Sk.aliases=[];function Sk(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:/[.:,()]/}}Ck.displayName="coffeescript",Ck.aliases=["coffee"];function Ck(t){t.register(aa),function(e){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],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"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(t)}Tk.displayName="cpp",Tk.aliases=[];function Tk(t){t.register(sp),function(e){var n=/\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/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.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:n,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/}),e.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 r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.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:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(t)}Ak.displayName="csharp",Ak.aliases=["cs","dotnet"];function Ak(t){t.register(hr),function(e){function n(P,F){return P.replace(/<<(\d+)>>/g,function(H,W){return"(?:"+F[+W]+")"})}function r(P,F,H){return RegExp(n(P,F),H||"")}function o(P,F){for(var H=0;H>/g,function(){return"(?:"+P+")"});return P.replace(/<>/g,"[^\\s\\S]")}var i={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 s(P){return"\\b(?:"+P.trim().replace(/ /g,"|")+")\\b"}var l=s(i.typeDeclaration),a=RegExp(s(i.type+" "+i.typeDeclaration+" "+i.contextual+" "+i.other)),u=s(i.typeDeclaration+" "+i.contextual+" "+i.other),c=s(i.type+" "+i.typeDeclaration+" "+i.other),d=o(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=o(/\((?:[^()]|<>)*\)/.source,2),p=/@?\b[A-Za-z_]\w*\b/.source,f=n(/<<0>>(?:\s*<<1>>)?/.source,[p,d]),g=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,f]),m=/\[\s*(?:,\s*)*\]/.source,v=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[g,m]),y=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,h,m]),b=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[y]),x=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[b,g,m]),k={keyword:a,punctuation:/[<>()?,.:[\]]/},w=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[g]),lookbehind:!0,inside:k},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[p,x]),lookbehind:!0,inside:k},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[p]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,f]),lookbehind:!0,inside:k},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[g]),lookbehind:!0,inside:k},{pattern:r(/(\bwhere\s+)<<0>>/.source,[p]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:k},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,c,p]),inside:k}],keyword:a,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:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[p]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[p]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:k},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,g]),inside:k,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:k,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[p,d]),inside:{function:r(/^<<0>>/.source,[p]),generic:{pattern:RegExp(d),alias:"class-name",inside:k}}},"type-list":{pattern:r(/\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,[l,f,p,x,a.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[f,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:a,"class-name":{pattern:RegExp(x),greedy:!0,inside:k},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 C=S+"|"+w,O=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[C]),R=o(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[O]),2),_=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,T=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[g,R]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[_,T]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[_]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[R]),inside:e.languages.csharp},"class-name":{pattern:RegExp(g),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var E=/:[^}\r\n]+/.source,M=o(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[O]),2),I=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,E]),N=o(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[C]),2),L=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,E]);function $(P,F){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[P]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[F,E]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:$(I,M)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:$(L,N)}],char:{pattern:RegExp(w),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(t)}ap.displayName="css",ap.aliases=[];function ap(t){(function(e){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),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\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(t)}_k.displayName="csv",_k.aliases=[];function _k(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}Rk.displayName="d",Rk.aliases=[];function Rk(t){t.register(hr),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"}})}Mk.displayName="dart",Mk.aliases=[];function Mk(t){t.register(hr),function(e){var n=[/\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/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(r+/[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:/\./}}}};e.languages.dart=e.languages.extend("clike",{"class-name":[o,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:o.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.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:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":o,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(t)}pu.displayName="markup",pu.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function pu(t){t.languages.markup={comment:{pattern://,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"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},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(e){e.type==="entity"&&(e.attributes.title=e.content.value.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:t.languages[r]},o.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[n,"language-"+n],inside:t.languages[n]},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}yl.displayName="markup-templating",yl.aliases=[];function yl(t){t.register(pu),function(e){function n(r,o){return"___"+r.toUpperCase()+o+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,o,i,s){if(r.language===o){var l=r.tokenStack=[];r.code=r.code.replace(i,function(a){if(typeof s=="function"&&!s(a))return a;for(var u=l.length,c;r.code.indexOf(c=n(o,u))!==-1;)++u;return l[u]=a,c}),r.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(r,o){if(r.language!==o||!r.tokenStack)return;r.grammar=e.languages[o];var i=0,s=Object.keys(r.tokenStack);function l(a){for(var u=0;u=s.length);u++){var c=a[u];if(typeof c=="string"||c.content&&typeof c.content=="string"){var d=s[i],h=r.tokenStack[d],p=typeof c=="string"?c:c.content,f=n(o,d),g=p.indexOf(f);if(g>-1){++i;var m=p.substring(0,g),v=new e.Token(o,e.tokenize(h,r.grammar),"language-"+o,h),y=p.substring(g+f.length),b=[];m&&b.push.apply(b,l([m])),b.push(v),y&&b.push.apply(b,l([y])),typeof c=="string"?a.splice.apply(a,[u,1].concat(b)):c.content=b}}else c.content&&l(c.content)}return a}l(r.tokens)}}})}(t)}Ok.displayName="django",Ok.aliases=["jinja2"];function Ok(t){t.register(yl),function(e){e.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 n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=e.languages["markup-templating"];e.hooks.add("before-tokenize",function(o){r.buildPlaceholders(o,"django",n)}),e.hooks.add("after-tokenize",function(o){r.tokenizePlaceholders(o,"django")}),e.languages.jinja2=e.languages.django,e.hooks.add("before-tokenize",function(o){r.buildPlaceholders(o,"jinja2",n)}),e.hooks.add("after-tokenize",function(o){r.tokenizePlaceholders(o,"jinja2")})}(t)}Ik.displayName="docker",Ik.aliases=["dockerfile"];function Ik(t){(function(e){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),o=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return o}),s={pattern:RegExp(o),greedy:!0},l={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function a(u,c){return u=u.replace(//g,function(){return i}).replace(//g,function(){return r}),RegExp(u,c)}e.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:a(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:a(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:a(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:a(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:l,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:l},e.languages.dockerfile=e.languages.docker})(t)}Lk.displayName="eiffel",Lk.aliases=[];function Lk(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}Nk.displayName="ejs",Nk.aliases=["eta"];function Nk(t){t.register(aa),t.register(yl),function(e){e.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:e.languages.javascript}},e.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;e.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),e.hooks.add("after-tokenize",function(n){e.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),e.languages.eta=e.languages.ejs}(t)}$k.displayName="elixir",$k.aliases=[];function $k(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(e){e.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}Dk.displayName="elm",Dk.aliases=[];function Dk(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:/[{}[\]|(),.:]/}}Pk.displayName="erlang",Pk.aliases=[];function Pk(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|begin|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:/[()[\]{}:;,.#|]|<<|>>/}}zk.displayName="fortran",zk.aliases=[];function zk(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:/\(\/|\/\)|[(),;:&]/}}Fk.displayName="fsharp",Fk.aliases=[];function Fk(t){t.register(hr),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}})}Bk.displayName="git",Bk.aliases=[];function Bk(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}}Hk.displayName="go",Hk.aliases=[];function Hk(t){t.register(hr),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"]}Uk.displayName="gradle",Uk.aliases=[];function Uk(t){t.register(hr),function(e){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.gradle=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),e.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=e.languages.gradle}(t)}Wk.displayName="graphql",Wk.aliases=[];function Wk(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(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(m){return typeof m!="string"&&m.type!=="comment"&&m.type!=="scalar"}),o=0;function i(m){return r[o+m]}function s(m,v){v=v||0;for(var y=0;y0)){var p=l(/^\{$/,/^\}$/);if(p===-1)continue;for(var f=o;f=0&&a(g,"variable-input")}}}}})}Vk.displayName="groovy",Vk.aliases=[];function Vk(t){t.register(hr),function(e){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.groovy=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,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:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=e.languages.groovy}(t)}jk.displayName="handlebars",jk.aliases=["hbs","mustache"];function jk(t){t.register(yl),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;e.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),e.hooks.add("after-tokenize",function(n){e.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),e.languages.hbs=e.languages.handlebars,e.languages.mustache=e.languages.handlebars}(t)}Gk.displayName="ignore",Gk.aliases=["gitignore","hgignore","npmignore"];function Gk(t){(function(e){e.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},e.languages.gitignore=e.languages.ignore,e.languages.hgignore=e.languages.ignore,e.languages.npmignore=e.languages.ignore})(t)}gv.displayName="java",gv.aliases=[];function gv(t){t.register(hr),function(e){var n=/\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(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(/(^|[^\w.])/.source+r+/[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:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:o.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:o.inside}],keyword:n,function:[e.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},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.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":o,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:o.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:o.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],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 n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(t)}Kk.displayName="json",Kk.aliases=["webmanifest"];function Kk(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}Yk.displayName="jsx",Yk.aliases=[];function Yk(t){t.register(aa),t.register(pu),function(e){var n=e.util.clone(e.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function s(u,c){return u=u.replace(//g,function(){return r}).replace(//g,function(){return o}).replace(//g,function(){return i}),RegExp(u,c)}i=s(i).source,e.languages.jsx=e.languages.extend("markup",n),e.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=n.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var l=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(l).join(""):""},a=function(u){for(var c=[],d=0;d0&&c[c.length-1].tagName===l(h.content[0].content[1])&&c.pop():h.content[h.content.length-1].content==="/>"||c.push({tagName:l(h.content[0].content[1]),openedBraces:0}):c.length>0&&h.type==="punctuation"&&h.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&h.type==="punctuation"&&h.content==="}"?c[c.length-1].openedBraces--:p=!0),(p||typeof h=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var f=l(h);d0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(f=l(u[d-1])+f,u.splice(d-1,1),d--),u[d]=new e.Token("plain-text",f,null,f)}h.content&&typeof h.content!="string"&&a(h.content)}};e.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||a(u.tokens)})}(t)}Xk.displayName="kotlin",Xk.aliases=["kt","kts"];function Xk(t){t.register(hr),function(e){e.languages.kotlin=e.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 e.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(t)}qk.displayName="latex",qk.aliases=["context","tex"];function qk(t){(function(e){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};e.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:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,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:n,alias:"selector"},punctuation:/[[\]{}&]/},e.languages.tex=e.languages.latex,e.languages.context=e.languages.latex})(t)}Zk.displayName="liquid",Zk.aliases=[];function Zk(t){t.register(yl),t.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"}},t.hooks.add("before-tokenize",function(e){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;t.languages["markup-templating"].buildPlaceholders(e,"liquid",n,function(o){var i=/^\{%-?\s*(\w+)/.exec(o);if(i){var s=i[1];if(s==="raw"&&!r)return r=!0,!0;if(s==="endraw")return r=!1,!0}return!r})}),t.hooks.add("after-tokenize",function(e){t.languages["markup-templating"].tokenizePlaceholders(e,"liquid")})}Jk.displayName="lisp",Jk.aliases=["elisp","emacs","emacs-lisp"];function Jk(t){(function(e){function n(f){return RegExp(/(\()/.source+"(?:"+f+")"+/(?=[\s\)])/.source)}function r(f){return RegExp(/([\s([])/.source+"(?:"+f+")"+/(?=[\s)])/.source)}var o=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,i="&"+o,s="(\\()",l="(?=\\))",a="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,c={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+o+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+o),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+o),alias:"property"},splice:{pattern:RegExp(",@?"+o),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+a),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+a),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+o),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(o)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+o+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+o),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+o+"(?:\\s+&?"+o+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+o),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},d={"lisp-marker":RegExp(i),varform:{pattern:RegExp(/\(/.source+o+/\s+(?=\S)/.source+u+/\)/.source),inside:c},argument:{pattern:RegExp(/(^|[\s(])/.source+o),lookbehind:!0,alias:"variable"},rest:c},h="\\S+(?:\\s+\\S+)*",p={pattern:RegExp(s+u+l),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+h),inside:d},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+h),inside:d},keys:{pattern:RegExp("&key\\s+"+h+"(?:\\s+&allow-other-keys)?"),inside:d},argument:{pattern:RegExp(o),alias:"variable"},punctuation:/[()]/}};c.lambda.inside.arguments=p,c.defun.inside.arguments=e.util.clone(p),c.defun.inside.arguments.inside.sublist=p,e.languages.lisp=c,e.languages.elisp=c,e.languages.emacs=c,e.languages["emacs-lisp"]=c})(t)}Qk.displayName="lua",Qk.aliases=[];function Qk(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:/[\[\](){},;]|\.+|:+/}}eE.displayName="makefile",eE.aliases=[];function eE(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:/[:;(){}]/}}tE.displayName="markdown",tE.aliases=["md"];function tE(t){t.register(pu),function(e){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(l){return l=l.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.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:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+s+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+s+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:e.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:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\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:r(/!?\[(?:(?!\]))+\](?:\([^\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(l){["url","bold","italic","strike","code-snippet"].forEach(function(a){l!==a&&(e.languages.markdown[l].inside.content.inside[a]=e.languages.markdown[a])})}),e.hooks.add("after-tokenize",function(l){if(l.language!=="markdown"&&l.language!=="md")return;function a(u){if(!(!u||typeof u=="string"))for(var c=0,d=u.length;c]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete t.languages.objectivec["class-name"],t.languages.objc=t.languages.objectivec}rE.displayName="perl",rE.aliases=[];function rE(t){(function(e){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;e.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,n].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,n].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,n+/\s*/.source+n].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)}oE.displayName="php",oE.aliases=[];function oE(t){t.register(yl),function(e){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{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,i=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,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|never|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|never|new|or|parent|print|private|protected|public|readonly|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:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:i,punctuation:s};var l={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},a=[{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:l}},{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:l}}];e.languages.insertBefore("php","variable",{string:a,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:a,"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:r,number:o,operator:i,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var c=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;e.languages["markup-templating"].buildPlaceholders(u,"php",c)}}),e.hooks.add("after-tokenize",function(u){e.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(t)}iE.displayName="sql",iE.aliases=[];function iE(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:/[;[\]()`,.]/}}sE.displayName="plsql",sE.aliases=[];function sE(t){t.register(iE),t.languages.plsql=t.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:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),t.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}aE.displayName="powershell",aE.aliases=[];function aE(t){(function(e){var n=e.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:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(t)}lE.displayName="protobuf",lE.aliases=[];function lE(t){t.register(hr),function(e){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;e.languages.protobuf=e.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}),e.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:n}},builtin:n,"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)}cE.displayName="python",cE.aliases=["py"];function cE(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}uE.displayName="regex",uE.aliases=[];function uE(t){(function(e){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?: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]|.)/,o={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},i={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+r.source+")",l=RegExp(s+"-"+s),a={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.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:l,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":i,escape:r}},"special-escape":n,"char-set":o,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":a}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var r="(?:"+[/([^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("|")+")",o=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+o),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+o+/(?=:(?!:))/.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:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,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:n,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+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.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)/}),e.languages.rb=e.languages.ruby}(t)}hE.displayName="rust",hE.aliases=[];function hE(t){(function(e){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(t)}pE.displayName="sass",pE.aliases=[];function pE(t){t.register(ap),function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.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)}fE.displayName="scala",fE.aliases=[];function fE(t){t.register(gv),t.languages.scala=t.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|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|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*/}),t.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:t.languages.scala}}},string:/[\s\S]+/}}}),delete t.languages.scala["class-name"],delete t.languages.scala.function,delete t.languages.scala.constant}gE.displayName="scss",gE.aliases=[];function gE(t){t.register(ap),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}mE.displayName="smalltalk",mE.aliases=[];function mE(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:/[.;:?\[\](){}]/}}vE.displayName="swift",vE.aliases=[];function vE(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(e){e.inside.interpolation.inside=t.languages.swift})}yE.displayName="toml",yE.aliases=[];function yE(t){(function(e){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(o){return o.replace(/__/g,function(){return n})}e.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\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)}bE.displayName="typescript",bE.aliases=["ts"];function bE(t){t.register(aa),function(e){e.languages.typescript=e.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/}),e.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 e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var n=e.languages.extend("typescript",{});delete n["class-name"],e.languages.typescript["class-name"].inside=n,e.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:n}}}}),e.languages.ts=e.languages.typescript}(t)}xE.displayName="unrealscript",xE.aliases=["uc","uscript"];function xE(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}wE.displayName="yaml",wE.aliases=["yml"];function wE(t){(function(e){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",i=/(?:[^\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}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(a,u){u=(u||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return a});return RegExp(c,u)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return"(?:"+i+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\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:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(s),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(t)}kE.displayName="zig",kE.aliases=[];function kE(t){(function(e){function n(u){return function(){return u}}var r=/\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/,o="\\b(?!"+r.source+")(?!\\d)\\w+\\b",i=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(i)),l=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(o)),a="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+l+")+";e.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,n(a)).replace(//g,n(i))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(a)).replace(//g,n(i))),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:r,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:/[.:,;(){}[\]]/},e.languages.zig["class-name"].forEach(function(u){u.inside===null&&(u.inside=e.languages.zig)})})(t)}/* + */function n$(t){const[e,n]=D.useState(t),r=D.useRef(t);return r.current=e,[e,n,r]}function Iae(){const{getState:t,getPluginState:e}=qr({autoUpdate:!0}),{doc:n,selection:r}=t(),{from:o,to:i}=or(r,n),s=e("annotation");let l=o$,a=i$;for(const u of s.annotations)(Yo(o,u.from,u.to)||Yo(i,u.from,u.to)||Yo(u.from,o,i)||Yo(u.to,o,i))&&(a===i$&&(a=[]),a.push(u.id)),l===o$&&(l=[]),l.push(u);return{selected:a,available:l}}function r$(t,e,n){const[r,o]=D.useState(e());return D.useEffect(()=>{const i=setTimeout(()=>{o(e())},t);return()=>{clearTimeout(i)}},n),r}function Lae(t,e){const[n,r]=D.useState(!0);return D.useEffect(()=>{r(!1);const o=setTimeout(()=>{r(!0)},t);return()=>{clearTimeout(o)}},e),n}function Nae(t){const[e,n]=D.useState(()=>!!localStorage.getItem(t));D.useEffect(()=>{const o=i=>{const s=i;s.detail.key===t&&n(s.detail.value)};return document.addEventListener(xk,o),()=>{document.removeEventListener(xk,o)}},[]);const r=D.useCallback(o=>{n(o),o?localStorage.setItem(t,"1"):localStorage.removeItem(t),document.dispatchEvent(new CustomEvent(xk,{detail:{key:t,value:o}}))},[]);return[e,r]}const o$=[],i$=[],xk="storeChanged";wk.displayName="abap",wk.aliases=[];function wk(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|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/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:/[,.:()]/}}pr.displayName="clike",pr.aliases=[];function pr(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:/[{}[\];(),.:]/}}la.displayName="javascript",la.aliases=["js"];function la(t){t.register(pr),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:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),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}kk.displayName="actionscript",kk.aliases=[];function kk(t){t.register(la),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}})}Ek.displayName="bash",Ek.aliases=["sh","shell"];function Ek(t){(function(e){var n="\\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",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:r,environment:{pattern:RegExp("\\$"+n),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("(\\{)"+n),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})/};e.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+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|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|java|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|sysctl|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}},r.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=o.variable[1].inside,l=0;l?^\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:/[,;:()]/}}Ck.displayName="batch",Ck.aliases=[];function Ck(t){(function(e){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},o=/"(?:[\\"]"|[^"])*"(?!")/,i=/(?:\b|-)\d+\b/;e.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:o,parameter:r,variable:n,number:i,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:o,parameter:r,variable:n,number:i,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:o,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:i,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:o,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:i,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}lp.displayName="c",lp.aliases=[];function lp(t){t.register(pr),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}Tk.displayName="clojure",Tk.aliases=[];function Tk(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:/[{}\[\](),]/}}Ak.displayName="cmake",Ak.aliases=[];function Ak(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_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\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|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:/[()>}]|\$[<{]/}}_k.displayName="cobol",_k.aliases=[];function _k(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:/[.:,()]/}}Rk.displayName="coffeescript",Rk.aliases=["coffee"];function Rk(t){t.register(la),function(e){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],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"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(t)}Mk.displayName="cpp",Mk.aliases=[];function Mk(t){t.register(lp),function(e){var n=/\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/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.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:n,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/}),e.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 r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.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:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(t)}Ok.displayName="csharp",Ok.aliases=["cs","dotnet"];function Ok(t){t.register(pr),function(e){function n(P,F){return P.replace(/<<(\d+)>>/g,function(H,W){return"(?:"+F[+W]+")"})}function r(P,F,H){return RegExp(n(P,F),H||"")}function o(P,F){for(var H=0;H>/g,function(){return"(?:"+P+")"});return P.replace(/<>/g,"[^\\s\\S]")}var i={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 s(P){return"\\b(?:"+P.trim().replace(/ /g,"|")+")\\b"}var l=s(i.typeDeclaration),a=RegExp(s(i.type+" "+i.typeDeclaration+" "+i.contextual+" "+i.other)),u=s(i.typeDeclaration+" "+i.contextual+" "+i.other),c=s(i.type+" "+i.typeDeclaration+" "+i.other),d=o(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=o(/\((?:[^()]|<>)*\)/.source,2),p=/@?\b[A-Za-z_]\w*\b/.source,f=n(/<<0>>(?:\s*<<1>>)?/.source,[p,d]),g=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,f]),m=/\[\s*(?:,\s*)*\]/.source,v=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[g,m]),y=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,h,m]),b=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[y]),x=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[b,g,m]),k={keyword:a,punctuation:/[<>()?,.:[\]]/},w=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,T=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[g]),lookbehind:!0,inside:k},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[p,x]),lookbehind:!0,inside:k},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[p]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,f]),lookbehind:!0,inside:k},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[g]),lookbehind:!0,inside:k},{pattern:r(/(\bwhere\s+)<<0>>/.source,[p]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:k},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,c,p]),inside:k}],keyword:a,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:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[p]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[p]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:k},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,g]),inside:k,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:k,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[p,d]),inside:{function:r(/^<<0>>/.source,[p]),generic:{pattern:RegExp(d),alias:"class-name",inside:k}}},"type-list":{pattern:r(/\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,[l,f,p,x,a.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[f,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:a,"class-name":{pattern:RegExp(x),greedy:!0,inside:k},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 C=S+"|"+w,O=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[C]),R=o(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[O]),2),_=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,A=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[g,R]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[_,A]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[_]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[R]),inside:e.languages.csharp},"class-name":{pattern:RegExp(g),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var E=/:[^}\r\n]+/.source,M=o(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[O]),2),I=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,E]),N=o(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[C]),2),L=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,E]);function $(P,F){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[P]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[F,E]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:$(I,M)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:$(L,N)}],char:{pattern:RegExp(w),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(t)}cp.displayName="css",cp.aliases=[];function cp(t){(function(e){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),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\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(t)}Ik.displayName="csv",Ik.aliases=[];function Ik(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}Lk.displayName="d",Lk.aliases=[];function Lk(t){t.register(pr),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"}})}Nk.displayName="dart",Nk.aliases=[];function Nk(t){t.register(pr),function(e){var n=[/\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/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(r+/[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:/\./}}}};e.languages.dart=e.languages.extend("clike",{"class-name":[o,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:o.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.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:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":o,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(t)}hu.displayName="markup",hu.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function hu(t){t.languages.markup={comment:{pattern://,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"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},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(e){e.type==="entity"&&(e.attributes.title=e.content.value.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:t.languages[r]},o.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[n,"language-"+n],inside:t.languages[n]},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}bl.displayName="markup-templating",bl.aliases=[];function bl(t){t.register(hu),function(e){function n(r,o){return"___"+r.toUpperCase()+o+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,o,i,s){if(r.language===o){var l=r.tokenStack=[];r.code=r.code.replace(i,function(a){if(typeof s=="function"&&!s(a))return a;for(var u=l.length,c;r.code.indexOf(c=n(o,u))!==-1;)++u;return l[u]=a,c}),r.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(r,o){if(r.language!==o||!r.tokenStack)return;r.grammar=e.languages[o];var i=0,s=Object.keys(r.tokenStack);function l(a){for(var u=0;u=s.length);u++){var c=a[u];if(typeof c=="string"||c.content&&typeof c.content=="string"){var d=s[i],h=r.tokenStack[d],p=typeof c=="string"?c:c.content,f=n(o,d),g=p.indexOf(f);if(g>-1){++i;var m=p.substring(0,g),v=new e.Token(o,e.tokenize(h,r.grammar),"language-"+o,h),y=p.substring(g+f.length),b=[];m&&b.push.apply(b,l([m])),b.push(v),y&&b.push.apply(b,l([y])),typeof c=="string"?a.splice.apply(a,[u,1].concat(b)):c.content=b}}else c.content&&l(c.content)}return a}l(r.tokens)}}})}(t)}$k.displayName="django",$k.aliases=["jinja2"];function $k(t){t.register(bl),function(e){e.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 n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=e.languages["markup-templating"];e.hooks.add("before-tokenize",function(o){r.buildPlaceholders(o,"django",n)}),e.hooks.add("after-tokenize",function(o){r.tokenizePlaceholders(o,"django")}),e.languages.jinja2=e.languages.django,e.hooks.add("before-tokenize",function(o){r.buildPlaceholders(o,"jinja2",n)}),e.hooks.add("after-tokenize",function(o){r.tokenizePlaceholders(o,"jinja2")})}(t)}Dk.displayName="docker",Dk.aliases=["dockerfile"];function Dk(t){(function(e){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),o=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return o}),s={pattern:RegExp(o),greedy:!0},l={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function a(u,c){return u=u.replace(//g,function(){return i}).replace(//g,function(){return r}),RegExp(u,c)}e.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:a(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:a(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:a(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:a(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:l,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:l},e.languages.dockerfile=e.languages.docker})(t)}Pk.displayName="eiffel",Pk.aliases=[];function Pk(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}zk.displayName="ejs",zk.aliases=["eta"];function zk(t){t.register(la),t.register(bl),function(e){e.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:e.languages.javascript}},e.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;e.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),e.hooks.add("after-tokenize",function(n){e.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),e.languages.eta=e.languages.ejs}(t)}Fk.displayName="elixir",Fk.aliases=[];function Fk(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(e){e.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}Bk.displayName="elm",Bk.aliases=[];function Bk(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:/[{}[\]|(),.:]/}}Hk.displayName="erlang",Hk.aliases=[];function Hk(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|begin|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:/[()[\]{}:;,.#|]|<<|>>/}}Uk.displayName="fortran",Uk.aliases=[];function Uk(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:/\(\/|\/\)|[(),;:&]/}}Wk.displayName="fsharp",Wk.aliases=[];function Wk(t){t.register(pr),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}})}Vk.displayName="git",Vk.aliases=[];function Vk(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}}jk.displayName="go",jk.aliases=[];function jk(t){t.register(pr),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"]}Gk.displayName="gradle",Gk.aliases=[];function Gk(t){t.register(pr),function(e){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.gradle=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),e.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=e.languages.gradle}(t)}Kk.displayName="graphql",Kk.aliases=[];function Kk(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(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(m){return typeof m!="string"&&m.type!=="comment"&&m.type!=="scalar"}),o=0;function i(m){return r[o+m]}function s(m,v){v=v||0;for(var y=0;y0)){var p=l(/^\{$/,/^\}$/);if(p===-1)continue;for(var f=o;f=0&&a(g,"variable-input")}}}}})}Yk.displayName="groovy",Yk.aliases=[];function Yk(t){t.register(pr),function(e){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.groovy=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,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:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=e.languages.groovy}(t)}Xk.displayName="handlebars",Xk.aliases=["hbs","mustache"];function Xk(t){t.register(bl),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;e.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),e.hooks.add("after-tokenize",function(n){e.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),e.languages.hbs=e.languages.handlebars,e.languages.mustache=e.languages.handlebars}(t)}qk.displayName="ignore",qk.aliases=["gitignore","hgignore","npmignore"];function qk(t){(function(e){e.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},e.languages.gitignore=e.languages.ignore,e.languages.hgignore=e.languages.ignore,e.languages.npmignore=e.languages.ignore})(t)}vv.displayName="java",vv.aliases=[];function vv(t){t.register(pr),function(e){var n=/\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(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(/(^|[^\w.])/.source+r+/[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:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:o.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:o.inside}],keyword:n,function:[e.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},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.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":o,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:o.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:o.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],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 n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(t)}Zk.displayName="json",Zk.aliases=["webmanifest"];function Zk(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}Jk.displayName="jsx",Jk.aliases=[];function Jk(t){t.register(la),t.register(hu),function(e){var n=e.util.clone(e.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function s(u,c){return u=u.replace(//g,function(){return r}).replace(//g,function(){return o}).replace(//g,function(){return i}),RegExp(u,c)}i=s(i).source,e.languages.jsx=e.languages.extend("markup",n),e.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=n.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var l=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(l).join(""):""},a=function(u){for(var c=[],d=0;d0&&c[c.length-1].tagName===l(h.content[0].content[1])&&c.pop():h.content[h.content.length-1].content==="/>"||c.push({tagName:l(h.content[0].content[1]),openedBraces:0}):c.length>0&&h.type==="punctuation"&&h.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&h.type==="punctuation"&&h.content==="}"?c[c.length-1].openedBraces--:p=!0),(p||typeof h=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var f=l(h);d0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(f=l(u[d-1])+f,u.splice(d-1,1),d--),u[d]=new e.Token("plain-text",f,null,f)}h.content&&typeof h.content!="string"&&a(h.content)}};e.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||a(u.tokens)})}(t)}Qk.displayName="kotlin",Qk.aliases=["kt","kts"];function Qk(t){t.register(pr),function(e){e.languages.kotlin=e.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 e.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(t)}eE.displayName="latex",eE.aliases=["context","tex"];function eE(t){(function(e){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};e.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:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,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:n,alias:"selector"},punctuation:/[[\]{}&]/},e.languages.tex=e.languages.latex,e.languages.context=e.languages.latex})(t)}tE.displayName="liquid",tE.aliases=[];function tE(t){t.register(bl),t.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"}},t.hooks.add("before-tokenize",function(e){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;t.languages["markup-templating"].buildPlaceholders(e,"liquid",n,function(o){var i=/^\{%-?\s*(\w+)/.exec(o);if(i){var s=i[1];if(s==="raw"&&!r)return r=!0,!0;if(s==="endraw")return r=!1,!0}return!r})}),t.hooks.add("after-tokenize",function(e){t.languages["markup-templating"].tokenizePlaceholders(e,"liquid")})}nE.displayName="lisp",nE.aliases=["elisp","emacs","emacs-lisp"];function nE(t){(function(e){function n(f){return RegExp(/(\()/.source+"(?:"+f+")"+/(?=[\s\)])/.source)}function r(f){return RegExp(/([\s([])/.source+"(?:"+f+")"+/(?=[\s)])/.source)}var o=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,i="&"+o,s="(\\()",l="(?=\\))",a="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,c={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+o+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+o),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+o),alias:"property"},splice:{pattern:RegExp(",@?"+o),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+a),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+a),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+o),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(o)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+o+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+o),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+o+"(?:\\s+&?"+o+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+o),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},d={"lisp-marker":RegExp(i),varform:{pattern:RegExp(/\(/.source+o+/\s+(?=\S)/.source+u+/\)/.source),inside:c},argument:{pattern:RegExp(/(^|[\s(])/.source+o),lookbehind:!0,alias:"variable"},rest:c},h="\\S+(?:\\s+\\S+)*",p={pattern:RegExp(s+u+l),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+h),inside:d},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+h),inside:d},keys:{pattern:RegExp("&key\\s+"+h+"(?:\\s+&allow-other-keys)?"),inside:d},argument:{pattern:RegExp(o),alias:"variable"},punctuation:/[()]/}};c.lambda.inside.arguments=p,c.defun.inside.arguments=e.util.clone(p),c.defun.inside.arguments.inside.sublist=p,e.languages.lisp=c,e.languages.elisp=c,e.languages.emacs=c,e.languages["emacs-lisp"]=c})(t)}rE.displayName="lua",rE.aliases=[];function rE(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:/[\[\](){},;]|\.+|:+/}}oE.displayName="makefile",oE.aliases=[];function oE(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:/[:;(){}]/}}iE.displayName="markdown",iE.aliases=["md"];function iE(t){t.register(hu),function(e){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(l){return l=l.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.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:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+s+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+s+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:e.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:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\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:r(/!?\[(?:(?!\]))+\](?:\([^\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(l){["url","bold","italic","strike","code-snippet"].forEach(function(a){l!==a&&(e.languages.markdown[l].inside.content.inside[a]=e.languages.markdown[a])})}),e.hooks.add("after-tokenize",function(l){if(l.language!=="markdown"&&l.language!=="md")return;function a(u){if(!(!u||typeof u=="string"))for(var c=0,d=u.length;c]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete t.languages.objectivec["class-name"],t.languages.objc=t.languages.objectivec}aE.displayName="perl",aE.aliases=[];function aE(t){(function(e){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;e.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,n].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,n].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,n+/\s*/.source+n].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)}lE.displayName="php",lE.aliases=[];function lE(t){t.register(bl),function(e){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{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,i=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,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|never|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|never|new|or|parent|print|private|protected|public|readonly|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:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:i,punctuation:s};var l={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},a=[{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:l}},{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:l}}];e.languages.insertBefore("php","variable",{string:a,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:a,"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:r,number:o,operator:i,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var c=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;e.languages["markup-templating"].buildPlaceholders(u,"php",c)}}),e.hooks.add("after-tokenize",function(u){e.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(t)}cE.displayName="sql",cE.aliases=[];function cE(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:/[;[\]()`,.]/}}uE.displayName="plsql",uE.aliases=[];function uE(t){t.register(cE),t.languages.plsql=t.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:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),t.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}dE.displayName="powershell",dE.aliases=[];function dE(t){(function(e){var n=e.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:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(t)}hE.displayName="protobuf",hE.aliases=[];function hE(t){t.register(pr),function(e){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;e.languages.protobuf=e.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}),e.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:n}},builtin:n,"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)}pE.displayName="python",pE.aliases=["py"];function pE(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}fE.displayName="regex",fE.aliases=[];function fE(t){(function(e){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?: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]|.)/,o={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},i={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+r.source+")",l=RegExp(s+"-"+s),a={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.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:l,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":i,escape:r}},"special-escape":n,"char-set":o,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":a}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var r="(?:"+[/([^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("|")+")",o=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+o),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+o+/(?=:(?!:))/.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:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,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:n,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+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.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)/}),e.languages.rb=e.languages.ruby}(t)}mE.displayName="rust",mE.aliases=[];function mE(t){(function(e){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(t)}vE.displayName="sass",vE.aliases=[];function vE(t){t.register(cp),function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.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)}yE.displayName="scala",yE.aliases=[];function yE(t){t.register(vv),t.languages.scala=t.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|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|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*/}),t.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:t.languages.scala}}},string:/[\s\S]+/}}}),delete t.languages.scala["class-name"],delete t.languages.scala.function,delete t.languages.scala.constant}bE.displayName="scss",bE.aliases=[];function bE(t){t.register(cp),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}xE.displayName="smalltalk",xE.aliases=[];function xE(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:/[.;:?\[\](){}]/}}wE.displayName="swift",wE.aliases=[];function wE(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(e){e.inside.interpolation.inside=t.languages.swift})}kE.displayName="toml",kE.aliases=[];function kE(t){(function(e){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(o){return o.replace(/__/g,function(){return n})}e.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\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)}EE.displayName="typescript",EE.aliases=["ts"];function EE(t){t.register(la),function(e){e.languages.typescript=e.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/}),e.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 e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var n=e.languages.extend("typescript",{});delete n["class-name"],e.languages.typescript["class-name"].inside=n,e.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:n}}}}),e.languages.ts=e.languages.typescript}(t)}SE.displayName="unrealscript",SE.aliases=["uc","uscript"];function SE(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}CE.displayName="yaml",CE.aliases=["yml"];function CE(t){(function(e){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",i=/(?:[^\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}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(a,u){u=(u||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return a});return RegExp(c,u)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return"(?:"+i+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\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:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(s),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(t)}TE.displayName="zig",TE.aliases=[];function TE(t){(function(e){function n(u){return function(){return u}}var r=/\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/,o="\\b(?!"+r.source+")(?!\\d)\\w+\\b",i=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(i)),l=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(o)),a="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+l+")+";e.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,n(a)).replace(//g,n(i))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(a)).replace(//g,n(i))),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:r,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:/[.:,;(){}[\]]/},e.languages.zig["class-name"].forEach(function(u){u.inside===null&&(u.inside=e.languages.zig)})})(t)}/* * Squidex Headless CMS * * @license * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. - */const hae=[vk,yk,bk,xk,wk,sp,kk,Ek,Sk,Ck,Tk,Ak,ap,_k,Rk,Mk,Ok,Ik,Lk,Nk,$k,Dk,Pk,zk,Fk,Bk,Hk,Uk,Wk,Vk,jk,Gk,gv,aa,Kk,Yk,Xk,qk,Zk,Jk,Qk,eE,tE,pu,nE,rE,oE,sE,aE,lE,cE,uE,dE,hE,pE,fE,gE,mE,vE,yE,bE,xE,wE,kE];/* + */const $ae=[wk,kk,Ek,Sk,Ck,lp,Tk,Ak,_k,Rk,Mk,Ok,cp,Ik,Lk,Nk,$k,Dk,Pk,zk,Fk,Bk,Hk,Uk,Wk,Vk,jk,Gk,Kk,Yk,Xk,qk,vv,la,Zk,Jk,Qk,eE,tE,nE,rE,oE,iE,hu,sE,aE,lE,uE,dE,hE,pE,fE,gE,mE,vE,yE,bE,xE,wE,kE,EE,SE,CE,TE];/* * Squidex Headless CMS * * @license * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. - */function pae(t,e,n){if(!t)return;const r=`${e}/api/assets/${n}/`;if(t.startsWith(r)){const o=t.substring(r.length).split(/[/?]+/);return o.length<1?null:{id:o[0]}}return null}function fae(t,e,n){if(!t)return;const r=`${e}/api/content/${n}/`;if(t.startsWith(r)){const o=t.substring(r.length).split(/[/?]+/);return o.length<2?null:{schemaName:o[0],id:o[1]}}return null}function EE(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let bl=EE();function GN(t){bl=t}const KN=/[&<>"']/,gae=new RegExp(KN.source,"g"),YN=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,mae=new RegExp(YN.source,"g"),vae={"&":"&","<":"<",">":">",'"':""","'":"'"},XN=t=>vae[t];function no(t,e){if(e){if(KN.test(t))return t.replace(gae,XN)}else if(YN.test(t))return t.replace(mae,XN);return t}const yae=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function bae(t){return t.replace(yae,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const xae=/(^|[^\[])\^/g;function gt(t,e){let n=typeof t=="string"?t:t.source;e=e||"";const r={replace:(o,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(xae,"$1"),n=n.replace(o,s),r},getRegex:()=>new RegExp(n,e)};return r}function qN(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const lp={exec:()=>null};function ZN(t,e){const n=t.replace(/\|/g,(i,s,l)=>{let a=!1,u=s;for(;--u>=0&&l[u]==="\\";)a=!a;return a?"|":" |"}),r=n.split(/ \|/);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length"']/,zae=new RegExp(a$.source,"g"),l$=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Fae=new RegExp(l$.source,"g"),Bae={"&":"&","<":"<",">":">",'"':""","'":"'"},c$=t=>Bae[t];function no(t,e){if(e){if(a$.test(t))return t.replace(zae,c$)}else if(l$.test(t))return t.replace(Fae,c$);return t}const Hae=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Uae(t){return t.replace(Hae,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const Wae=/(^|[^\[])\^/g;function gt(t,e){let n=typeof t=="string"?t:t.source;e=e||"";const r={replace:(o,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Wae,"$1"),n=n.replace(o,s),r},getRegex:()=>new RegExp(n,e)};return r}function u$(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const up={exec:()=>null};function d$(t,e){const n=t.replace(/\|/g,(i,s,l)=>{let a=!1,u=s;for(;--u>=0&&l[u]==="\\";)a=!a;return a?"|":" |"}),r=n.split(/ \|/);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length{const i=o.match(/^\s+/);if(i===null)return o;const[s]=i;return s.length>=r.length?o.slice(r.length):o}).join(` -`)}class vv{constructor(e){dt(this,"options");dt(this,"rules");dt(this,"lexer");this.options=e||bl}space(e){const n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){const n=this.rules.block.code.exec(e);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:mv(r,` -`)}}}fences(e){const n=this.rules.block.fences.exec(e);if(n){const r=n[0],o=kae(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:o}}}heading(e){const n=this.rules.block.heading.exec(e);if(n){let r=n[2].trim();if(/#$/.test(r)){const o=mv(r,"#");(this.options.pedantic||!o||/ $/.test(o))&&(r=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:n[0]}}blockquote(e){const n=this.rules.block.blockquote.exec(e);if(n){const r=mv(n[0].replace(/^ *>[ \t]?/gm,""),` +`)}class bv{constructor(e){ht(this,"options");ht(this,"rules");ht(this,"lexer");this.options=e||xl}space(e){const n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){const n=this.rules.block.code.exec(e);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:yv(r,` +`)}}}fences(e){const n=this.rules.block.fences.exec(e);if(n){const r=n[0],o=jae(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:o}}}heading(e){const n=this.rules.block.heading.exec(e);if(n){let r=n[2].trim();if(/#$/.test(r)){const o=yv(r,"#");(this.options.pedantic||!o||/ $/.test(o))&&(r=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:n[0]}}blockquote(e){const n=this.rules.block.blockquote.exec(e);if(n){const r=yv(n[0].replace(/^ *>[ \t]?/gm,""),` `),o=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(r);return this.lexer.state.top=o,{type:"blockquote",raw:n[0],tokens:i,text:r}}}list(e){let n=this.rules.block.list.exec(e);if(n){let r=n[1].trim();const o=r.length>1,i={type:"list",raw:"",ordered:o,start:o?+r.slice(0,-1):"",loose:!1,items:[]};r=o?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=o?r:"[*+-]");const s=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let l="",a="",u=!1;for(;e;){let c=!1;if(!(n=s.exec(e))||this.rules.block.hr.test(e))break;l=n[0],e=e.substring(l.length);let d=n[2].split(` `,1)[0].replace(/^\t+/,v=>" ".repeat(3*v.length)),h=e.split(` `,1)[0],p=0;this.options.pedantic?(p=2,a=d.trimStart()):(p=n[2].search(/[^ ]/),p=p>4?1:p,a=d.slice(p),p+=n[1].length);let f=!1;if(!d&&/^ *$/.test(h)&&(l+=h+` @@ -5041,10 +5047,10 @@ ${t} `,1)[0];if(h=k,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),b.test(h)||x.test(h)||v.test(h)||y.test(e))break;if(h.search(/[^ ]/)>=p||!h.trim())a+=` `+h.slice(p);else{if(f||d.search(/[^ ]/)>=4||b.test(d)||x.test(d)||y.test(d))break;a+=` `+h}!f&&!h.trim()&&(f=!0),l+=k+` -`,e=e.substring(k.length+1),d=h.slice(p)}}i.loose||(u?i.loose=!0:/\n *\n *$/.test(l)&&(u=!0));let g=null,m;this.options.gfm&&(g=/^\[[ xX]\] /.exec(a),g&&(m=g[0]!=="[ ] ",a=a.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:l,task:!!g,checked:m,loose:!1,text:a,tokens:[]}),i.raw+=l}i.items[i.items.length-1].raw=l.trimEnd(),i.items[i.items.length-1].text=a.trimEnd(),i.raw=i.raw.trimEnd();for(let c=0;cp.type==="space"),h=d.length>0&&d.some(p=>/\n.*\n/.test(p.raw));i.loose=h}if(i.loose)for(let c=0;c$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:o,title:i}}}table(e){const n=this.rules.block.table.exec(e);if(!n||!/[:|]/.test(n[2]))return;const r=ZN(n[1]),o=n[2].replace(/^\||\| *$/g,"").split("|"),i=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(` -`):[],s={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===o.length){for(const l of o)/^ *-+: *$/.test(l)?s.align.push("right"):/^ *:-+: *$/.test(l)?s.align.push("center"):/^ *:-+ *$/.test(l)?s.align.push("left"):s.align.push(null);for(const l of r)s.header.push({text:l,tokens:this.lexer.inline(l)});for(const l of i)s.rows.push(ZN(l,s.header.length).map(a=>({text:a,tokens:this.lexer.inline(a)})));return s}}lheading(e){const n=this.rules.block.lheading.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(e){const n=this.rules.block.paragraph.exec(e);if(n){const r=n[1].charAt(n[1].length-1)===` -`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){const n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:no(n[1])}}tag(e){const n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&/^
    /i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(e){const n=this.rules.inline.link.exec(e);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const s=mv(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=wae(n[2],"()");if(s>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+s;n[2]=n[2].substring(0,s),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let o=n[2],i="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);s&&(o=s[1],i=s[3])}else i=n[3]?n[3].slice(1,-1):"";return o=o.trim(),/^$/.test(r)?o=o.slice(1):o=o.slice(1,-1)),JN(n,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(e,n){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const o=(r[2]||r[1]).replace(/\s+/g," "),i=n[o.toLowerCase()];if(!i){const s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return JN(r,i,r[0],this.lexer)}}emStrong(e,n,r=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(!o||o[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(o[1]||o[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const s=[...o[0]].length-1;let l,a,u=s,c=0;const d=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*e.length+s);(o=d.exec(n))!=null;){if(l=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!l)continue;if(a=[...l].length,o[3]||o[4]){u+=a;continue}else if((o[5]||o[6])&&s%3&&!((s+a)%3)){c+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u+c);const h=[...o[0]][0].length,p=e.slice(0,s+o.index+h+a);if(Math.min(s,a)%2){const g=p.slice(1,-1);return{type:"em",raw:p,text:g,tokens:this.lexer.inlineTokens(g)}}const f=p.slice(2,-2);return{type:"strong",raw:p,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){const n=this.rules.inline.code.exec(e);if(n){let r=n[2].replace(/\n/g," ");const o=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return o&&i&&(r=r.substring(1,r.length-1)),r=no(r,!0),{type:"codespan",raw:n[0],text:r}}}br(e){const n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e){const n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(e){const n=this.rules.inline.autolink.exec(e);if(n){let r,o;return n[2]==="@"?(r=no(n[1]),o="mailto:"+r):(r=no(n[1]),o=r),{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let n;if(n=this.rules.inline.url.exec(e)){let o,i;if(n[2]==="@")o=no(n[0]),i="mailto:"+o;else{let s;do s=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(s!==n[0]);o=no(n[0]),n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e){const n=this.rules.inline.text.exec(e);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=no(n[0]),{type:"text",raw:n[0],text:r}}}}const Eae=/^(?: *(?:\n|$))+/,Sae=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Cae=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,cp=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Tae=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,QN=/(?:[*+-]|\d{1,9}[.)])/,e$=gt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,QN).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),SE=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Aae=/^[^\n]+/,CE=/(?!\s*\])(?:\\.|[^\[\]\\])+/,_ae=gt(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",CE).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Rae=gt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,QN).getRegex(),yv="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",TE=/|$))/,Mae=gt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",TE).replace("tag",yv).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),t$=gt(SE).replace("hr",cp).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",yv).getRegex(),AE={blockquote:gt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",t$).getRegex(),code:Sae,def:_ae,fences:Cae,heading:Tae,hr:cp,html:Mae,lheading:e$,list:Rae,newline:Eae,paragraph:t$,table:lp,text:Aae},n$=gt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",cp).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",yv).getRegex(),Oae={...AE,table:n$,paragraph:gt(SE).replace("hr",cp).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",n$).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",yv).getRegex()},Iae={...AE,html:gt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",TE).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:lp,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:gt(SE).replace("hr",cp).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",e$).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},r$=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Lae=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,o$=/^( {2,}|\\)\n(?!\s*$)/,Nae=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,Pae=gt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,up).getRegex(),zae=gt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,up).getRegex(),Fae=gt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,up).getRegex(),Bae=gt(/\\([punct])/,"gu").replace(/punct/g,up).getRegex(),Hae=gt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Uae=gt(TE).replace("(?:-->|$)","-->").getRegex(),Wae=gt("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Uae).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),bv=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Vae=gt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",bv).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),i$=gt(/^!?\[(label)\]\[(ref)\]/).replace("label",bv).replace("ref",CE).getRegex(),s$=gt(/^!?\[(ref)\](?:\[\])?/).replace("ref",CE).getRegex(),jae=gt("reflink|nolink(?!\\()","g").replace("reflink",i$).replace("nolink",s$).getRegex(),_E={_backpedal:lp,anyPunctuation:Bae,autolink:Hae,blockSkip:Dae,br:o$,code:Lae,del:lp,emStrongLDelim:Pae,emStrongRDelimAst:zae,emStrongRDelimUnd:Fae,escape:r$,link:Vae,nolink:s$,punctuation:$ae,reflink:i$,reflinkSearch:jae,tag:Wae,text:Nae,url:lp},Gae={..._E,link:gt(/^!?\[(label)\]\((.*?)\)/).replace("label",bv).getRegex(),reflink:gt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",bv).getRegex()},RE={..._E,escape:gt(r$).replace("])","~|])").getRegex(),url:gt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\p.type==="space"),h=d.length>0&&d.some(p=>/\n.*\n/.test(p.raw));i.loose=h}if(i.loose)for(let c=0;c$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:o,title:i}}}table(e){const n=this.rules.block.table.exec(e);if(!n||!/[:|]/.test(n[2]))return;const r=d$(n[1]),o=n[2].replace(/^\||\| *$/g,"").split("|"),i=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(` +`):[],s={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===o.length){for(const l of o)/^ *-+: *$/.test(l)?s.align.push("right"):/^ *:-+: *$/.test(l)?s.align.push("center"):/^ *:-+ *$/.test(l)?s.align.push("left"):s.align.push(null);for(const l of r)s.header.push({text:l,tokens:this.lexer.inline(l)});for(const l of i)s.rows.push(d$(l,s.header.length).map(a=>({text:a,tokens:this.lexer.inline(a)})));return s}}lheading(e){const n=this.rules.block.lheading.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(e){const n=this.rules.block.paragraph.exec(e);if(n){const r=n[1].charAt(n[1].length-1)===` +`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){const n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:no(n[1])}}tag(e){const n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&/^/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(e){const n=this.rules.inline.link.exec(e);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const s=yv(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=Vae(n[2],"()");if(s>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+s;n[2]=n[2].substring(0,s),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let o=n[2],i="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);s&&(o=s[1],i=s[3])}else i=n[3]?n[3].slice(1,-1):"";return o=o.trim(),/^$/.test(r)?o=o.slice(1):o=o.slice(1,-1)),h$(n,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(e,n){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const o=(r[2]||r[1]).replace(/\s+/g," "),i=n[o.toLowerCase()];if(!i){const s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return h$(r,i,r[0],this.lexer)}}emStrong(e,n,r=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(!o||o[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(o[1]||o[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const s=[...o[0]].length-1;let l,a,u=s,c=0;const d=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*e.length+s);(o=d.exec(n))!=null;){if(l=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!l)continue;if(a=[...l].length,o[3]||o[4]){u+=a;continue}else if((o[5]||o[6])&&s%3&&!((s+a)%3)){c+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u+c);const h=[...o[0]][0].length,p=e.slice(0,s+o.index+h+a);if(Math.min(s,a)%2){const g=p.slice(1,-1);return{type:"em",raw:p,text:g,tokens:this.lexer.inlineTokens(g)}}const f=p.slice(2,-2);return{type:"strong",raw:p,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){const n=this.rules.inline.code.exec(e);if(n){let r=n[2].replace(/\n/g," ");const o=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return o&&i&&(r=r.substring(1,r.length-1)),r=no(r,!0),{type:"codespan",raw:n[0],text:r}}}br(e){const n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e){const n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(e){const n=this.rules.inline.autolink.exec(e);if(n){let r,o;return n[2]==="@"?(r=no(n[1]),o="mailto:"+r):(r=no(n[1]),o=r),{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let n;if(n=this.rules.inline.url.exec(e)){let o,i;if(n[2]==="@")o=no(n[0]),i="mailto:"+o;else{let s;do s=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(s!==n[0]);o=no(n[0]),n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e){const n=this.rules.inline.text.exec(e);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=no(n[0]),{type:"text",raw:n[0],text:r}}}}const Gae=/^(?: *(?:\n|$))+/,Kae=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Yae=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,dp=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Xae=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,p$=/(?:[*+-]|\d{1,9}[.)])/,f$=gt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,p$).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),_E=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,qae=/^[^\n]+/,RE=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Zae=gt(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",RE).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Jae=gt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,p$).getRegex(),xv="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ME=/|$))/,Qae=gt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",ME).replace("tag",xv).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),g$=gt(_E).replace("hr",dp).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",xv).getRegex(),OE={blockquote:gt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",g$).getRegex(),code:Kae,def:Zae,fences:Yae,heading:Xae,hr:dp,html:Qae,lheading:f$,list:Jae,newline:Gae,paragraph:g$,table:up,text:qae},m$=gt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",dp).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",xv).getRegex(),ele={...OE,table:m$,paragraph:gt(_E).replace("hr",dp).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",m$).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",xv).getRegex()},tle={...OE,html:gt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ME).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:up,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:gt(_E).replace("hr",dp).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",f$).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},v$=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,nle=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,y$=/^( {2,}|\\)\n(?!\s*$)/,rle=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,sle=gt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,hp).getRegex(),ale=gt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,hp).getRegex(),lle=gt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,hp).getRegex(),cle=gt(/\\([punct])/,"gu").replace(/punct/g,hp).getRegex(),ule=gt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),dle=gt(ME).replace("(?:-->|$)","-->").getRegex(),hle=gt("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",dle).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),wv=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ple=gt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",wv).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),b$=gt(/^!?\[(label)\]\[(ref)\]/).replace("label",wv).replace("ref",RE).getRegex(),x$=gt(/^!?\[(ref)\](?:\[\])?/).replace("ref",RE).getRegex(),fle=gt("reflink|nolink(?!\\()","g").replace("reflink",b$).replace("nolink",x$).getRegex(),IE={_backpedal:up,anyPunctuation:cle,autolink:ule,blockSkip:ile,br:y$,code:nle,del:up,emStrongLDelim:sle,emStrongRDelimAst:ale,emStrongRDelimUnd:lle,escape:v$,link:ple,nolink:x$,punctuation:ole,reflink:b$,reflinkSearch:fle,tag:hle,text:rle,url:up},gle={...IE,link:gt(/^!?\[(label)\]\((.*?)\)/).replace("label",wv).getRegex(),reflink:gt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",wv).getRegex()},LE={...IE,escape:gt(v$).replace("])","~|])").getRegex(),url:gt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\a+" ".repeat(u.length));let r,o,i,s;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(r=l.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+=` `:n.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),o=n[n.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=` `+r.raw,o.text+=` @@ -5054,7 +5060,7 @@ ${t} `+r.raw,o.text+=` `+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(r),s=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),o=n[n.length-1],o&&o.type==="text"?(o.raw+=` `+r.raw,o.text+=` -`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(r);continue}if(e){const l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let r,o,i,s=e,l,a,u;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)c.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,l.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(a||(u=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(r=c.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),o=n[n.length-1],o&&r.type==="text"&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length),o=n[n.length-1],o&&r.type==="text"&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(e,s,u)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),n.push(r);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const d=e.slice(1);let h;this.options.extensions.startInline.forEach(p=>{h=p.call({lexer:this},d),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(i=e.substring(0,c+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),a=!0,o=n[n.length-1],o&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(e){const c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class wv{constructor(e){dt(this,"options");this.options=e||bl}code(e,n,r){var i;const o=(i=(n||"").match(/^\S*/))==null?void 0:i[0];return e=e.replace(/\n$/,"")+` +`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(r);continue}if(e){const l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let r,o,i,s=e,l,a,u;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)c.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,l.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(a||(u=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(r=c.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),o=n[n.length-1],o&&r.type==="text"&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length),o=n[n.length-1],o&&r.type==="text"&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(e,s,u)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),n.push(r);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const d=e.slice(1);let h;this.options.extensions.startInline.forEach(p=>{h=p.call({lexer:this},d),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(i=e.substring(0,c+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),a=!0,o=n[n.length-1],o&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(e){const c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class Ev{constructor(e){ht(this,"options");this.options=e||xl}code(e,n,r){var i;const o=(i=(n||"").match(/^\S*/))==null?void 0:i[0];return e=e.replace(/\n$/,"")+` `,o?'
    '+(r?e:no(e,!0))+`
    `:"
    "+(r?e:no(e,!0))+`
    `}blockquote(e){return`
    @@ -5072,58 +5078,58 @@ ${e}
    `}tablerow(e){return` ${e} `}tablecell(e,n){const r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+e+` -`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return"
    "}del(e){return`${e}`}link(e,n,r){const o=qN(e);if(o===null)return r;e=o;let i='
    ",i}image(e,n,r){const o=qN(e);if(o===null)return r;e=o;let i=`${r}0&&h.tokens[0].type==="paragraph"?(h.tokens[0].text=m+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&h.tokens[0].tokens[0].type==="text"&&(h.tokens[0].tokens[0].text=m+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:m+" "}):g+=m+" "}g+=this.parse(h.tokens,u),c+=this.renderer.listitem(g,f,!!p)}r+=this.renderer.list(c,l,a);continue}case"html":{const s=i;r+=this.renderer.html(s.text,s.block);continue}case"paragraph":{const s=i;r+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=i,l=s.tokens?this.parseInline(s.tokens):s.text;for(;o+1{const u=l[a].flat(1/0);r=r.concat(this.walkTokens(u,n))}):l.tokens&&(r=r.concat(this.walkTokens(l.tokens,n)))}}return r}use(...e){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const o={...r};if(o.async=this.defaults.async||o.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const s=n.renderers[i.name];s?n.renderers[i.name]=function(...l){let a=i.renderer.apply(this,l);return a===!1&&(a=s.apply(this,l)),a}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=n[i.level];s?s.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),o.extensions=n),r.renderer){const i=this.defaults.renderer||new wv(this.defaults);for(const s in r.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(s==="options")continue;const l=s,a=r.renderer[l],u=i[l];i[l]=(...c)=>{let d=a.apply(i,c);return d===!1&&(d=u.apply(i,c)),d||""}}o.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new vv(this.defaults);for(const s in r.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const l=s,a=r.tokenizer[l],u=i[l];i[l]=(...c)=>{let d=a.apply(i,c);return d===!1&&(d=u.apply(i,c)),d}}o.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new hp;for(const s in r.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(s==="options")continue;const l=s,a=r.hooks[l],u=i[l];hp.passThroughHooks.has(s)?i[l]=c=>{if(this.defaults.async)return Promise.resolve(a.call(i,c)).then(h=>u.call(i,h));const d=a.call(i,c);return u.call(i,d)}:i[l]=(...c)=>{let d=a.apply(i,c);return d===!1&&(d=u.apply(i,c)),d}}o.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,s=r.walkTokens;o.walkTokens=function(l){let a=[];return a.push(s.call(this,l)),i&&(a=a.concat(i.call(this,l))),a}}this.defaults={...this.defaults,...o}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,n){return yi.lex(e,n??this.defaults)}parser(e,n){return bi.parse(e,n??this.defaults)}}mp=new WeakSet,nS=function(e,n){return(r,o)=>{const i={...o},s={...this.defaults,...i};this.defaults.async===!0&&i.async===!1&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);const l=Uv(this,Mv,rD).call(this,!!s.silent,!!s.async);if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(r):r).then(a=>e(a,s)).then(a=>s.hooks?s.hooks.processAllTokens(a):a).then(a=>s.walkTokens?Promise.all(this.walkTokens(a,s.walkTokens)).then(()=>a):a).then(a=>n(a,s)).then(a=>s.hooks?s.hooks.postprocess(a):a).catch(l);try{s.hooks&&(r=s.hooks.preprocess(r));let a=e(r,s);s.hooks&&(a=s.hooks.processAllTokens(a)),s.walkTokens&&this.walkTokens(a,s.walkTokens);let u=n(a,s);return s.hooks&&(u=s.hooks.postprocess(u)),u}catch(a){return l(a)}}},Mv=new WeakSet,rD=function(e,n){return r=>{if(r.message+=` -Please report this to https://github.com/markedjs/marked.`,e){const o="

    An error occurred:

    "+no(r.message+"",!0)+"
    ";return n?Promise.resolve(o):o}if(n)return Promise.reject(r);throw r}};const xl=new Yae;function it(t,e){return xl.parse(t,e)}it.options=it.setOptions=function(t){return xl.setOptions(t),it.defaults=xl.defaults,GN(it.defaults),it},it.getDefaults=EE,it.defaults=bl,it.use=function(...t){return xl.use(...t),it.defaults=xl.defaults,GN(it.defaults),it},it.walkTokens=function(t,e){return xl.walkTokens(t,e)},it.parseInline=xl.parseInline,it.Parser=bi,it.parser=bi.parse,it.Renderer=wv,it.TextRenderer=ME,it.Lexer=yi,it.lexer=yi.lex,it.Tokenizer=vv,it.Hooks=hp,it.parse=it,it.options,it.setOptions,it.use,it.walkTokens,it.parseInline,bi.parse,yi.lex;/* +`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return"
    "}del(e){return`${e}`}link(e,n,r){const o=u$(e);if(o===null)return r;e=o;let i='
    ",i}image(e,n,r){const o=u$(e);if(o===null)return r;e=o;let i=`${r}0&&h.tokens[0].type==="paragraph"?(h.tokens[0].text=m+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&h.tokens[0].tokens[0].type==="text"&&(h.tokens[0].tokens[0].text=m+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:m+" "}):g+=m+" "}g+=this.parse(h.tokens,u),c+=this.renderer.listitem(g,f,!!p)}r+=this.renderer.list(c,l,a);continue}case"html":{const s=i;r+=this.renderer.html(s.text,s.block);continue}case"paragraph":{const s=i;r+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=i,l=s.tokens?this.parseInline(s.tokens):s.text;for(;o+1{const u=l[a].flat(1/0);r=r.concat(this.walkTokens(u,n))}):l.tokens&&(r=r.concat(this.walkTokens(l.tokens,n)))}}return r}use(...e){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const o={...r};if(o.async=this.defaults.async||o.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const s=n.renderers[i.name];s?n.renderers[i.name]=function(...l){let a=i.renderer.apply(this,l);return a===!1&&(a=s.apply(this,l)),a}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=n[i.level];s?s.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),o.extensions=n),r.renderer){const i=this.defaults.renderer||new Ev(this.defaults);for(const s in r.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(s==="options")continue;const l=s,a=r.renderer[l],u=i[l];i[l]=(...c)=>{let d=a.apply(i,c);return d===!1&&(d=u.apply(i,c)),d||""}}o.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new bv(this.defaults);for(const s in r.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const l=s,a=r.tokenizer[l],u=i[l];i[l]=(...c)=>{let d=a.apply(i,c);return d===!1&&(d=u.apply(i,c)),d}}o.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new fp;for(const s in r.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(s==="options")continue;const l=s,a=r.hooks[l],u=i[l];fp.passThroughHooks.has(s)?i[l]=c=>{if(this.defaults.async)return Promise.resolve(a.call(i,c)).then(h=>u.call(i,h));const d=a.call(i,c);return u.call(i,d)}:i[l]=(...c)=>{let d=a.apply(i,c);return d===!1&&(d=u.apply(i,c)),d}}o.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,s=r.walkTokens;o.walkTokens=function(l){let a=[];return a.push(s.call(this,l)),i&&(a=a.concat(i.call(this,l))),a}}this.defaults={...this.defaults,...o}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,n){return vi.lex(e,n??this.defaults)}parser(e,n){return yi.parse(e,n??this.defaults)}}yp=new WeakSet,sS=function(e,n){return(r,o)=>{const i={...o},s={...this.defaults,...i};this.defaults.async===!0&&i.async===!1&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);const l=Vv(this,Iv,vD).call(this,!!s.silent,!!s.async);if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(r):r).then(a=>e(a,s)).then(a=>s.hooks?s.hooks.processAllTokens(a):a).then(a=>s.walkTokens?Promise.all(this.walkTokens(a,s.walkTokens)).then(()=>a):a).then(a=>n(a,s)).then(a=>s.hooks?s.hooks.postprocess(a):a).catch(l);try{s.hooks&&(r=s.hooks.preprocess(r));let a=e(r,s);s.hooks&&(a=s.hooks.processAllTokens(a)),s.walkTokens&&this.walkTokens(a,s.walkTokens);let u=n(a,s);return s.hooks&&(u=s.hooks.postprocess(u)),u}catch(a){return l(a)}}},Iv=new WeakSet,vD=function(e,n){return r=>{if(r.message+=` +Please report this to https://github.com/markedjs/marked.`,e){const o="

    An error occurred:

    "+no(r.message+"",!0)+"
    ";return n?Promise.resolve(o):o}if(n)return Promise.reject(r);throw r}};const wl=new vle;function it(t,e){return wl.parse(t,e)}it.options=it.setOptions=function(t){return wl.setOptions(t),it.defaults=wl.defaults,s$(it.defaults),it},it.getDefaults=AE,it.defaults=xl,it.use=function(...t){return wl.use(...t),it.defaults=wl.defaults,s$(it.defaults),it},it.walkTokens=function(t,e){return wl.walkTokens(t,e)},it.parseInline=wl.parseInline,it.Parser=yi,it.parser=yi.parse,it.Renderer=Ev,it.TextRenderer=NE,it.Lexer=vi,it.lexer=vi.lex,it.Tokenizer=bv,it.Hooks=fp,it.parse=it,it.options,it.setOptions,it.use,it.walkTokens,it.parseInline,yi.parse,vi.lex;/* * Squidex Headless CMS * * @license * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. - */const a$=/[&<>"']/,Xae=new RegExp(a$.source,"g"),l$=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,qae=new RegExp(l$.source,"g"),Zae={"&":"&","<":"<",">":">",'"':""","'":"'"},c$=t=>Zae[t];function u$(t,e){if(e){if(a$.test(t))return t.replace(Xae,c$)}else if(l$.test(t))return t.replace(qae,c$);return t}/* + */const w$=/[&<>"']/,yle=new RegExp(w$.source,"g"),k$=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ble=new RegExp(k$.source,"g"),xle={"&":"&","<":"<",">":">",'"':""","'":"'"},E$=t=>xle[t];function S$(t,e){if(e){if(w$.test(t))return t.replace(yle,E$)}else if(k$.test(t))return t.replace(ble,E$);return t}/* * Squidex Headless CMS * * @license * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. - */const Jae=Ap(rp),kv=new Jae({hr:"---",codeBlockStyle:"fenced",headingStyle:"atx",emDelimiter:"*"});kv.addRule("link2",{filter:(t,e)=>e.linkStyle==="inlined"&&t.nodeName==="A"&&!!t.getAttribute("href"),replacement:function(t,e){const n=e,r=n.getAttribute("href");if(!r)return"";const o=OE(n.getAttribute("title"));return o?`[${t}](${r} "${o}")`:`[${t}](${r})`}}),kv.addRule("img2",{filter:"img",replacement:(t,e)=>{const n=e,r=n.getAttribute("src")||"";if(!r)return"";const o=OE(n.getAttribute("alt")),i=OE(n.getAttribute("title"));return i?`![${o}](${r} "${i}")`:`![${o}](${r})`}});const Qae="data-code-block-language";kv.addRule("code2",{filter:(t,e)=>e.codeBlockStyle==="fenced"&&t.nodeName==="PRE"&&t.firstChild!==null&&t.firstChild.nodeName==="CODE",replacement:function(t,e,n){const r=e.firstChild.getAttribute(Qae),o=e.firstChild.textContent,i=n.fence.charAt(0);let s=3;const l=new RegExp("^"+i+"{3,}","gm");let a;for(;a=l.exec(o);)a[0].length>=s&&(s=a[0].length+1);const u=ele(i,s);return` + */const wle=Rp(ip),Sv=new wle({hr:"---",codeBlockStyle:"fenced",headingStyle:"atx",emDelimiter:"*"});Sv.addRule("link2",{filter:(t,e)=>e.linkStyle==="inlined"&&t.nodeName==="A"&&!!t.getAttribute("href"),replacement:function(t,e){const n=e,r=n.getAttribute("href");if(!r)return"";const o=$E(n.getAttribute("title"));return o?`[${t}](${r} "${o}")`:`[${t}](${r})`}}),Sv.addRule("img2",{filter:"img",replacement:(t,e)=>{const n=e,r=n.getAttribute("src")||"";if(!r)return"";const o=$E(n.getAttribute("alt")),i=$E(n.getAttribute("title"));return i?`![${o}](${r} "${i}")`:`![${o}](${r})`}});const kle="data-code-block-language";Sv.addRule("code2",{filter:(t,e)=>e.codeBlockStyle==="fenced"&&t.nodeName==="PRE"&&t.firstChild!==null&&t.firstChild.nodeName==="CODE",replacement:function(t,e,n){const r=e.firstChild.getAttribute(kle),o=e.firstChild.textContent,i=n.fence.charAt(0);let s=3;const l=new RegExp("^"+i+"{3,}","gm");let a;for(;a=l.exec(o);)a[0].length>=s&&(s=a[0].length+1);const u=Ele(i,s);return` ${u}${r} ${o.replace(/\n$/,"")} ${u} -`}});function OE(t){return(t==null?void 0:t.replace(/(\n+\s*)+/g,` -`))||""}it.use({renderer:{code:(t,e,n)=>{var o;const r=(o=(e||"").match(/^\S*/))==null?void 0:o[0];return t=t.replace(/\n$/,""),n||(t=u$(t,!0)),r?`
    ${t}
    +`}});function $E(t){return(t==null?void 0:t.replace(/(\n+\s*)+/g,` +`))||""}it.use({renderer:{code:(t,e,n)=>{var o;const r=(o=(e||"").match(/^\S*/))==null?void 0:o[0];return t=t.replace(/\n$/,""),n||(t=S$(t,!0)),r?`
    ${t}
    `:`
    ${t}
    -`}}});function d$(t){return kv.turndown(t)}function h$(t){return it(t,{gfm:!0})}function ele(t,e){return Array(e+1).join(t)}/* +`}}});function C$(t){return Sv.turndown(t)}function T$(t){return it(t,{gfm:!0})}function Ele(t,e){return Array(e+1).join(t)}/* * Squidex Headless CMS * * @license * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. - */function p$(t){return Array.isArray(t)}function IE(t){return typeof t=="string"||t instanceof String}function f$(t){return!!t&&typeof t=="object"&&t.constructor===Object}function pp(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if(p$(t)&&p$(e)){if(t.length!==e.length)return!1;for(let n=0;n{const{type:e}=t;return e==="Assets"?V.jsxs("svg",{className:"custom-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 28 28",children:[V.jsx("path",{d:"M21.875 28h-15.75c-3.413 0-6.125-2.713-6.125-6.125v-15.75c0-3.413 2.712-6.125 6.125-6.125h15.75c3.412 0 6.125 2.712 6.125 6.125v15.75c0 3.412-2.713 6.125-6.125 6.125zM6.125 1.75c-2.45 0-4.375 1.925-4.375 4.375v15.75c0 2.45 1.925 4.375 4.375 4.375h15.75c2.45 0 4.375-1.925 4.375-4.375v-15.75c0-2.45-1.925-4.375-4.375-4.375h-15.75z"}),V.jsx("path",{d:"M21.088 23.537h-11.988c-0.35 0-0.612-0.175-0.787-0.525s-0.088-0.7 0.088-0.962l8.225-9.713c0.175-0.175 0.438-0.35 0.7-0.35s0.525 0.175 0.7 0.35l5.25 7.525c0.088 0.087 0.088 0.175 0.088 0.262 0.438 1.225 0.087 2.012-0.175 2.45-0.613 0.875-1.925 0.963-2.1 0.963zM11.025 21.787h10.15c0.175 0 0.612-0.088 0.7-0.262 0.088-0.088 0.088-0.35 0-0.7l-4.55-6.475-6.3 7.438z"}),V.jsx("path",{d:"M9.1 13.737c-2.1 0-3.85-1.75-3.85-3.85s1.75-3.85 3.85-3.85 3.85 1.75 3.85 3.85-1.663 3.85-3.85 3.85zM9.1 7.788c-1.138 0-2.1 0.875-2.1 2.1s0.962 2.1 2.1 2.1 2.1-0.962 2.1-2.1-0.875-2.1-2.1-2.1z"})]}):e==="Contents"?V.jsxs("svg",{className:"custom-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 28 28",children:[V.jsx("path",{d:"M21.875 28h-15.75c-3.413 0-6.125-2.713-6.125-6.125v-15.75c0-3.413 2.712-6.125 6.125-6.125h15.75c3.412 0 6.125 2.712 6.125 6.125v15.75c0 3.412-2.713 6.125-6.125 6.125zM6.125 1.75c-2.45 0-4.375 1.925-4.375 4.375v15.75c0 2.45 1.925 4.375 4.375 4.375h15.75c2.45 0 4.375-1.925 4.375-4.375v-15.75c0-2.45-1.925-4.375-4.375-4.375h-15.75z"}),V.jsx("path",{d:"M13.125 12.25h-5.775c-1.575 0-2.888-1.313-2.888-2.888v-2.013c0-1.575 1.313-2.888 2.888-2.888h5.775c1.575 0 2.887 1.313 2.887 2.888v2.013c0 1.575-1.312 2.888-2.887 2.888zM7.35 6.212c-0.613 0-1.138 0.525-1.138 1.138v2.012c0 0.612 0.525 1.138 1.138 1.138h5.775c0.612 0 1.138-0.525 1.138-1.138v-2.013c0-0.612-0.525-1.138-1.138-1.138h-5.775z"}),V.jsx("path",{d:"M22.662 16.713h-17.325c-0.525 0-0.875-0.35-0.875-0.875s0.35-0.875 0.875-0.875h17.237c0.525 0 0.875 0.35 0.875 0.875s-0.35 0.875-0.787 0.875z"}),V.jsx("path",{d:"M15.138 21.262h-9.8c-0.525 0-0.875-0.35-0.875-0.875s0.35-0.875 0.875-0.875h9.713c0.525 0 0.875 0.35 0.875 0.875s-0.35 0.875-0.787 0.875z"})]}):e==="Comment"?V.jsx("svg",{className:"custom-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",children:V.jsx("path",{d:"M20.016 15.984v-12h-16.031v14.016l2.016-2.016h14.016zM20.016 2.016c1.078 0 1.969 0.891 1.969 1.969v12c0 1.078-0.891 2.016-1.969 2.016h-14.016l-3.984 3.984v-18c0-1.078 0.891-1.969 1.969-1.969h16.031z"})}):e==="Check"?V.jsx("svg",{className:"custom-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 -960 960 960",children:V.jsx("path",{d:"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"})}):e==="Cancel"?V.jsx("svg",{className:"custom-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 -960 960 960",children:V.jsx("path",{d:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"})}):e==="Edit"?V.jsx("svg",{className:"custom-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",children:V.jsx("path",{d:"M15.728 9.686l-1.414-1.414L5 17.586V19h1.414l9.314-9.314zm1.414-1.414l1.414-1.414-1.414-1.414-1.414 1.414 1.414 1.414zM7.242 21H3v-4.243L16.435 3.322a1 1 0 0 1 1.414 0l2.829 2.829a1 1 0 0 1 0 1.414L7.243 21z"})}):e==="Preview"?V.jsxs("svg",{className:"custom-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"200 200 724 724",children:[V.jsx("path",{d:"M545 793.6H243.8c-11 0-20-9-20-20V250.4c0-11 9-20 20-20h432.4c11 0 20 9 20 20v131.8c0 11 9 20 20 20s20-9 20-20V250.4c0-33.1-26.9-60-60-60H243.8c-33.1 0-60 26.9-60 60v523.2c0 33.1 26.9 60 60 60H545c11 0 20-9 20-20s-8.9-20-20-20z"}),V.jsx("path",{d:"M834.6 789.8l-88.8-91.7c23.4-28.7 37.5-65.4 37.5-105.3 0-92.1-74.9-167-167-167s-167 74.9-167 167 74.9 167 167 167c37.8 0 72.7-12.6 100.7-33.9l89 91.8c3.9 4 9.1 6 14.3 6 5 0 10.1-1.9 14-5.7 7.8-7.6 8-20.3 0.3-28.2z m-218.4-69.9c-70 0-127-57-127-127s57-127 127-127 127 57 127 127-57 127-127 127zM565 382.2c0-11-9-20-20-20H308.7c-11 0-20 9-20 20s9 20 20 20H545c11.1 0 20-9 20-20zM443.5 493.5c0-11-9-20-20-20H308.7c-11 0-20 9-20 20s9 20 20 20h114.8c11.1 0 20-8.9 20-20zM308.7 584.8c-11 0-20 9-20 20s9 20 20 20h61.7c11 0 20-9 20-20s-9-20-20-20h-61.7z"})]}):V.jsx("span",{style:{height:"16px",lineHeight:"16px"},children:e})},tle=({node:t})=>{const e=kh(fp),n=t.attrs.contentId,r=t.attrs.contentTitle,o=t.attrs.schemaName,i=e.options.onEditContent;return V.jsxs("div",{className:"squidex-editor-content-link",children:[V.jsx("button",{type:"button",className:"squidex-editor-button",onClick:()=>i(o,n),children:V.jsx(Nr,{type:"Contents"})}),V.jsx("div",{className:"squidex-editor-content-schema",children:o}),V.jsx("div",{className:"squidex-editor-content-name",children:r})]})};var nle=Object.defineProperty,rle=Object.getOwnPropertyDescriptor,g$=(t,e,n,r)=>{for(var o=r>1?void 0:r?rle(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&nle(e,n,o),o};let fp=class extends Rn{constructor(e){super({...e,disableExtraAttributes:!0});dt(this,"ReactComponent",tle)}get name(){return"contentLink"}createTags(){return[we.InlineNode,we.Media]}createNodeSpec(){return{inline:!0,attrs:{contentId:{default:""},contentTitle:{default:""},schemaName:{default:""}},toDOM:e=>["a",{href:`${this.options.baseUrl}/api/content/${this.options.appName}/${e.attrs.schemaName}/${e.attrs.contentId}`},e.attrs.contentTitle],parseDOM:[{tag:"a[href]",getAttrs:e=>{const n=e.getAttribute("href");if(!n)return!1;const r=fae(n,this.options.baseUrl,this.options.appName);return r?{contentId:r.id,contentTitle:e.innerText,schemaName:r.schemaName}:!1},priority:1e5}]}}addContent(e,n){return this.store.commands.insertNode.original(this.type,{attrs:{contentId:e.id,contentTitle:e.title,schemaName:e.schemaName},selection:n})}};g$([le({})],fp.prototype,"addContent",1),fp=g$([Ne({defaultOptions:{},staticKeys:["appName","baseUrl","onEditContent"]})],fp);const ole=t=>{const{appName:e,baseUrl:n,onEditNode:r,onEditAsset:o,node:i,getPosition:s}=t,l=pae(i.attrs.src,n,e);return V.jsxs("div",{style:{position:"relative"},className:"squidex-editor-image-view",children:[V.jsx("img",{className:"squidex-editor-image-element",src:i.attrs.src}),V.jsxs("div",{className:"squidex-editor-image-buttons",children:[V.jsx("button",{type:"button",className:"squidex-editor-button",onClick:()=>r({node:i,getPos:s}),children:V.jsx(Nr,{type:"Edit"})}),l&&V.jsx("button",{type:"button",className:"squidex-editor-button",onClick:()=>o(l.id),children:V.jsx(Nr,{type:"Assets"})})]}),l&&V.jsx("div",{className:"squidex-editor-image-info",children:"Asset"})]})};/* + */const $r=t=>{const{type:e}=t;return e==="Assets"?V.jsxs("svg",{className:"custom-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 28 28",children:[V.jsx("path",{d:"M21.875 28h-15.75c-3.413 0-6.125-2.713-6.125-6.125v-15.75c0-3.413 2.712-6.125 6.125-6.125h15.75c3.412 0 6.125 2.712 6.125 6.125v15.75c0 3.412-2.713 6.125-6.125 6.125zM6.125 1.75c-2.45 0-4.375 1.925-4.375 4.375v15.75c0 2.45 1.925 4.375 4.375 4.375h15.75c2.45 0 4.375-1.925 4.375-4.375v-15.75c0-2.45-1.925-4.375-4.375-4.375h-15.75z"}),V.jsx("path",{d:"M21.088 23.537h-11.988c-0.35 0-0.612-0.175-0.787-0.525s-0.088-0.7 0.088-0.962l8.225-9.713c0.175-0.175 0.438-0.35 0.7-0.35s0.525 0.175 0.7 0.35l5.25 7.525c0.088 0.087 0.088 0.175 0.088 0.262 0.438 1.225 0.087 2.012-0.175 2.45-0.613 0.875-1.925 0.963-2.1 0.963zM11.025 21.787h10.15c0.175 0 0.612-0.088 0.7-0.262 0.088-0.088 0.088-0.35 0-0.7l-4.55-6.475-6.3 7.438z"}),V.jsx("path",{d:"M9.1 13.737c-2.1 0-3.85-1.75-3.85-3.85s1.75-3.85 3.85-3.85 3.85 1.75 3.85 3.85-1.663 3.85-3.85 3.85zM9.1 7.788c-1.138 0-2.1 0.875-2.1 2.1s0.962 2.1 2.1 2.1 2.1-0.962 2.1-2.1-0.875-2.1-2.1-2.1z"})]}):e==="Contents"?V.jsxs("svg",{className:"custom-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 28 28",children:[V.jsx("path",{d:"M21.875 28h-15.75c-3.413 0-6.125-2.713-6.125-6.125v-15.75c0-3.413 2.712-6.125 6.125-6.125h15.75c3.412 0 6.125 2.712 6.125 6.125v15.75c0 3.412-2.713 6.125-6.125 6.125zM6.125 1.75c-2.45 0-4.375 1.925-4.375 4.375v15.75c0 2.45 1.925 4.375 4.375 4.375h15.75c2.45 0 4.375-1.925 4.375-4.375v-15.75c0-2.45-1.925-4.375-4.375-4.375h-15.75z"}),V.jsx("path",{d:"M13.125 12.25h-5.775c-1.575 0-2.888-1.313-2.888-2.888v-2.013c0-1.575 1.313-2.888 2.888-2.888h5.775c1.575 0 2.887 1.313 2.887 2.888v2.013c0 1.575-1.312 2.888-2.887 2.888zM7.35 6.212c-0.613 0-1.138 0.525-1.138 1.138v2.012c0 0.612 0.525 1.138 1.138 1.138h5.775c0.612 0 1.138-0.525 1.138-1.138v-2.013c0-0.612-0.525-1.138-1.138-1.138h-5.775z"}),V.jsx("path",{d:"M22.662 16.713h-17.325c-0.525 0-0.875-0.35-0.875-0.875s0.35-0.875 0.875-0.875h17.237c0.525 0 0.875 0.35 0.875 0.875s-0.35 0.875-0.787 0.875z"}),V.jsx("path",{d:"M15.138 21.262h-9.8c-0.525 0-0.875-0.35-0.875-0.875s0.35-0.875 0.875-0.875h9.713c0.525 0 0.875 0.35 0.875 0.875s-0.35 0.875-0.787 0.875z"})]}):e==="Comment"?V.jsx("svg",{className:"custom-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",children:V.jsx("path",{d:"M20.016 15.984v-12h-16.031v14.016l2.016-2.016h14.016zM20.016 2.016c1.078 0 1.969 0.891 1.969 1.969v12c0 1.078-0.891 2.016-1.969 2.016h-14.016l-3.984 3.984v-18c0-1.078 0.891-1.969 1.969-1.969h16.031z"})}):e==="Check"?V.jsx("svg",{className:"custom-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 -960 960 960",children:V.jsx("path",{d:"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"})}):e==="Cancel"?V.jsx("svg",{className:"custom-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 -960 960 960",children:V.jsx("path",{d:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"})}):e==="Edit"?V.jsx("svg",{className:"custom-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",children:V.jsx("path",{d:"M15.728 9.686l-1.414-1.414L5 17.586V19h1.414l9.314-9.314zm1.414-1.414l1.414-1.414-1.414-1.414-1.414 1.414 1.414 1.414zM7.242 21H3v-4.243L16.435 3.322a1 1 0 0 1 1.414 0l2.829 2.829a1 1 0 0 1 0 1.414L7.243 21z"})}):e==="Preview"?V.jsxs("svg",{className:"custom-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"200 200 724 724",children:[V.jsx("path",{d:"M545 793.6H243.8c-11 0-20-9-20-20V250.4c0-11 9-20 20-20h432.4c11 0 20 9 20 20v131.8c0 11 9 20 20 20s20-9 20-20V250.4c0-33.1-26.9-60-60-60H243.8c-33.1 0-60 26.9-60 60v523.2c0 33.1 26.9 60 60 60H545c11 0 20-9 20-20s-8.9-20-20-20z"}),V.jsx("path",{d:"M834.6 789.8l-88.8-91.7c23.4-28.7 37.5-65.4 37.5-105.3 0-92.1-74.9-167-167-167s-167 74.9-167 167 74.9 167 167 167c37.8 0 72.7-12.6 100.7-33.9l89 91.8c3.9 4 9.1 6 14.3 6 5 0 10.1-1.9 14-5.7 7.8-7.6 8-20.3 0.3-28.2z m-218.4-69.9c-70 0-127-57-127-127s57-127 127-127 127 57 127 127-57 127-127 127zM565 382.2c0-11-9-20-20-20H308.7c-11 0-20 9-20 20s9 20 20 20H545c11.1 0 20-9 20-20zM443.5 493.5c0-11-9-20-20-20H308.7c-11 0-20 9-20 20s9 20 20 20h114.8c11.1 0 20-8.9 20-20zM308.7 584.8c-11 0-20 9-20 20s9 20 20 20h61.7c11 0 20-9 20-20s-9-20-20-20h-61.7z"})]}):V.jsx("span",{style:{height:"16px",lineHeight:"16px"},children:e})},Sle=({node:t})=>{const e=Sh(mp),n=t.attrs.contentId,r=t.attrs.contentTitle,o=t.attrs.schemaName,i=e.options.onEditContent;return V.jsxs("div",{className:"squidex-editor-content-link",children:[V.jsx("button",{type:"button",className:"squidex-editor-button",onClick:()=>i(o,n),children:V.jsx($r,{type:"Contents"})}),V.jsx("div",{className:"squidex-editor-content-schema",children:o}),V.jsx("div",{className:"squidex-editor-content-name",children:r})]})};var Cle=Object.defineProperty,Tle=Object.getOwnPropertyDescriptor,R$=(t,e,n,r)=>{for(var o=r>1?void 0:r?Tle(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Cle(e,n,o),o};let mp=class extends Mn{constructor(e){super({...e,disableExtraAttributes:!0});ht(this,"ReactComponent",Sle)}get name(){return"contentLink"}createTags(){return[we.InlineNode,we.Media]}createNodeSpec(){return{inline:!0,selectable:!0,attrs:{contentId:{default:""},contentTitle:{default:""},schemaName:{default:""}},toDOM:e=>["a",{href:`${this.options.baseUrl}/api/content/${this.options.appName}/${e.attrs.schemaName}/${e.attrs.contentId}`},e.attrs.contentTitle],parseDOM:[{tag:"a[href]",getAttrs:e=>{const n=e.getAttribute("href");if(!n)return!1;const r=Pae(n,this.options.baseUrl,this.options.appName);return r?{contentId:r.id,contentTitle:e.innerText,schemaName:r.schemaName}:!1},priority:1e5}]}}addContent(e,n){return this.store.commands.insertNode.original(this.type,{attrs:{contentId:e.id,contentTitle:e.title,schemaName:e.schemaName},selection:n})}};R$([le({})],mp.prototype,"addContent",1),mp=R$([Ne({defaultOptions:{},staticKeys:["appName","baseUrl","onEditContent"]})],mp);const Ale=t=>{const{appName:e,baseUrl:n,onEditNode:r,onEditAsset:o,node:i,getPosition:s}=t,l=Dae(i.attrs.src,n,e);return V.jsxs("div",{style:{position:"relative"},className:"squidex-editor-image-view",children:[V.jsx("img",{className:"squidex-editor-image-element",src:i.attrs.src}),V.jsxs("div",{className:"squidex-editor-image-buttons",children:[V.jsx("button",{type:"button",className:"squidex-editor-button",onClick:()=>r({node:i,getPos:s}),children:V.jsx($r,{type:"Edit"})}),l&&V.jsx("button",{type:"button",className:"squidex-editor-button",onClick:()=>o(l.id),children:V.jsx($r,{type:"Assets"})})]}),l&&V.jsx("div",{className:"squidex-editor-image-info",children:"Asset"})]})};/* * Squidex Headless CMS * * @license * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. - */class ile extends ht{get name(){return"htmlCopy"}createPlugin(){const e=this.options.mode==="Html";return{props:{clipboardTextParser:e?void 0:o=>{const i=document.createElement("div");return i.innerHTML=h$(o),va.fromSchema(this.store.schema).parseSlice(i)},clipboardTextSerializer:o=>{const s=Dr.fromSchema(this.store.schema).serializeFragment(o.content),l=document.createElement("div");l.append(s);let a=l.innerHTML;return e||(a=d$(a)),a}}}}}/* + */class _le extends ct{get name(){return"htmlCopy"}createPlugin(){const e=this.options.mode==="Html";return{props:{clipboardTextParser:e?void 0:o=>{const i=document.createElement("div");return i.innerHTML=T$(o),ya.fromSchema(this.store.schema).parseSlice(i)},clipboardTextSerializer:o=>{const s=Xo.fromSchema(this.store.schema).serializeFragment(o.content),l=document.createElement("div");l.append(s);let a=l.innerHTML;return e||(a=C$(a)),a}}}}}/* * Squidex Headless CMS * * @license * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. - */const sle=t=>{const{mode:e,onChange:n,value:r}=t,{setContent:o,getState:i}=Xr(),{getMarkdown:s,getHTML:l}=Eh(),a=D.useRef(null),u=D.useRef(!1),c=D.useRef(0),d=zK(),{doc:h}=i();return D.useEffect(()=>{c.current+=1},[d]),D.useEffect(()=>{u.current=m$(r),pp(a.current,r)||(a.current=r,o(r||""),c.current=-1)},[o,r]),D.useEffect(()=>{if(!n)return;function p(){switch(e){case"Markdown":return s({doc:h});case"Html":return l({doc:h});default:return h}}if(c.current<=0)return;let f=p();if(IE(f)&&(f=ale(f)),a.current===f)return;const g=m$(f);!u.current&&!g?n(void 0):n(f),a.current=f,u.current=g},[h,e,l,s,n]),null};function m$(t){return!!t&&(!IE(t)||Tu.length>0)}function ale(t){return t=t.trim(),t&&t.length>0&&lle.indexOf(t)>=0&&(t=""),t}const lle=["

    ",'

    ','

    '],cle=({node:t,getPosition:e,view:n})=>{const r=D.useCallback(o=>{const i=n.state.tr.setNodeAttribute(e(),"html",o.target.value);n.dispatch(i)},[e,n]);return V.jsxs("div",{className:"squidex-editor-html",children:[V.jsx("div",{className:"squidex-editor-html-label",children:"Plain HTML"}),V.jsx("textarea",{spellCheck:"false",value:t.attrs.html,onChange:r})]})};var ule=Object.defineProperty,dle=Object.getOwnPropertyDescriptor,v$=(t,e,n,r)=>{for(var o=r>1?void 0:r?dle(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&ule(e,n,o),o};let Ev=class extends Rn{constructor(){super({disableExtraAttributes:!0});dt(this,"ReactComponent",cle)}get name(){return"plainHtml"}createTags(){return[we.Block,we.TextBlock,we.FormattingNode]}createNodeSpec(){return{attrs:{html:{default:""}},toDOM:e=>{const n=e.attrs.html;return["div",{class:"__editor_html"},...hle(n)]},parseDOM:[{tag:"div[class~=__editor_html]",getAttrs:e=>({html:e.innerHTML}),priority:1e4}]}}insertPlainHtml(e){return this.store.commands.insertNode.original(this.type,{attrs:{content:""},selection:e})}};v$([le({})],Ev.prototype,"insertPlainHtml",1),Ev=v$([Ne({defaultOptions:{}})],Ev);function hle(t){if(!t)return[""];const e=document.createElement("div");return e.innerHTML=t,y$(e)}function ple(t){const e={};for(let n=0;n{const e=D.useRef(null);return D.useEffect(()=>{const n=window.requestAnimationFrame(()=>{var r;(r=e.current)==null||r.focus()});return()=>{window.cancelAnimationFrame(n)}},[]),V.jsx("input",{className:"squidex-editor-input",ref:e,...t})};/* + */const Rle=t=>{const{mode:e,onChange:n,value:r}=t,{setContent:o,getState:i}=qr(),{getMarkdown:s,getHTML:l}=Ch(),a=D.useRef(null),u=D.useRef(!1),c=D.useRef(0),d=iY(),{doc:h}=i();return D.useEffect(()=>{c.current+=1},[d]),D.useEffect(()=>{u.current=M$(r),gp(a.current,r)||(a.current=r,o(r||""),c.current=-1)},[o,r]),D.useEffect(()=>{if(!n)return;function p(){switch(e){case"Markdown":return s({doc:h});case"Html":return l({doc:h});default:return h}}if(c.current<=0)return;let f=p();if(DE(f)&&(f=Mle(f)),a.current===f)return;const g=M$(f);!u.current&&!g?n(void 0):n(f),a.current=f,u.current=g},[h,e,l,s,n]),null};function M$(t){return!!t&&(!DE(t)||Cu.length>0)}function Mle(t){return t=t.trim(),t&&t.length>0&&Ole.indexOf(t)>=0&&(t=""),t}const Ole=["

    ",'

    ','

    '],Ile=({node:t,getPosition:e,view:n})=>{const r=D.useCallback(o=>{const i=n.state.tr.setNodeAttribute(e(),"html",o.target.value);n.dispatch(i)},[e,n]);return V.jsxs("div",{className:"squidex-editor-html",children:[V.jsx("div",{className:"squidex-editor-html-label",children:"Plain HTML"}),V.jsx("textarea",{spellCheck:"false",value:t.attrs.html,onChange:r})]})};var Lle=Object.defineProperty,Nle=Object.getOwnPropertyDescriptor,O$=(t,e,n,r)=>{for(var o=r>1?void 0:r?Nle(e,n):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(r?s(e,n,o):s(o))||o);return r&&o&&Lle(e,n,o),o};let Cv=class extends Mn{constructor(){super({disableExtraAttributes:!0});ht(this,"ReactComponent",Ile)}get name(){return"plainHtml"}createTags(){return[we.Block,we.TextBlock,we.FormattingNode]}createNodeSpec(){return{attrs:{html:{default:""}},toDOM:e=>{const n=e.attrs.html;return["div",{class:"__editor_html"},...$le(n)]},parseDOM:[{tag:"div[class~=__editor_html]",getAttrs:e=>({html:e.innerHTML}),priority:1e4}]}}insertPlainHtml(e){return this.store.commands.insertNode.original(this.type,{attrs:{content:""},selection:e})}};O$([le({})],Cv.prototype,"insertPlainHtml",1),Cv=O$([Ne({defaultOptions:{}})],Cv);function $le(t){if(!t)return[""];const e=document.createElement("div");return e.innerHTML=t,I$(e)}function Dle(t){const e={};for(let n=0;n{const e=D.useRef(null);return D.useEffect(()=>{const n=window.requestAnimationFrame(()=>{var r;(r=e.current)==null||r.focus()});return()=>{window.cancelAnimationFrame(n)}},[]),V.jsx("input",{className:"squidex-editor-input",ref:e,...t})};/* * Squidex Headless CMS * * @license * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. - */const x$=t=>{const{children:e,title:n}=t;return V.jsxs("div",{className:"squidex-editor-modal-wrapper",children:[V.jsx("div",{className:"squidex-editor-modal-backdrop"}),V.jsxs("div",{className:"squidex-editor-modal-window",children:[n&&V.jsx("div",{className:"squidex-editor-modal-title",children:n}),V.jsx("div",{className:"squidex-editor-modal-body",children:e})]})]})},fle=t=>{const{onSelectAIText:e}=t,n=Vc(),r=D.useCallback(async()=>{const o=await e();gle(o)&&o.length>0&&n.insertText(o),n.run()},[n,e]);return V.jsx(kt,{commandName:"addImage",enabled:!0,onSelect:r,label:"Add AI generated Text",icon:V.jsx(Nr,{type:"AI"})})};function gle(t){return typeof t=="string"||t instanceof String}const mle=t=>{const{onSelectAssets:e}=t,n=Vc(),r=D.useCallback(async()=>{const o=await e();for(const i of o){if(i.mimeType.startsWith("image/")){const s={src:i.src,alt:i.alt,title:i.fileName};n.insertImage(s)}else n.insertText(i.fileName,{marks:{link:{href:i.src}}});n.insertText(" ")}n.run()},[n,e]);return V.jsx(kt,{commandName:"addImage",enabled:!0,onSelect:r,label:"Add Asset",icon:V.jsx(Nr,{type:"Assets"})})},vle=t=>{const{onSelectContents:e}=t,n=Vc(),r=D.useCallback(async()=>{const o=await e();for(const i of o)n.addContent(i);n.run()},[n,e]);return V.jsx(kt,{commandName:"addContent",enabled:!0,onSelect:r,label:"Add Content",icon:V.jsx(Nr,{type:"Contents"})})},yle=()=>{const t=Vc(),e=D.useCallback(async()=>{t.insertPlainHtml().run()},[t]);return V.jsx(kt,{commandName:"addImage",enabled:!0,onSelect:e,label:"Add HTML",icon:V.jsx(Nr,{type:"HTML"})})},ble=t=>{const{onAnnotationCreate:e}=t,{selection:n}=Xr({autoUpdate:!0}).getState(),r=D.useCallback(async()=>{const{from:o,to:i}=n;e({from:o,to:i})},[e,n]);return V.jsx(kt,{commandName:"addComment",enabled:!0,onSelect:r,label:"Create Comment",icon:V.jsx(Nr,{type:"Comment"})})};/* + */const N$=t=>{const{children:e,title:n}=t;return V.jsxs("div",{className:"squidex-editor-modal-wrapper",children:[V.jsx("div",{className:"squidex-editor-modal-backdrop"}),V.jsxs("div",{className:"squidex-editor-modal-window",children:[n&&V.jsx("div",{className:"squidex-editor-modal-title",children:n}),V.jsx("div",{className:"squidex-editor-modal-body",children:e})]})]})},Ple=t=>{const{onSelectAIText:e}=t,n=Wc(),r=D.useCallback(async()=>{const o=await e();zle(o)&&o.length>0&&n.insertText(o),n.run()},[n,e]);return V.jsx(kt,{commandName:"addImage",enabled:!0,onSelect:r,label:"Add AI generated Text",icon:V.jsx($r,{type:"AI"})})};function zle(t){return typeof t=="string"||t instanceof String}const Fle=t=>{const{onSelectAssets:e}=t,n=Wc(),r=D.useCallback(async()=>{const o=await e();for(const i of o){if(i.mimeType.startsWith("image/")){const s={src:i.src,alt:i.alt,title:i.fileName};n.insertImage(s)}else n.insertText(i.fileName,{marks:{link:{href:i.src}}});n.insertText(" ")}n.run()},[n,e]);return V.jsx(kt,{commandName:"addImage",enabled:!0,onSelect:r,label:"Add Asset",icon:V.jsx($r,{type:"Assets"})})},Ble=t=>{const{onSelectContents:e}=t,n=Wc(),r=D.useCallback(async()=>{const o=await e();for(const i of o)n.addContent(i);n.run()},[n,e]);return V.jsx(kt,{commandName:"addContent",enabled:!0,onSelect:r,label:"Add Content",icon:V.jsx($r,{type:"Contents"})})},Hle=()=>{const t=Wc(),e=D.useCallback(async()=>{t.insertPlainHtml().run()},[t]);return V.jsx(kt,{commandName:"addImage",enabled:!0,onSelect:e,label:"Add HTML",icon:V.jsx($r,{type:"HTML"})})},Ule=t=>{const{onAnnotationCreate:e}=t,{selection:n}=qr({autoUpdate:!0}).getState(),r=D.useCallback(async()=>{const{from:o,to:i}=n;e({from:o,to:i})},[e,n]);return V.jsx(kt,{commandName:"addComment",enabled:!0,onSelect:r,label:"Create Comment",icon:V.jsx($r,{type:"Comment"})})};/* * Squidex Headless CMS * * @license * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. - */const xle=t=>{const{annotations:e,onAnnotationsFocus:n,onAnnotationsUpdate:r}=t,o=un(),i=D.useRef(w$),s=D.useRef(w$),l=cae();return D.useEffect(()=>{i.current=e||[]},[e]),D.useEffect(()=>{const a=setTimeout(()=>{const u=l.selected;pp(s.current,u)||(s.current=u,n==null||n(u))},200);return()=>{clearTimeout(a)}},[n,l.selected]),D.useEffect(()=>{const a=setTimeout(()=>{const u=l.available;pp(i.current,u)||(i.current=u,r==null||r(u))},200);return()=>{clearTimeout(a)}},[r,l.available]),D.useEffect(()=>{o.setAnnotations(e||[])},[e,o]),null},w$=[],wle=t=>{const{attrs:e,...n}=t,{setClassName:r}=un(),o=D.useCallback(()=>{r(e.className)},[e.className,r]),i=dr().className(e);return V.jsx(Iw,{...n,commandName:"toggleClass",active:i,attrs:e,enabled:!0,onSelect:o,label:(e==null?void 0:e.className)||"No Class"})},kle=t=>{const{removeClassName:e}=un(),n=D.useCallback(()=>{e()},[e]),r=!dr().className();return V.jsx(Iw,{...t,commandName:"removeClass",active:r,attrs:{},enabled:!0,onSelect:n,label:"No Class"})},Ele=()=>{const t=kh(hu);return!t.options.classNames||t.options.classNames.length===0?null:V.jsxs(eN,{"aria-label":"Class Name",icon:V.jsx("span",{style:{height:"14px",lineHeight:"14px",fontSize:"14px"},children:"Class"}),children:[V.jsx(kle,{}),t.options.classNames.map(e=>V.jsx(wle,{attrs:{className:e}},e))]})},Sle=()=>{const t=kh(Ts),e=AK(),n=WN(300,()=>t.getWordCount(e),[e]),r=WN(300,()=>t.getCharacterCount(e),[e]);return V.jsxs("div",{children:["Words: ",V.jsx("strong",{children:n}),", Characters: ",V.jsx("strong",{children:r})]})},k$=t=>{const{onEdit:e}=t,n=Vc(),o=dr().link(),i=Zg(),s=D.useCallback(()=>{n.removeLink().focus().run()},[n]);return V.jsxs(V.Fragment,{children:[V.jsx(kt,{commandName:"updateLink",enabled:!i.empty,label:"Add or Edit Link",onSelect:e,icon:"link"}),V.jsx(kt,{commandName:"removeLink",enabled:o,label:"Remove Link",onSelect:s,icon:"linkUnlink"})]})},Cle=t=>{const{onClose:e}=t,n=Vc(),r=CK(!0).link(),o=(r==null?void 0:r.href)??"",i=Zg(),[s,l,a]=UN("");D.useEffect(()=>{l(o)},[o,i,l]);const u=D.useCallback(()=>{const h=a.current;h?n.updateLink({href:h,auto:!1}):n.removeLink(),n.focus(i.to).run(),e()},[n,a,e,i.to]),c=D.useCallback(h=>{l(h.target.value)},[l]),d=D.useCallback(h=>{const{code:p}=h;p==="Enter"&&u(),p==="Escape"&&e()},[e,u]);return V.jsxs(x$,{title:"Change Link",children:[V.jsx(b$,{value:s,onChange:c,onKeyDown:d,placeholder:"Enter Link..."}),V.jsxs(to,{children:[V.jsx(kt,{commandName:"submitLink",enabled:!0,onSelect:u,icon:V.jsx(Nr,{type:"Check"})}),V.jsx(kt,{commandName:"cancelLink",enabled:!0,onSelect:e,icon:V.jsx(Nr,{type:"Cancel"})})]})]})};var fu={},LE={},E$={exports:{}};(function(t,e){(function(){var n="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var o=function(c,d,h){if(typeof c!="string"){o.original?o.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(h=d),o.modules[c]||(o.payloads[c]=h,o.modules[c]=null)};o.modules={},o.payloads={};var i=function(c,d,h){if(typeof d=="string"){var p=a(c,d);if(p!=null)return h&&h(),p}else if(Object.prototype.toString.call(d)==="[object Array]"){for(var f=[],g=0,m=d.length;ga.length)&&(l=a.length),l-=s.length;var u=a.indexOf(s,l);return u!==-1&&u===l}),String.prototype.repeat||i(String.prototype,"repeat",function(s){for(var l="",a=this;s>0;)s&1&&(l+=a),(s>>=1)&&(a+=a);return l}),String.prototype.includes||i(String.prototype,"includes",function(s,l){return this.indexOf(s,l)!=-1}),Object.assign||(Object.assign=function(s){if(s==null)throw new TypeError("Cannot convert undefined or null to object");for(var l=Object(s),a=1;a>>0,u=arguments[1],c=u>>0,d=c<0?Math.max(a+c,0):Math.min(c,a),h=arguments[2],p=h===void 0?a:h>>0,f=p<0?Math.max(a+p,0):Math.min(p,a);d0;)a&1&&(u+=l),(a>>=1)&&(l+=l);return u};var i=/^\s\s*/,s=/\s\s*$/;r.stringTrimLeft=function(l){return l.replace(i,"")},r.stringTrimRight=function(l){return l.replace(s,"")},r.copyObject=function(l){var a={};for(var u in l)a[u]=l[u];return a},r.copyArray=function(l){for(var a=[],u=0,c=l.length;u65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,r,o){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var i=typeof navigator=="object"?navigator:{},s=(/mac|win|linux/i.exec(i.platform)||["other"])[0].toLowerCase(),l=i.userAgent||"",a=i.appName||"";r.isWin=s=="win",r.isMac=s=="mac",r.isLinux=s=="linux",r.isIE=a=="Microsoft Internet Explorer"||a.indexOf("MSAppHost")>=0?parseFloat((l.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((l.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=l.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(l.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(l.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(l.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(l.split(" Edge/")[1])||void 0,r.isAIR=l.indexOf("AdobeAIR")>=0,r.isAndroid=l.indexOf("Android")>=0,r.isChromeOS=l.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(l)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,r,o){var i=n("./useragent"),s="http://www.w3.org/1999/xhtml";r.buildDom=function h(p,f,g){if(typeof p=="string"&&p){var m=document.createTextNode(p);return f&&f.appendChild(m),m}if(!Array.isArray(p))return p&&p.appendChild&&f&&f.appendChild(p),p;if(typeof p[0]!="string"||!p[0]){for(var v=[],y=0;y"u")){if(a){if(f)u();else if(f===!1)return a.push([h,p])}if(!l){var g=f;!f||!f.getRootNode?g=document:(g=f.getRootNode(),(!g||g==f)&&(g=document));var m=g.ownerDocument||g;if(p&&r.hasCssString(p,g))return null;p&&(h+=` + */const Wle=t=>{const{annotations:e,onAnnotationsFocus:n,onAnnotationsUpdate:r}=t,o=un(),i=D.useRef($$),s=D.useRef($$),l=Iae();return D.useEffect(()=>{i.current=e||[]},[e]),D.useEffect(()=>{const a=setTimeout(()=>{const u=l.selected;gp(s.current,u)||(s.current=u,n==null||n(u))},200);return()=>{clearTimeout(a)}},[n,l.selected]),D.useEffect(()=>{const a=setTimeout(()=>{const u=l.available;gp(i.current,u)||(i.current=u,r==null||r(u))},200);return()=>{clearTimeout(a)}},[r,l.available]),D.useEffect(()=>{o.setAnnotations(e||[])},[e,o]),null},$$=[],Vle=t=>{const{attrs:e,...n}=t,{setClassName:r}=un(),o=D.useCallback(()=>{r(e.className)},[e.className,r]),i=dr().className(e);return V.jsx(Dw,{...n,commandName:"toggleClass",active:i,attrs:e,enabled:!0,onSelect:o,label:(e==null?void 0:e.className)||"No Class"})},jle=t=>{const{removeClassName:e}=un(),n=D.useCallback(()=>{e()},[e]),r=!dr().className();return V.jsx(Dw,{...t,commandName:"removeClass",active:r,attrs:{},enabled:!0,onSelect:n,label:"No Class"})},Gle=()=>{const t=Sh(du);return!t.options.classNames||t.options.classNames.length===0?null:V.jsxs(fN,{"aria-label":"Class Name",icon:V.jsx("span",{style:{height:"14px",lineHeight:"14px",fontSize:"14px"},children:"Class"}),children:[V.jsx(jle,{}),t.options.classNames.map(e=>V.jsx(Vle,{attrs:{className:e}},e))]})},Kle=()=>{const t=Sh(As),e=YK(),n=r$(300,()=>t.getWordCount(e),[e]),r=r$(300,()=>t.getCharacterCount(e),[e]);return V.jsxs("div",{children:["Words: ",V.jsx("strong",{children:n}),", Characters: ",V.jsx("strong",{children:r})]})},D$=t=>{const{onEdit:e}=t,n=Wc(),o=dr().link(),i=Qg(),s=D.useCallback(()=>{n.removeLink().focus().run()},[n]);return V.jsxs(V.Fragment,{children:[V.jsx(kt,{commandName:"updateLink",enabled:!i.empty,label:"Add or Edit Link",onSelect:e,icon:"link"}),V.jsx(kt,{commandName:"removeLink",enabled:o,label:"Remove Link",onSelect:s,icon:"linkUnlink"})]})},Yle=t=>{const{onClose:e}=t,n=Wc(),r=GK(!0).link(),o=(r==null?void 0:r.href)??"",i=Qg(),[s,l,a]=n$("");D.useEffect(()=>{l(o)},[o,i,l]);const u=D.useCallback(()=>{const h=a.current;h?n.updateLink({href:h,auto:!1}):n.removeLink(),n.focus(i.to).run(),e()},[n,a,e,i.to]),c=D.useCallback(h=>{l(h.target.value)},[l]),d=D.useCallback(h=>{const{code:p}=h;p==="Enter"&&u(),p==="Escape"&&e()},[e,u]);return V.jsxs(N$,{title:"Change Link",children:[V.jsx(L$,{value:s,onChange:c,onKeyDown:d,placeholder:"Enter Link..."}),V.jsxs(hr,{children:[V.jsx(kt,{commandName:"submitLink",enabled:!0,onSelect:u,icon:V.jsx($r,{type:"Check"})}),V.jsx(kt,{commandName:"cancelLink",enabled:!0,onSelect:e,icon:V.jsx($r,{type:"Cancel"})})]})]})};var pu={},PE={},P$={exports:{}};(function(t,e){(function(){var n="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var o=function(c,d,h){if(typeof c!="string"){o.original?o.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(h=d),o.modules[c]||(o.payloads[c]=h,o.modules[c]=null)};o.modules={},o.payloads={};var i=function(c,d,h){if(typeof d=="string"){var p=a(c,d);if(p!=null)return h&&h(),p}else if(Object.prototype.toString.call(d)==="[object Array]"){for(var f=[],g=0,m=d.length;ga.length)&&(l=a.length),l-=s.length;var u=a.indexOf(s,l);return u!==-1&&u===l}),String.prototype.repeat||i(String.prototype,"repeat",function(s){for(var l="",a=this;s>0;)s&1&&(l+=a),(s>>=1)&&(a+=a);return l}),String.prototype.includes||i(String.prototype,"includes",function(s,l){return this.indexOf(s,l)!=-1}),Object.assign||(Object.assign=function(s){if(s==null)throw new TypeError("Cannot convert undefined or null to object");for(var l=Object(s),a=1;a>>0,u=arguments[1],c=u>>0,d=c<0?Math.max(a+c,0):Math.min(c,a),h=arguments[2],p=h===void 0?a:h>>0,f=p<0?Math.max(a+p,0):Math.min(p,a);d0;)a&1&&(u+=l),(a>>=1)&&(l+=l);return u};var i=/^\s\s*/,s=/\s\s*$/;r.stringTrimLeft=function(l){return l.replace(i,"")},r.stringTrimRight=function(l){return l.replace(s,"")},r.copyObject=function(l){var a={};for(var u in l)a[u]=l[u];return a},r.copyArray=function(l){for(var a=[],u=0,c=l.length;u65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,r,o){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var i=typeof navigator=="object"?navigator:{},s=(/mac|win|linux/i.exec(i.platform)||["other"])[0].toLowerCase(),l=i.userAgent||"",a=i.appName||"";r.isWin=s=="win",r.isMac=s=="mac",r.isLinux=s=="linux",r.isIE=a=="Microsoft Internet Explorer"||a.indexOf("MSAppHost")>=0?parseFloat((l.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((l.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=l.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(l.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(l.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(l.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(l.split(" Edge/")[1])||void 0,r.isAIR=l.indexOf("AdobeAIR")>=0,r.isAndroid=l.indexOf("Android")>=0,r.isChromeOS=l.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(l)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,r,o){var i=n("./useragent"),s="http://www.w3.org/1999/xhtml";r.buildDom=function h(p,f,g){if(typeof p=="string"&&p){var m=document.createTextNode(p);return f&&f.appendChild(m),m}if(!Array.isArray(p))return p&&p.appendChild&&f&&f.appendChild(p),p;if(typeof p[0]!="string"||!p[0]){for(var v=[],y=0;y"u")){if(a){if(f)u();else if(f===!1)return a.push([h,p])}if(!l){var g=f;!f||!f.getRootNode?g=document:(g=f.getRootNode(),(!g||g==f)&&(g=document));var m=g.ownerDocument||g;if(p&&r.hasCssString(p,g))return null;p&&(h+=` /*# sourceURL=ace/css/`+p+" */");var v=r.createElement("style");v.appendChild(m.createTextNode(h)),p&&(v.id=p),g==m&&(g=r.getDocumentHead(m)),g.insertBefore(v,g.firstChild)}}}if(r.importCssString=c,r.importCssStylsheet=function(h,p){r.buildDom(["link",{rel:"stylesheet",href:h}],r.getDocumentHead(p))},r.scrollbarWidth=function(h){var p=r.createElement("ace_inner");p.style.width="100%",p.style.minWidth="0px",p.style.height="200px",p.style.display="block";var f=r.createElement("ace_outer"),g=f.style;g.position="absolute",g.left="-10000px",g.overflow="hidden",g.width="200px",g.minWidth="0px",g.height="150px",g.display="block",f.appendChild(p);var m=h&&h.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(f);var v=p.offsetWidth;g.overflow="scroll";var y=p.offsetWidth;return v===y&&(y=f.clientWidth),m.removeChild(f),v-y},r.computedStyle=function(h,p){return window.getComputedStyle(h,"")||{}},r.setStyle=function(h,p,f){h[p]!==f&&(h[p]=f)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=i.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,i.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var d=document.createElement("div");r.HI_DPI&&d.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!i.isEdge&&typeof d.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),d=null}r.HAS_CSS_TRANSFORMS?r.translate=function(h,p,f){h.style.transform="translate("+Math.round(p)+"px, "+Math.round(f)+"px)"}:r.translate=function(h,p,f){h.style.top=Math.round(f)+"px",h.style.left=Math.round(p)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,r,o){/* * based on code from: * @@ -5288,7 +5294,7 @@ ${u} .ace-tm .ace_indent-guide-active { background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y; } -`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,r,o){r.isDark=!1,r.cssClass="ace-tm",r.cssText=n("./textmate-css"),r.$id="ace/theme/textmate";var i=n("../lib/dom");i.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(n,r,o){"no use strict";var i=n("./lib/lang"),s=n("./lib/net"),l=n("./lib/dom"),a=n("./lib/app_config").AppConfig;o.exports=r=new a;var u={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(p){if(!u.hasOwnProperty(p))throw new Error("Unknown config key: "+p);return u[p]},r.set=function(p,f){if(u.hasOwnProperty(p))u[p]=f;else if(this.setDefaultValue("",p,f)==!1)throw new Error("Unknown config key: "+p);p=="useStrictCSP"&&l.useStrictCSP(f)},r.all=function(){return i.copyObject(u)},r.$modes={},r.moduleUrl=function(p,f){if(u.$moduleUrls[p])return u.$moduleUrls[p];var g=p.split("/");f=f||g[g.length-2]||"";var m=f=="snippets"?"/":"-",v=g[g.length-1];if(f=="worker"&&m=="-"){var y=new RegExp("^"+f+"[\\-_]|[\\-_]"+f+"$","g");v=v.replace(y,"")}(!v||v==f)&&g.length>1&&(v=g[g.length-2]);var b=u[f+"Path"];return b==null?b=u.basePath:m=="/"&&(f=m=""),b&&b.slice(-1)!="/"&&(b+="/"),b+f+m+v+this.get("suffix")},r.setModuleUrl=function(p,f){return u.$moduleUrls[p]=f};var c=function(p,f){if(p==="ace/theme/textmate"||p==="./theme/textmate")return f(null,n("./theme/textmate"));if(d)return d(p,f);console.error("loader is not configured")},d;r.setLoader=function(p){d=p},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(p,f){var g;if(Array.isArray(p))var m=p[0],v=p[1];else if(typeof p=="string")var v=p;var y=function(b){if(b&&!r.$loading[v])return f&&f(b);if(r.$loading[v]||(r.$loading[v]=[]),r.$loading[v].push(f),!(r.$loading[v].length>1)){var x=function(){c(v,function(k,w){w&&(r.$loaded[v]=w),r._emit("load.module",{name:v,module:w});var S=r.$loading[v];r.$loading[v]=null,S.forEach(function(A){A&&A(w)})})};if(!r.get("packaged"))return x();s.loadScript(r.moduleUrl(v,m),x),h()}};if(r.dynamicModules[v])r.dynamicModules[v]().then(function(b){b.default?y(b.default):y(b)});else{try{g=this.$require(v)}catch{}y(g||r.$loaded[v])}},r.$require=function(p){if(typeof o.require=="function"){var f="require";return o[f](p)}},r.setModuleLoader=function(p,f){r.dynamicModules[p]=f};var h=function(){!u.basePath&&!u.workerPath&&!u.modePath&&!u.themePath&&!Object.keys(u.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),h=function(){})};r.version="1.32.8"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,r,o){n("./lib/fixoldbrowsers");var i=n("./config");i.setLoader(function(u,c){n([u],function(d){c(null,d)})});var s=function(){return this||typeof window<"u"&&window}();o.exports=function(u){i.init=l,i.$require=n,u.require=n},l(!0);function l(u){if(!(!s||!s.document)){i.set("packaged",u||n.packaged||o.packaged||s.define&&(void 0).packaged);var c={},d="",h=document.currentScript||document._currentScript,p=h&&h.ownerDocument||document;h&&h.src&&(d=h.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var f=p.getElementsByTagName("script"),g=0;g ["+this.end.row+"/"+this.end.column+"]"},s.prototype.contains=function(l,a){return this.compare(l,a)==0},s.prototype.compareRange=function(l){var a,u=l.end,c=l.start;return a=this.compare(u.row,u.column),a==1?(a=this.compare(c.row,c.column),a==1?2:a==0?1:0):a==-1?-2:(a=this.compare(c.row,c.column),a==-1?-1:a==1?42:0)},s.prototype.comparePoint=function(l){return this.compare(l.row,l.column)},s.prototype.containsRange=function(l){return this.comparePoint(l.start)==0&&this.comparePoint(l.end)==0},s.prototype.intersects=function(l){var a=this.compareRange(l);return a==-1||a==0||a==1},s.prototype.isEnd=function(l,a){return this.end.row==l&&this.end.column==a},s.prototype.isStart=function(l,a){return this.start.row==l&&this.start.column==a},s.prototype.setStart=function(l,a){typeof l=="object"?(this.start.column=l.column,this.start.row=l.row):(this.start.row=l,this.start.column=a)},s.prototype.setEnd=function(l,a){typeof l=="object"?(this.end.column=l.column,this.end.row=l.row):(this.end.row=l,this.end.column=a)},s.prototype.inside=function(l,a){return this.compare(l,a)==0?!(this.isEnd(l,a)||this.isStart(l,a)):!1},s.prototype.insideStart=function(l,a){return this.compare(l,a)==0?!this.isEnd(l,a):!1},s.prototype.insideEnd=function(l,a){return this.compare(l,a)==0?!this.isStart(l,a):!1},s.prototype.compare=function(l,a){return!this.isMultiLine()&&l===this.start.row?athis.end.column?1:0:lthis.end.row?1:this.start.row===l?a>=this.start.column?0:-1:this.end.row===l?a<=this.end.column?0:1:0},s.prototype.compareStart=function(l,a){return this.start.row==l&&this.start.column==a?-1:this.compare(l,a)},s.prototype.compareEnd=function(l,a){return this.end.row==l&&this.end.column==a?1:this.compare(l,a)},s.prototype.compareInside=function(l,a){return this.end.row==l&&this.end.column==a?1:this.start.row==l&&this.start.column==a?-1:this.compare(l,a)},s.prototype.clipRows=function(l,a){if(this.end.row>a)var u={row:a+1,column:0};else if(this.end.rowa)var c={row:a+1,column:0};else if(this.start.row1&&(v=g[g.length-2]);var b=u[f+"Path"];return b==null?b=u.basePath:m=="/"&&(f=m=""),b&&b.slice(-1)!="/"&&(b+="/"),b+f+m+v+this.get("suffix")},r.setModuleUrl=function(p,f){return u.$moduleUrls[p]=f};var c=function(p,f){if(p==="ace/theme/textmate"||p==="./theme/textmate")return f(null,n("./theme/textmate"));if(d)return d(p,f);console.error("loader is not configured")},d;r.setLoader=function(p){d=p},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(p,f){var g;if(Array.isArray(p))var m=p[0],v=p[1];else if(typeof p=="string")var v=p;var y=function(b){if(b&&!r.$loading[v])return f&&f(b);if(r.$loading[v]||(r.$loading[v]=[]),r.$loading[v].push(f),!(r.$loading[v].length>1)){var x=function(){c(v,function(k,w){w&&(r.$loaded[v]=w),r._emit("load.module",{name:v,module:w});var S=r.$loading[v];r.$loading[v]=null,S.forEach(function(T){T&&T(w)})})};if(!r.get("packaged"))return x();s.loadScript(r.moduleUrl(v,m),x),h()}};if(r.dynamicModules[v])r.dynamicModules[v]().then(function(b){b.default?y(b.default):y(b)});else{try{g=this.$require(v)}catch{}y(g||r.$loaded[v])}},r.$require=function(p){if(typeof o.require=="function"){var f="require";return o[f](p)}},r.setModuleLoader=function(p,f){r.dynamicModules[p]=f};var h=function(){!u.basePath&&!u.workerPath&&!u.modePath&&!u.themePath&&!Object.keys(u.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),h=function(){})};r.version="1.32.8"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,r,o){n("./lib/fixoldbrowsers");var i=n("./config");i.setLoader(function(u,c){n([u],function(d){c(null,d)})});var s=function(){return this||typeof window<"u"&&window}();o.exports=function(u){i.init=l,i.$require=n,u.require=n},l(!0);function l(u){if(!(!s||!s.document)){i.set("packaged",u||n.packaged||o.packaged||s.define&&(void 0).packaged);var c={},d="",h=document.currentScript||document._currentScript,p=h&&h.ownerDocument||document;h&&h.src&&(d=h.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var f=p.getElementsByTagName("script"),g=0;g ["+this.end.row+"/"+this.end.column+"]"},s.prototype.contains=function(l,a){return this.compare(l,a)==0},s.prototype.compareRange=function(l){var a,u=l.end,c=l.start;return a=this.compare(u.row,u.column),a==1?(a=this.compare(c.row,c.column),a==1?2:a==0?1:0):a==-1?-2:(a=this.compare(c.row,c.column),a==-1?-1:a==1?42:0)},s.prototype.comparePoint=function(l){return this.compare(l.row,l.column)},s.prototype.containsRange=function(l){return this.comparePoint(l.start)==0&&this.comparePoint(l.end)==0},s.prototype.intersects=function(l){var a=this.compareRange(l);return a==-1||a==0||a==1},s.prototype.isEnd=function(l,a){return this.end.row==l&&this.end.column==a},s.prototype.isStart=function(l,a){return this.start.row==l&&this.start.column==a},s.prototype.setStart=function(l,a){typeof l=="object"?(this.start.column=l.column,this.start.row=l.row):(this.start.row=l,this.start.column=a)},s.prototype.setEnd=function(l,a){typeof l=="object"?(this.end.column=l.column,this.end.row=l.row):(this.end.row=l,this.end.column=a)},s.prototype.inside=function(l,a){return this.compare(l,a)==0?!(this.isEnd(l,a)||this.isStart(l,a)):!1},s.prototype.insideStart=function(l,a){return this.compare(l,a)==0?!this.isEnd(l,a):!1},s.prototype.insideEnd=function(l,a){return this.compare(l,a)==0?!this.isStart(l,a):!1},s.prototype.compare=function(l,a){return!this.isMultiLine()&&l===this.start.row?athis.end.column?1:0:lthis.end.row?1:this.start.row===l?a>=this.start.column?0:-1:this.end.row===l?a<=this.end.column?0:1:0},s.prototype.compareStart=function(l,a){return this.start.row==l&&this.start.column==a?-1:this.compare(l,a)},s.prototype.compareEnd=function(l,a){return this.end.row==l&&this.end.column==a?1:this.compare(l,a)},s.prototype.compareInside=function(l,a){return this.end.row==l&&this.end.column==a?1:this.start.row==l&&this.start.column==a?-1:this.compare(l,a)},s.prototype.clipRows=function(l,a){if(this.end.row>a)var u={row:a+1,column:0};else if(this.end.rowa)var c={row:a+1,column:0};else if(this.start.row1?(A++,A>4&&(A=1)):A=1,s.isIE){var M=Math.abs(E.clientX-C)>5||Math.abs(E.clientY-O)>5;(!R||M)&&(A=1),R&&clearTimeout(R),R=setTimeout(function(){R=null},x[A-1]||600),A==1&&(C=E.clientX,O=E.clientY)}if(E._clicks=A,k[w]("mousedown",E),A>4)A=0;else if(A>1)return k[w](_[A],E)}Array.isArray(b)||(b=[b]),b.forEach(function(E){p(E,"mousedown",T,S)})};function g(b){return 0|(b.ctrlKey?1:0)|(b.altKey?2:0)|(b.shiftKey?4:0)|(b.metaKey?8:0)}r.getModifierString=function(b){return i.KEY_MODS[g(b)]};function m(b,x,k){var w=g(x);if(!s.isMac&&l){if(x.getModifierState&&(x.getModifierState("OS")||x.getModifierState("Win"))&&(w|=8),l.altGr)if((3&w)!=3)l.altGr=0;else return;if(k===18||k===17){var S=x.location;if(k===17&&S===1)l[k]==1&&(a=x.timeStamp);else if(k===18&&w===3&&S===2){var A=x.timeStamp-a;A<50&&(l.altGr=!0)}}}if(k in i.MODIFIER_KEYS&&(k=-1),!(!w&&k===13&&x.location===3&&(b(x,w,-k),x.defaultPrevented))){if(s.isChromeOS&&w&8){if(b(x,w,k),x.defaultPrevented)return;w&=-9}return!w&&!(k in i.FUNCTION_KEYS)&&!(k in i.PRINTABLE_KEYS)?!1:b(x,w,k)}}r.addCommandKeyListener=function(b,x,k){var w=null;p(b,"keydown",function(S){l[S.keyCode]=(l[S.keyCode]||0)+1;var A=m(x,S,S.keyCode);return w=S.defaultPrevented,A},k),p(b,"keypress",function(S){w&&(S.ctrlKey||S.altKey||S.shiftKey||S.metaKey)&&(r.stopEvent(S),w=null)},k),p(b,"keyup",function(S){l[S.keyCode]=null},k),l||(v(),p(window,"focus",v))};function v(){l=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!s.isOldIE){var y=1;r.nextTick=function(b,x){x=x||window;var k="zero-timeout-message-"+y++,w=function(S){S.data==k&&(r.stopPropagation(S),f(x,"message",w),b())};p(x,"message",w),x.postMessage(k,"*")}}r.$idleBlocked=!1,r.onIdle=function(b,x){return setTimeout(function k(){r.$idleBlocked?setTimeout(k,100):b()},x)},r.$idleBlockId=null,r.blockIdle=function(b){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},b||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(b){setTimeout(b,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,r,o){var i;o.exports={lineMode:!1,pasteCancelled:function(){return i&&i>Date.now()-50?!0:i=!1},cancel:function(){i=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(n,r,o){var i=n("../lib/event"),s=n("../config").nls,l=n("../lib/useragent"),a=n("../lib/dom"),u=n("../lib/lang"),c=n("../clipboard"),d=l.isChrome<18,h=l.isIE,p=l.isChrome>63,f=400,g=n("../lib/keys"),m=g.KEY_MODS,v=l.isIOS,y=v?/\s/:/\n/,b=l.isMobile,x;x=function(k,w){var S=a.createElement("textarea");S.className="ace_text-input",S.setAttribute("wrap","off"),S.setAttribute("autocorrect","off"),S.setAttribute("autocapitalize","off"),S.setAttribute("spellcheck","false"),S.style.opacity="0",k.insertBefore(S,k.firstChild);var A=!1,C=!1,O=!1,R=!1,_="";b||(S.style.fontSize="1px");var T=!1,E=!1,M="",I=0,N=0,L=0,$=Number.MAX_SAFE_INTEGER,P=Number.MIN_SAFE_INTEGER,F=0;try{var H=document.activeElement===S}catch{}this.setNumberOfExtraLines=function(q){if($=Number.MAX_SAFE_INTEGER,P=Number.MIN_SAFE_INTEGER,q<0){F=0;return}F=q},this.setAriaOptions=function(q){if(q.activeDescendant?(S.setAttribute("aria-haspopup","true"),S.setAttribute("aria-autocomplete",q.inline?"both":"list"),S.setAttribute("aria-activedescendant",q.activeDescendant)):(S.setAttribute("aria-haspopup","false"),S.setAttribute("aria-autocomplete","both"),S.removeAttribute("aria-activedescendant")),q.role&&S.setAttribute("role",q.role),q.setLabel&&(S.setAttribute("aria-roledescription",s("editor")),w.session)){var ue=w.session.selection.cursor.row;S.setAttribute("aria-label",s("Cursor at row $0",[ue+1]))}},this.setAriaOptions({role:"textbox"}),i.addListener(S,"blur",function(q){E||(w.onBlur(q),H=!1)},w),i.addListener(S,"focus",function(q){if(!E){if(H=!0,l.isEdge)try{if(!document.hasFocus())return}catch{}w.onFocus(q),l.isEdge?setTimeout(B):B()}},w),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:w.renderer.enableKeyboardAccessibility}),_||p||this.$focusScroll=="browser")return S.focus({preventScroll:!0});var q=S.style.top;S.style.position="fixed",S.style.top="0px";try{var ue=S.getBoundingClientRect().top!=0}catch{return}var me=[];if(ue)for(var ie=S.parentElement;ie&&ie.nodeType==1;)me.push(ie),ie.setAttribute("ace_nocontext","true"),!ie.parentElement&&ie.getRootNode?ie=ie.getRootNode().host:ie=ie.parentElement;S.focus({preventScroll:!0}),ue&&me.forEach(function(Ce){Ce.removeAttribute("ace_nocontext")}),setTimeout(function(){S.style.position="",S.style.top=="0px"&&(S.style.top=q)},0)},this.blur=function(){S.blur()},this.isFocused=function(){return H},w.on("beforeEndOperation",function(){var q=w.curOp,ue=q&&q.command&&q.command.name;if(ue!="insertstring"){var me=ue&&(q.docChanged||q.selectionChanged);O&&me&&(M=S.value="",Et()),B()}});var W=function(q,ue){for(var me=ue,ie=1;ie<=q-$&&ie<2*F+1;ie++)me+=w.session.getLine(q-ie).length+1;return me},B=v?function(q){if(!(!H||A&&!q||R)){q||(q="");var ue=` + @license */var i=n("./oop"),s=function(){var l={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};l.PRINTABLE_KEYS[173]="-";var a,u;for(u in l.FUNCTION_KEYS)a=l.FUNCTION_KEYS[u].toLowerCase(),l[a]=parseInt(u,10);for(u in l.PRINTABLE_KEYS)a=l.PRINTABLE_KEYS[u].toLowerCase(),l[a]=parseInt(u,10);return i.mixin(l,l.MODIFIER_KEYS),i.mixin(l,l.PRINTABLE_KEYS),i.mixin(l,l.FUNCTION_KEYS),l.enter=l.return,l.escape=l.esc,l.del=l.delete,function(){for(var c=["cmd","ctrl","alt","shift"],d=Math.pow(2,c.length);d--;)l.KEY_MODS[d]=c.filter(function(h){return d&l.KEY_MODS[h]}).join("-")+"-"}(),l.KEY_MODS[0]="",l.KEY_MODS[-1]="input-",l}();i.mixin(r,s),r.default=r,r.keyCodeToString=function(l){var a=s[l];return typeof a!="string"&&(a=String.fromCharCode(l)),a.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,o){var i=n("./keys"),s=n("./useragent"),l=null,a=0,u;function c(){u=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return u={passive:!1},!0}})}catch{}}function d(){return u==null&&c(),u}function h(b,x,k){this.elem=b,this.type=x,this.callback=k}h.prototype.destroy=function(){f(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var p=r.addListener=function(b,x,k,w){b.addEventListener(x,k,d()),w&&w.$toDestroy.push(new h(b,x,k))},f=r.removeListener=function(b,x,k){b.removeEventListener(x,k,d())};r.stopEvent=function(b){return r.stopPropagation(b),r.preventDefault(b),!1},r.stopPropagation=function(b){b.stopPropagation&&b.stopPropagation()},r.preventDefault=function(b){b.preventDefault&&b.preventDefault()},r.getButton=function(b){return b.type=="dblclick"?0:b.type=="contextmenu"||s.isMac&&b.ctrlKey&&!b.altKey&&!b.shiftKey?2:b.button},r.capture=function(b,x,k){var w=b&&b.ownerDocument||document;function S(T){x&&x(T),k&&k(T),f(w,"mousemove",x),f(w,"mouseup",S),f(w,"dragstart",S)}return p(w,"mousemove",x),p(w,"mouseup",S),p(w,"dragstart",S),S},r.addMouseWheelListener=function(b,x,k){p(b,"wheel",function(w){var S=.15,T=w.deltaX||0,C=w.deltaY||0;switch(w.deltaMode){case w.DOM_DELTA_PIXEL:w.wheelX=T*S,w.wheelY=C*S;break;case w.DOM_DELTA_LINE:var O=15;w.wheelX=T*O,w.wheelY=C*O;break;case w.DOM_DELTA_PAGE:var R=150;w.wheelX=T*R,w.wheelY=C*R;break}x(w)},k)},r.addMultiMouseDownListener=function(b,x,k,w,S){var T=0,C,O,R,_={2:"dblclick",3:"tripleclick",4:"quadclick"};function A(E){if(r.getButton(E)!==0?T=0:E.detail>1?(T++,T>4&&(T=1)):T=1,s.isIE){var M=Math.abs(E.clientX-C)>5||Math.abs(E.clientY-O)>5;(!R||M)&&(T=1),R&&clearTimeout(R),R=setTimeout(function(){R=null},x[T-1]||600),T==1&&(C=E.clientX,O=E.clientY)}if(E._clicks=T,k[w]("mousedown",E),T>4)T=0;else if(T>1)return k[w](_[T],E)}Array.isArray(b)||(b=[b]),b.forEach(function(E){p(E,"mousedown",A,S)})};function g(b){return 0|(b.ctrlKey?1:0)|(b.altKey?2:0)|(b.shiftKey?4:0)|(b.metaKey?8:0)}r.getModifierString=function(b){return i.KEY_MODS[g(b)]};function m(b,x,k){var w=g(x);if(!s.isMac&&l){if(x.getModifierState&&(x.getModifierState("OS")||x.getModifierState("Win"))&&(w|=8),l.altGr)if((3&w)!=3)l.altGr=0;else return;if(k===18||k===17){var S=x.location;if(k===17&&S===1)l[k]==1&&(a=x.timeStamp);else if(k===18&&w===3&&S===2){var T=x.timeStamp-a;T<50&&(l.altGr=!0)}}}if(k in i.MODIFIER_KEYS&&(k=-1),!(!w&&k===13&&x.location===3&&(b(x,w,-k),x.defaultPrevented))){if(s.isChromeOS&&w&8){if(b(x,w,k),x.defaultPrevented)return;w&=-9}return!w&&!(k in i.FUNCTION_KEYS)&&!(k in i.PRINTABLE_KEYS)?!1:b(x,w,k)}}r.addCommandKeyListener=function(b,x,k){var w=null;p(b,"keydown",function(S){l[S.keyCode]=(l[S.keyCode]||0)+1;var T=m(x,S,S.keyCode);return w=S.defaultPrevented,T},k),p(b,"keypress",function(S){w&&(S.ctrlKey||S.altKey||S.shiftKey||S.metaKey)&&(r.stopEvent(S),w=null)},k),p(b,"keyup",function(S){l[S.keyCode]=null},k),l||(v(),p(window,"focus",v))};function v(){l=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!s.isOldIE){var y=1;r.nextTick=function(b,x){x=x||window;var k="zero-timeout-message-"+y++,w=function(S){S.data==k&&(r.stopPropagation(S),f(x,"message",w),b())};p(x,"message",w),x.postMessage(k,"*")}}r.$idleBlocked=!1,r.onIdle=function(b,x){return setTimeout(function k(){r.$idleBlocked?setTimeout(k,100):b()},x)},r.$idleBlockId=null,r.blockIdle=function(b){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},b||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(b){setTimeout(b,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,r,o){var i;o.exports={lineMode:!1,pasteCancelled:function(){return i&&i>Date.now()-50?!0:i=!1},cancel:function(){i=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(n,r,o){var i=n("../lib/event"),s=n("../config").nls,l=n("../lib/useragent"),a=n("../lib/dom"),u=n("../lib/lang"),c=n("../clipboard"),d=l.isChrome<18,h=l.isIE,p=l.isChrome>63,f=400,g=n("../lib/keys"),m=g.KEY_MODS,v=l.isIOS,y=v?/\s/:/\n/,b=l.isMobile,x;x=function(k,w){var S=a.createElement("textarea");S.className="ace_text-input",S.setAttribute("wrap","off"),S.setAttribute("autocorrect","off"),S.setAttribute("autocapitalize","off"),S.setAttribute("spellcheck","false"),S.style.opacity="0",k.insertBefore(S,k.firstChild);var T=!1,C=!1,O=!1,R=!1,_="";b||(S.style.fontSize="1px");var A=!1,E=!1,M="",I=0,N=0,L=0,$=Number.MAX_SAFE_INTEGER,P=Number.MIN_SAFE_INTEGER,F=0;try{var H=document.activeElement===S}catch{}this.setNumberOfExtraLines=function(q){if($=Number.MAX_SAFE_INTEGER,P=Number.MIN_SAFE_INTEGER,q<0){F=0;return}F=q},this.setAriaOptions=function(q){if(q.activeDescendant?(S.setAttribute("aria-haspopup","true"),S.setAttribute("aria-autocomplete",q.inline?"both":"list"),S.setAttribute("aria-activedescendant",q.activeDescendant)):(S.setAttribute("aria-haspopup","false"),S.setAttribute("aria-autocomplete","both"),S.removeAttribute("aria-activedescendant")),q.role&&S.setAttribute("role",q.role),q.setLabel&&(S.setAttribute("aria-roledescription",s("editor")),w.session)){var ue=w.session.selection.cursor.row;S.setAttribute("aria-label",s("Cursor at row $0",[ue+1]))}},this.setAriaOptions({role:"textbox"}),i.addListener(S,"blur",function(q){E||(w.onBlur(q),H=!1)},w),i.addListener(S,"focus",function(q){if(!E){if(H=!0,l.isEdge)try{if(!document.hasFocus())return}catch{}w.onFocus(q),l.isEdge?setTimeout(B):B()}},w),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:w.renderer.enableKeyboardAccessibility}),_||p||this.$focusScroll=="browser")return S.focus({preventScroll:!0});var q=S.style.top;S.style.position="fixed",S.style.top="0px";try{var ue=S.getBoundingClientRect().top!=0}catch{return}var me=[];if(ue)for(var ie=S.parentElement;ie&&ie.nodeType==1;)me.push(ie),ie.setAttribute("ace_nocontext","true"),!ie.parentElement&&ie.getRootNode?ie=ie.getRootNode().host:ie=ie.parentElement;S.focus({preventScroll:!0}),ue&&me.forEach(function(Ce){Ce.removeAttribute("ace_nocontext")}),setTimeout(function(){S.style.position="",S.style.top=="0px"&&(S.style.top=q)},0)},this.blur=function(){S.blur()},this.isFocused=function(){return H},w.on("beforeEndOperation",function(){var q=w.curOp,ue=q&&q.command&&q.command.name;if(ue!="insertstring"){var me=ue&&(q.docChanged||q.selectionChanged);O&&me&&(M=S.value="",Et()),B()}});var W=function(q,ue){for(var me=ue,ie=1;ie<=q-$&&ie<2*F+1;ie++)me+=w.session.getLine(q-ie).length+1;return me},B=v?function(q){if(!(!H||T&&!q||R)){q||(q="");var ue=` ab`+q+`cde fg `;ue!=S.value&&(S.value=M=ue);var me=4,ie=4+(q.length||(w.selection.isEmpty()?0:1));(I!=me||N!=ie)&&S.setSelectionRange(me,ie),I=me,N=ie}}:function(){if(!(O||R)&&!(!H&&!X)){O=!0;var q=0,ue=0,me="";if(w.session){var ie=w.selection,Ce=ie.getRange(),et=ie.cursor.row;et===P+1?($=P+1,P=$+2*F):et===$-1?(P=$-1,$=P-2*F):(et<$-1||et>P+1)&&($=et>F?et-F:0,P=et>F?et+F:2*F);for(var Ye=[],at=$;at<=P;at++)Ye.push(w.session.getLine(at));if(me=Ye.join(` `),q=W(Ce.start.row,Ce.start.column),ue=W(Ce.end.row,Ce.end.column),Ce.start.row<$){var lt=w.session.getLine($-1);q=Ce.start.row<$-1?0:q,ue+=lt.length+1,me=lt+` @@ -5326,40 +5332,40 @@ ${u} `+me,ue+=1,q+=1);me.length>f&&(q=M.length&&q.value===M&&M&&q.selectionEnd!==N},G=function(q){O||(A?A=!1:U(S)?(w.selectAll(),B()):b&&S.selectionStart!=I&&B())},Y=null;this.setInputHandler=function(q){Y=q},this.getInputHandler=function(){return Y};var X=!1,Z=function(q,ue){if(X&&(X=!1),C)return B(),q&&w.onPaste(q),C=!1,"";for(var me=S.selectionStart,ie=S.selectionEnd,Ce=I,et=M.length-N,Ye=q,at=q.length-me,lt=q.length-ie,Fe=0;Ce>0&&M[Fe]==q[Fe];)Fe++,Ce--;for(Ye=Ye.slice(Fe),Fe=1;et>0&&M.length-Fe>I-1&&M[M.length-Fe]==q[q.length-Fe];)Fe++,et--;at-=Fe-1,lt-=Fe-1;var Xt=Ye.length-Fe+1;if(Xt<0&&(Ce=-Xt,Xt=0),Ye=Ye.slice(0,Xt),!ue&&!Ye&&!at&&!Ce&&!et&&!lt)return"";R=!0;var Go=!1;return l.isAndroid&&Ye==". "&&(Ye=" ",Go=!0),Ye&&!Ce&&!et&&!at&&!lt||T?w.onTextInput(Ye):w.onTextInput(Ye,{extendLeft:Ce,extendRight:et,restoreStart:at,restoreEnd:lt}),R=!1,M=q,I=me,N=ie,L=lt,Go?` -`:Ye},ne=function(q){if(O)return Dt();if(q&&q.inputType){if(q.inputType=="historyUndo")return w.execCommand("undo");if(q.inputType=="historyRedo")return w.execCommand("redo")}var ue=S.value,me=Z(ue,!0);(ue.length>f+100||y.test(me)||b&&I<1&&I==N)&&B()},de=function(q,ue,me){var ie=q.clipboardData||window.clipboardData;if(!(!ie||d)){var Ce=h||me?"Text":"text/plain";try{return ue?ie.setData(Ce,ue)!==!1:ie.getData(Ce)}catch(et){if(!me)return de(et,ue,!0)}}},Ie=function(q,ue){var me=w.getCopyText();if(!me)return i.preventDefault(q);de(q,me)?(v&&(B(me),A=me,setTimeout(function(){A=!1},10)),ue?w.onCut():w.onCopy(),i.preventDefault(q)):(A=!0,S.value=me,S.select(),setTimeout(function(){A=!1,B(),ue?w.onCut():w.onCopy()}))},ve=function(q){Ie(q,!0)},Re=function(q){Ie(q,!1)},Se=function(q){var ue=de(q);c.pasteCancelled()||(typeof ue=="string"?(ue&&w.onPaste(ue,q),l.isIE&&setTimeout(B),i.preventDefault(q)):(S.value="",C=!0))};i.addCommandKeyListener(S,function(q,ue,me){if(!O)return w.onCommandKey(q,ue,me)},w),i.addListener(S,"select",G,w),i.addListener(S,"input",ne,w),i.addListener(S,"cut",ve,w),i.addListener(S,"copy",Re,w),i.addListener(S,"paste",Se,w),(!("oncut"in S)||!("oncopy"in S)||!("onpaste"in S))&&i.addListener(k,"keydown",function(q){if(!(l.isMac&&!q.metaKey||!q.ctrlKey))switch(q.keyCode){case 67:Re(q);break;case 86:Se(q);break;case 88:ve(q);break}},w);var yt=function(q){if(!(O||!w.onCompositionStart||w.$readOnly)&&(O={},!T)){q.data&&(O.useTextareaForIME=!1),setTimeout(Dt,0),w._signal("compositionStart"),w.on("mousedown",pr);var ue=w.getSelectionRange();ue.end.row=ue.start.row,ue.end.column=ue.start.column,O.markerRange=ue,O.selectionStart=I,w.onCompositionStart(O),O.useTextareaForIME?(M=S.value="",I=0,N=0):(S.msGetInputContext&&(O.context=S.msGetInputContext()),S.getInputContext&&(O.context=S.getInputContext()))}},Dt=function(){if(!(!O||!w.onCompositionUpdate||w.$readOnly)){if(T)return pr();if(O.useTextareaForIME)w.onCompositionUpdate(S.value);else{var q=S.value;Z(q),O.markerRange&&(O.context&&(O.markerRange.start.column=O.selectionStart=O.context.compositionStartOffset),O.markerRange.end.column=O.markerRange.start.column+N-O.selectionStart+L)}}},Et=function(q){!w.onCompositionEnd||w.$readOnly||(O=!1,w.onCompositionEnd(),w.off("mousedown",pr),q&&ne())};function pr(){E=!0,S.blur(),S.focus(),E=!1}var Pt=u.delayedCall(Dt,50).schedule.bind(null,null);function Dn(q){q.keyCode==27&&S.value.lengthN&&M[lt]==` +`;Xt!=M&&(S.value=M=Xt,I=N=Xt.length)}if(X&&(I=S.selectionStart,N=S.selectionEnd),N!=ue||I!=q||S.selectionEnd!=N)try{S.setSelectionRange(q,ue),I=q,N=ue}catch{}O=!1}};this.resetSelection=B,H&&w.onFocus();var U=function(q){return q.selectionStart===0&&q.selectionEnd>=M.length&&q.value===M&&M&&q.selectionEnd!==N},G=function(q){O||(T?T=!1:U(S)?(w.selectAll(),B()):b&&S.selectionStart!=I&&B())},Y=null;this.setInputHandler=function(q){Y=q},this.getInputHandler=function(){return Y};var X=!1,Z=function(q,ue){if(X&&(X=!1),C)return B(),q&&w.onPaste(q),C=!1,"";for(var me=S.selectionStart,ie=S.selectionEnd,Ce=I,et=M.length-N,Ye=q,at=q.length-me,lt=q.length-ie,Fe=0;Ce>0&&M[Fe]==q[Fe];)Fe++,Ce--;for(Ye=Ye.slice(Fe),Fe=1;et>0&&M.length-Fe>I-1&&M[M.length-Fe]==q[q.length-Fe];)Fe++,et--;at-=Fe-1,lt-=Fe-1;var Xt=Ye.length-Fe+1;if(Xt<0&&(Ce=-Xt,Xt=0),Ye=Ye.slice(0,Xt),!ue&&!Ye&&!at&&!Ce&&!et&&!lt)return"";R=!0;var Go=!1;return l.isAndroid&&Ye==". "&&(Ye=" ",Go=!0),Ye&&!Ce&&!et&&!at&&!lt||A?w.onTextInput(Ye):w.onTextInput(Ye,{extendLeft:Ce,extendRight:et,restoreStart:at,restoreEnd:lt}),R=!1,M=q,I=me,N=ie,L=lt,Go?` +`:Ye},ne=function(q){if(O)return Dt();if(q&&q.inputType){if(q.inputType=="historyUndo")return w.execCommand("undo");if(q.inputType=="historyRedo")return w.execCommand("redo")}var ue=S.value,me=Z(ue,!0);(ue.length>f+100||y.test(me)||b&&I<1&&I==N)&&B()},de=function(q,ue,me){var ie=q.clipboardData||window.clipboardData;if(!(!ie||d)){var Ce=h||me?"Text":"text/plain";try{return ue?ie.setData(Ce,ue)!==!1:ie.getData(Ce)}catch(et){if(!me)return de(et,ue,!0)}}},Ie=function(q,ue){var me=w.getCopyText();if(!me)return i.preventDefault(q);de(q,me)?(v&&(B(me),T=me,setTimeout(function(){T=!1},10)),ue?w.onCut():w.onCopy(),i.preventDefault(q)):(T=!0,S.value=me,S.select(),setTimeout(function(){T=!1,B(),ue?w.onCut():w.onCopy()}))},ve=function(q){Ie(q,!0)},Me=function(q){Ie(q,!1)},Se=function(q){var ue=de(q);c.pasteCancelled()||(typeof ue=="string"?(ue&&w.onPaste(ue,q),l.isIE&&setTimeout(B),i.preventDefault(q)):(S.value="",C=!0))};i.addCommandKeyListener(S,function(q,ue,me){if(!O)return w.onCommandKey(q,ue,me)},w),i.addListener(S,"select",G,w),i.addListener(S,"input",ne,w),i.addListener(S,"cut",ve,w),i.addListener(S,"copy",Me,w),i.addListener(S,"paste",Se,w),(!("oncut"in S)||!("oncopy"in S)||!("onpaste"in S))&&i.addListener(k,"keydown",function(q){if(!(l.isMac&&!q.metaKey||!q.ctrlKey))switch(q.keyCode){case 67:Me(q);break;case 86:Se(q);break;case 88:ve(q);break}},w);var yt=function(q){if(!(O||!w.onCompositionStart||w.$readOnly)&&(O={},!A)){q.data&&(O.useTextareaForIME=!1),setTimeout(Dt,0),w._signal("compositionStart"),w.on("mousedown",fr);var ue=w.getSelectionRange();ue.end.row=ue.start.row,ue.end.column=ue.start.column,O.markerRange=ue,O.selectionStart=I,w.onCompositionStart(O),O.useTextareaForIME?(M=S.value="",I=0,N=0):(S.msGetInputContext&&(O.context=S.msGetInputContext()),S.getInputContext&&(O.context=S.getInputContext()))}},Dt=function(){if(!(!O||!w.onCompositionUpdate||w.$readOnly)){if(A)return fr();if(O.useTextareaForIME)w.onCompositionUpdate(S.value);else{var q=S.value;Z(q),O.markerRange&&(O.context&&(O.markerRange.start.column=O.selectionStart=O.context.compositionStartOffset),O.markerRange.end.column=O.markerRange.start.column+N-O.selectionStart+L)}}},Et=function(q){!w.onCompositionEnd||w.$readOnly||(O=!1,w.onCompositionEnd(),w.off("mousedown",fr),q&&ne())};function fr(){E=!0,S.blur(),S.focus(),E=!1}var Pt=u.delayedCall(Dt,50).schedule.bind(null,null);function Pn(q){q.keyCode==27&&S.value.lengthN&&M[lt]==` `?Fe=g.end:atN&&M.slice(0,lt).split(` -`).length>2?Fe=g.down:lt>N&&M[lt-1]==" "?(Fe=g.right,Xt=m.option):(lt>N||lt==N&&N!=I&&at==lt)&&(Fe=g.right),at!==lt&&(Xt|=m.shift),Fe){var Go=ue.onCommandKey({},Xt,Fe);if(!Go&&ue.commands){Fe=g.keyCodeToString(Fe);var Sl=ue.commands.findKeyCommand(Xt,Fe);Sl&&ue.execCommand(Sl)}I=at,N=lt,B("")}}};document.addEventListener("selectionchange",et),ue.on("destroy",function(){document.removeEventListener("selectionchange",et)})}this.destroy=function(){S.parentElement&&S.parentElement.removeChild(S)}},r.TextInput=x,r.$setUserAgentForTests=function(k,w){b=k,v=w}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,o){var i=n("../lib/useragent"),s=0,l=550,a=function(){function d(h){h.$clickSelection=null;var p=h.editor;p.setDefaultHandler("mousedown",this.onMouseDown.bind(h)),p.setDefaultHandler("dblclick",this.onDoubleClick.bind(h)),p.setDefaultHandler("tripleclick",this.onTripleClick.bind(h)),p.setDefaultHandler("quadclick",this.onQuadClick.bind(h)),p.setDefaultHandler("mousewheel",this.onMouseWheel.bind(h));var f=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];f.forEach(function(g){h[g]=this[g]},this),h.selectByLines=this.extendSelectionBy.bind(h,"getLineRange"),h.selectByWords=this.extendSelectionBy.bind(h,"getWordRange")}return d.prototype.onMouseDown=function(h){var p=h.inSelection(),f=h.getDocumentPosition();this.mousedownEvent=h;var g=this.editor,m=h.getButton();if(m!==0){var v=g.getSelectionRange(),y=v.isEmpty();(y||m==1)&&g.selection.moveToPosition(f),m==2&&(g.textInput.onContextMenu(h.domEvent),i.isMozilla||h.preventDefault());return}if(this.mousedownEvent.time=Date.now(),p&&!g.isFocused()&&(g.focus(),this.$focusTimeout&&!this.$clickSelection&&!g.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(h);return}return this.captureMouse(h),this.startSelect(f,h.domEvent._clicks>1),h.preventDefault()},d.prototype.startSelect=function(h,p){h=h||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var f=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?f.selection.selectToPosition(h):p||f.selection.moveToPosition(h),p||this.select(),f.setStyle("ace_selecting"),this.setState("select"))},d.prototype.select=function(){var h,p=this.editor,f=p.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var g=this.$clickSelection.comparePoint(f);if(g==-1)h=this.$clickSelection.end;else if(g==1)h=this.$clickSelection.start;else{var m=c(this.$clickSelection,f);f=m.cursor,h=m.anchor}p.selection.setSelectionAnchor(h.row,h.column)}p.selection.selectToPosition(f),p.renderer.scrollCursorIntoView()},d.prototype.extendSelectionBy=function(h){var p,f=this.editor,g=f.renderer.screenToTextCoordinates(this.x,this.y),m=f.selection[h](g.row,g.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(m.start),y=this.$clickSelection.comparePoint(m.end);if(v==-1&&y<=0)p=this.$clickSelection.end,(m.end.row!=g.row||m.end.column!=g.column)&&(g=m.start);else if(y==1&&v>=0)p=this.$clickSelection.start,(m.start.row!=g.row||m.start.column!=g.column)&&(g=m.end);else if(v==-1&&y==1)g=m.end,p=m.start;else{var b=c(this.$clickSelection,g);g=b.cursor,p=b.anchor}f.selection.setSelectionAnchor(p.row,p.column)}f.selection.selectToPosition(g),f.renderer.scrollCursorIntoView()},d.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},d.prototype.focusWait=function(){var h=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),p=Date.now();(h>s||p-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},d.prototype.onDoubleClick=function(h){var p=h.getDocumentPosition(),f=this.editor,g=f.session,m=g.getBracketRange(p);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=f.selection.getWordRange(p.row,p.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},d.prototype.onTripleClick=function(h){var p=h.getDocumentPosition(),f=this.editor;this.setState("selectByLines");var g=f.getSelectionRange();g.isMultiLine()&&g.contains(p.row,p.column)?(this.$clickSelection=f.selection.getLineRange(g.start.row),this.$clickSelection.end=f.selection.getLineRange(g.end.row).end):this.$clickSelection=f.selection.getLineRange(p.row),this.select()},d.prototype.onQuadClick=function(h){var p=this.editor;p.selectAll(),this.$clickSelection=p.getSelectionRange(),this.setState("selectAll")},d.prototype.onMouseWheel=function(h){if(!h.getAccelKey()){h.getShiftKey()&&h.wheelY&&!h.wheelX&&(h.wheelX=h.wheelY,h.wheelY=0);var p=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var f=this.$lastScroll,g=h.domEvent.timeStamp,m=g-f.t,v=m?h.wheelX/m:f.vx,y=m?h.wheelY/m:f.vy;m=1&&p.renderer.isScrollableBy(h.wheelX*h.speed,0)&&(x=!0),b<=1&&p.renderer.isScrollableBy(0,h.wheelY*h.speed)&&(x=!0),x)f.allowed=g;else if(g-f.allowedl.clientHeight;a||s.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,r,o){var i=this&&this.__extends||function(){var g=function(m,v){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(y[x]=b[x])},g(m,v)};return function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");g(m,v);function y(){this.constructor=m}m.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),s=this&&this.__values||function(g){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&g[m],y=0;if(v)return v.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&y>=g.length&&(g=void 0),{value:g&&g[y++],done:!g}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},l=n("./lib/dom");n("./lib/event");var a=n("./range").Range,u=n("./lib/scroll").preventParentScroll,c="ace_tooltip",d=function(){function g(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return g.prototype.$init=function(){return this.$element=l.createElement("div"),this.$element.className=c,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},g.prototype.getElement=function(){return this.$element||this.$init()},g.prototype.setText=function(m){this.getElement().textContent=m},g.prototype.setHtml=function(m){this.getElement().innerHTML=m},g.prototype.setPosition=function(m,v){this.getElement().style.left=m+"px",this.getElement().style.top=v+"px"},g.prototype.setClassName=function(m){l.addCssClass(this.getElement(),m)},g.prototype.setTheme=function(m){this.$element.className=c+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},g.prototype.show=function(m,v,y){m!=null&&this.setText(m),v!=null&&y!=null&&this.setPosition(v,y),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},g.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=c,this.isOpen=!1)},g.prototype.getHeight=function(){return this.getElement().offsetHeight},g.prototype.getWidth=function(){return this.getElement().offsetWidth},g.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},g}(),h=function(){function g(){this.popups=[]}return g.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},g.prototype.removePopup=function(m){var v=this.popups.indexOf(m);v!==-1&&(this.popups.splice(v,1),this.updatePopups())},g.prototype.updatePopups=function(){var m,v,y,b;this.popups.sort(function(_,T){return T.priority-_.priority});var x=[];try{for(var k=s(this.popups),w=k.next();!w.done;w=k.next()){var S=w.value,A=!0;try{for(var C=(y=void 0,s(x)),O=C.next();!O.done;O=C.next()){var R=O.value;if(this.doPopupsOverlap(R,S)){A=!1;break}}}catch(_){y={error:_}}finally{try{O&&!O.done&&(b=C.return)&&b.call(C)}finally{if(y)throw y.error}}A?x.push(S):S.hide()}}catch(_){m={error:_}}finally{try{w&&!w.done&&(v=k.return)&&v.call(k)}finally{if(m)throw m.error}}},g.prototype.doPopupsOverlap=function(m,v){var y=m.getElement().getBoundingClientRect(),b=v.getElement().getBoundingClientRect();return y.leftb.left&&y.topb.top},g}(),p=new h;r.popupManager=p,r.Tooltip=d;var f=function(g){i(m,g);function m(v){v===void 0&&(v=document.body);var y=g.call(this,v)||this;y.timeout=void 0,y.lastT=0,y.idleTime=350,y.lastEvent=void 0,y.onMouseOut=y.onMouseOut.bind(y),y.onMouseMove=y.onMouseMove.bind(y),y.waitForHover=y.waitForHover.bind(y),y.hide=y.hide.bind(y);var b=y.getElement();return b.style.whiteSpace="pre-wrap",b.style.pointerEvents="auto",b.addEventListener("mouseout",y.onMouseOut),b.tabIndex=-1,b.addEventListener("blur",(function(){b.contains(document.activeElement)||this.hide()}).bind(y)),b.addEventListener("wheel",u),y}return m.prototype.addToEditor=function(v){v.on("mousemove",this.onMouseMove),v.on("mousedown",this.hide),v.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(v){v.off("mousemove",this.onMouseMove),v.off("mousedown",this.hide),v.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(v,y){this.lastEvent=v,this.lastT=Date.now();var b=y.$mouseHandler.isMousePressed;if(this.isOpen){var x=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(x.row,x.column)||b||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||b||(this.lastEvent=v,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var v=Date.now()-this.lastT;if(this.idleTime-v>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-v);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},m.prototype.isOutsideOfText=function(v){var y=v.editor,b=v.getDocumentPosition(),x=y.session.getLine(b.row);if(b.column==x.length){var k=y.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),w=y.session.documentToScreenPosition(b.row,b.column);if(w.column!=k.column||w.row!=k.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,b,x){var k=10;if(!(x&&x!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var w=v.renderer;this.isOpen||(p.addPopup(this),this.$registerCloseEvents(),this.setTheme(w.theme)),this.isOpen=!0,this.addMarker(y,v.session),this.range=a.fromPoints(y.start,y.end);var S=w.textToScreenCoordinates(y.start.row,y.start.column),A=w.scroller.getBoundingClientRect();S.pageX=p.length&&(p=void 0),{value:p&&p[m++],done:!p}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},l=n("../lib/dom"),a=n("../lib/event"),u=n("../tooltip").Tooltip,c=n("../config").nls;function d(p){var f=p.editor,g=f.renderer.$gutterLayer,m=new h(f);p.editor.setDefaultHandler("guttermousedown",function(w){if(!(!f.isFocused()||w.getButton()!=0)){var S=g.getRegion(w);if(S!="foldWidgets"){var A=w.getDocumentPosition().row,C=f.session.selection;if(w.getShiftKey())C.selectTo(A,0);else{if(w.domEvent.detail==2)return f.selectAll(),w.preventDefault();p.$clickSelection=f.selection.getLineRange(A)}return p.setState("selectByLines"),p.captureMouse(w),w.preventDefault()}}});var v,y;function b(){var w=y.getDocumentPosition().row,S=f.session.getLength();if(w==S){var A=f.renderer.pixelToScreenCoordinates(0,y.y).row,C=y.$pos;if(A>f.session.documentToScreenRow(C.row,C.column))return x()}if(m.showTooltip(w),!!m.isOpen)if(f.on("mousewheel",x),p.$tooltipFollowsMouse)k(y);else{var O=y.getGutterRow(),R=g.$lines.get(O);if(R){var _=R.element.querySelector(".ace_gutter_annotation"),T=_.getBoundingClientRect(),E=m.getElement().style;E.left=T.right+"px",E.top=T.bottom+"px"}else k(y)}}function x(){v&&(v=clearTimeout(v)),m.isOpen&&(m.hideTooltip(),f.off("mousewheel",x))}function k(w){m.setPosition(w.x,w.y)}p.editor.setDefaultHandler("guttermousemove",function(w){var S=w.domEvent.target||w.domEvent.srcElement;if(l.hasCssClass(S,"ace_fold-widget"))return x();m.isOpen&&p.$tooltipFollowsMouse&&k(w),y=w,!v&&(v=setTimeout(function(){v=null,y&&!p.isMousePressed?b():x()},50))}),a.addListener(f.renderer.$gutter,"mouseout",function(w){y=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,x()},50))},f),f.on("changeSession",x),f.on("input",x)}r.GutterHandler=d;var h=function(p){i(f,p);function f(g){var m=p.call(this,g.container)||this;return m.editor=g,m}return f.prototype.setPosition=function(g,m){var v=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,b=this.getWidth(),x=this.getHeight();g+=15,m+=15,g+b>v&&(g-=g+b-v),m+x>y&&(m-=20+x),u.prototype.setPosition.call(this,g,m)},Object.defineProperty(f,"annotationLabels",{get:function(){return{error:{singular:c("error"),plural:c("errors")},warning:{singular:c("warning"),plural:c("warnings")},info:{singular:c("information message"),plural:c("information messages")}}},enumerable:!1,configurable:!0}),f.prototype.showTooltip=function(g){var m=this.editor.renderer.$gutterLayer,v=m.$annotations[g],y;v?y={text:Array.from(v.text),type:Array.from(v.type)}:y={text:[],type:[]};var b=m.session.getFoldLine(g);if(b&&m.$showFoldedAnnotations){for(var x={error:[],warning:[],info:[]},k,w=g+1;w<=b.end.row;w++)if(m.$annotations[w])for(var S=0;S ").concat(y.text[w]);O[y.type[w].replace("_fold","")].push(_)}var T=[].concat(O.error,O.warning,O.info).join("
    ");this.setHtml(T),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},f.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},f.annotationsToSummaryString=function(g){var m,v,y=[],b=["error","warning","info"];try{for(var x=s(b),k=x.next();!k.done;k=x.next()){var w=k.value;if(g[w].length){var S=g[w].length===1?f.annotationLabels[w].singular:f.annotationLabels[w].plural;y.push("".concat(g[w].length," ").concat(S))}}}catch(A){m={error:A}}finally{try{k&&!k.done&&(v=x.return)&&v.call(x)}finally{if(m)throw m.error}}return y.join(", ")},f}(u);r.GutterTooltip=h}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,o){var i=n("../lib/event"),s=n("../lib/useragent"),l=function(){function a(u,c){this.speed,this.wheelX,this.wheelY,this.domEvent=u,this.editor=c,this.x=this.clientX=u.clientX,this.y=this.clientY=u.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return a.prototype.stopPropagation=function(){i.stopPropagation(this.domEvent),this.propagationStopped=!0},a.prototype.preventDefault=function(){i.preventDefault(this.domEvent),this.defaultPrevented=!0},a.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},a.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},a.prototype.getGutterRow=function(){var u=this.getDocumentPosition().row,c=this.editor.session.documentToScreenRow(u,0),d=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return c-d},a.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var u=this.editor,c=u.getSelectionRange();if(c.isEmpty())this.$inSelection=!1;else{var d=this.getDocumentPosition();this.$inSelection=c.contains(d.row,d.column)}return this.$inSelection},a.prototype.getButton=function(){return i.getButton(this.domEvent)},a.prototype.getShiftKey=function(){return this.domEvent.shiftKey},a.prototype.getAccelKey=function(){return s.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},a}();r.MouseEvent=l}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,r,o){var i=n("../lib/dom"),s=n("../lib/event"),l=n("../lib/useragent"),a=200,u=200,c=5;function d(p){var f=p.editor,g=i.createElement("div");g.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",g.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(W){p[W]=this[W]},this),f.on("mousedown",this.onMouseDown.bind(p));var v=f.container,y,b,x,k,w,S,A=0,C,O,R,_,T;this.onDragStart=function(W){if(this.cancelDrag||!v.draggable){var B=this;return setTimeout(function(){B.startSelect(),B.captureMouse(W)},0),W.preventDefault()}w=f.getSelectionRange();var U=W.dataTransfer;U.effectAllowed=f.getReadOnly()?"copy":"copyMove",f.container.appendChild(g),U.setDragImage&&U.setDragImage(g,0,0),setTimeout(function(){f.container.removeChild(g)}),U.clearData(),U.setData("Text",f.session.getTextRange()),O=!0,this.setState("drag")},this.onDragEnd=function(W){if(v.draggable=!1,O=!1,this.setState(null),!f.getReadOnly()){var B=W.dataTransfer.dropEffect;!C&&B=="move"&&f.session.remove(f.getSelectionRange()),f.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(W){if(!(f.getReadOnly()||!F(W.dataTransfer)))return b=W.clientX,x=W.clientY,y||N(),A++,W.dataTransfer.dropEffect=C=H(W),s.preventDefault(W)},this.onDragOver=function(W){if(!(f.getReadOnly()||!F(W.dataTransfer)))return b=W.clientX,x=W.clientY,y||(N(),A++),$!==null&&($=null),W.dataTransfer.dropEffect=C=H(W),s.preventDefault(W)},this.onDragLeave=function(W){if(A--,A<=0&&y)return L(),C=null,s.preventDefault(W)},this.onDrop=function(W){if(S){var B=W.dataTransfer;if(O)switch(C){case"move":w.contains(S.row,S.column)?w={start:S,end:S}:w=f.moveText(w,S);break;case"copy":w=f.moveText(w,S,!0);break}else{var U=B.getData("Text");w={start:S,end:f.session.insert(S,U)},f.focus(),C=null}return L(),s.preventDefault(W)}},s.addListener(v,"dragstart",this.onDragStart.bind(p),f),s.addListener(v,"dragend",this.onDragEnd.bind(p),f),s.addListener(v,"dragenter",this.onDragEnter.bind(p),f),s.addListener(v,"dragover",this.onDragOver.bind(p),f),s.addListener(v,"dragleave",this.onDragLeave.bind(p),f),s.addListener(v,"drop",this.onDrop.bind(p),f);function E(W,B){var U=Date.now(),G=!B||W.row!=B.row,Y=!B||W.column!=B.column;if(!_||G||Y)f.moveCursorToPosition(W),_=U,T={x:b,y:x};else{var X=h(T.x,T.y,b,x);X>c?_=null:U-_>=u&&(f.renderer.scrollCursorIntoView(),_=null)}}function M(W,B){var U=Date.now(),G=f.renderer.layerConfig.lineHeight,Y=f.renderer.layerConfig.characterWidth,X=f.renderer.scroller.getBoundingClientRect(),Z={x:{left:b-X.left,right:X.right-b},y:{top:x-X.top,bottom:X.bottom-x}},ne=Math.min(Z.x.left,Z.x.right),de=Math.min(Z.y.top,Z.y.bottom),Ie={row:W.row,column:W.column};ne/Y<=2&&(Ie.column+=Z.x.left=a&&f.renderer.scrollCursorIntoView(Ie):R=U:R=null}function I(){var W=S;S=f.renderer.screenToTextCoordinates(b,x),E(S,W),M(S,W)}function N(){w=f.selection.toOrientedRange(),y=f.session.addMarker(w,"ace_selection",f.getSelectionStyle()),f.clearSelection(),f.isFocused()&&f.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),I(),k=setInterval(I,20),A=0,s.addListener(document,"mousemove",P)}function L(){clearInterval(k),f.session.removeMarker(y),y=null,f.selection.fromOrientedRange(w),f.isFocused()&&!O&&f.$resetCursorStyle(),w=null,S=null,A=0,R=null,_=null,s.removeListener(document,"mousemove",P)}var $=null;function P(){$==null&&($=setTimeout(function(){$!=null&&y&&L()},20))}function F(W){var B=W.types;return!B||Array.prototype.some.call(B,function(U){return U=="text/plain"||U=="Text"})}function H(W){var B=["copy","copymove","all","uninitialized"],U=["move","copymove","linkmove","all","uninitialized"],G=l.isMac?W.altKey:W.ctrlKey,Y="uninitialized";try{Y=W.dataTransfer.effectAllowed.toLowerCase()}catch{}var X="none";return G&&B.indexOf(Y)>=0?X="copy":U.indexOf(Y)>=0?X="move":B.indexOf(Y)>=0&&(X="copy"),X}}(function(){this.dragWait=function(){var p=Date.now()-this.mousedownEvent.time;p>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var p=this.editor.container;p.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(p){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var p=this.editor,f=p.container;f.draggable=!0,p.renderer.$cursorLayer.setBlinking(!1),p.setStyle("ace_dragging");var g=l.isWin?"default":"move";p.renderer.setCursorStyle(g),this.setState("dragReady")},this.onMouseDrag=function(p){var f=this.editor.container;if(l.isIE&&this.state=="dragReady"){var g=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);g>3&&f.dragDrop()}if(this.state==="dragWait"){var g=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);g>0&&(f.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(p){if(this.$dragEnabled){this.mousedownEvent=p;var f=this.editor,g=p.inSelection(),m=p.getButton(),v=p.domEvent.detail||1;if(v===1&&m===0&&g){if(p.editor.inMultiSelectMode&&(p.getAccelKey()||p.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=p.domEvent.target||p.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),f.getDragDelay()){if(l.isWebKit){this.cancelDrag=!0;var b=f.container;b.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(p,this.onMouseDrag.bind(this)),p.defaultPrevented=!0}}}}).call(d.prototype);function h(p,f,g,m){return Math.sqrt(Math.pow(g-p,2)+Math.pow(m-f,2))}r.DragdropHandler=d}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,r,o){var i=n("./mouse_event").MouseEvent,s=n("../lib/event"),l=n("../lib/dom");r.addTouchListeners=function(a,u){var c="scroll",d,h,p,f,g,m,v=0,y,b=0,x=0,k=0,w,S;function A(){var E=window.navigator&&window.navigator.clipboard,M=!1,I=function(){var L=u.getCopyText(),$=u.session.getUndoManager().hasUndo();S.replaceChild(l.buildDom(M?["span",!L&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],L&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],L&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],E&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],$&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),S.firstChild)},N=function(L){var $=L.target.getAttribute("action");if($=="more"||!M)return M=!M,I();$=="paste"?E.readText().then(function(P){u.execCommand($,P)}):$&&(($=="cut"||$=="copy")&&(E?E.writeText(u.getCopyText()):document.execCommand("copy")),u.execCommand($)),S.firstChild.style.display="none",M=!1,$!="openCommandPalette"&&u.focus()};S=l.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(L){c="menu",L.stopPropagation(),L.preventDefault(),u.textInput.focus()},ontouchend:function(L){L.stopPropagation(),L.preventDefault(),N(L)},onclick:N},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],u.container)}function C(){S||A();var E=u.selection.cursor,M=u.renderer.textToScreenCoordinates(E.row,E.column),I=u.renderer.textToScreenCoordinates(0,0).pageX,N=u.renderer.scrollLeft,L=u.container.getBoundingClientRect();S.style.top=M.pageY-L.top-3+"px",M.pageX-L.left=2?u.selection.getLineRange(y.row):u.session.getBracketRange(y);E&&!E.isEmpty()?u.selection.setRange(E):u.selection.selectWord(),c="wait"}s.addListener(a,"contextmenu",function(E){if(w){var M=u.textInput.getElement();M.focus()}},u),s.addListener(a,"touchstart",function(E){var M=E.touches;if(g||M.length>1){clearTimeout(g),g=null,p=-1,c="zoom";return}w=u.$mouseHandler.isMousePressed=!0;var I=u.renderer.layerConfig.lineHeight,N=u.renderer.layerConfig.lineHeight,L=E.timeStamp;f=L;var $=M[0],P=$.clientX,F=$.clientY;Math.abs(d-P)+Math.abs(h-F)>I&&(p=-1),d=E.clientX=P,h=E.clientY=F,x=k=0;var H=new i(E,u);if(y=H.getDocumentPosition(),L-p<500&&M.length==1&&!v)b++,E.preventDefault(),E.button=0,_();else{b=0;var W=u.selection.cursor,B=u.selection.isEmpty()?W:u.selection.anchor,U=u.renderer.$cursorLayer.getPixelPosition(W,!0),G=u.renderer.$cursorLayer.getPixelPosition(B,!0),Y=u.renderer.scroller.getBoundingClientRect(),X=u.renderer.layerConfig.offset,Z=u.renderer.scrollLeft,ne=function(ve,Re){return ve=ve/N,Re=Re/I-.75,ve*ve+Re*Re};if(E.clientXIe?"cursor":"anchor"),Ie<3.5?c="anchor":de<3.5?c="cursor":c="scroll",g=setTimeout(R,450)}p=L},u),s.addListener(a,"touchend",function(E){w=u.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),c=="zoom"?(c="",v=0):g?(u.selection.moveToPosition(y),v=0,C()):c=="scroll"?(T(),O()):C(),clearTimeout(g),g=null},u),s.addListener(a,"touchmove",function(E){g&&(clearTimeout(g),g=null);var M=E.touches;if(!(M.length>1||c=="zoom")){var I=M[0],N=d-I.clientX,L=h-I.clientY;if(c=="wait")if(N*N+L*L>4)c="cursor";else return E.preventDefault();d=I.clientX,h=I.clientY,E.clientX=I.clientX,E.clientY=I.clientY;var $=E.timeStamp,P=$-f;if(f=$,c=="scroll"){var F=new i(E,u);F.speed=1,F.wheelX=N,F.wheelY=L,10*Math.abs(N)0)if(Ie==16){for(Se=Re;Se-1){for(Se=Re;Se=0&&G[Et]==w;Et--)B[Et]=i}}}function P(W,B,U){if(!(s=W){for(X=Y+1;X=W;)X++;for(Z=Y,ne=X-1;Z=B.length||(X=U[G-1])!=m&&X!=v||(Z=B[G+1])!=m&&Z!=v?y:(l&&(Z=v),Z==X?Z:y);case A:return X=G>0?U[G-1]:b,X==m&&G+10&&U[G-1]==m)return m;if(l)return y;for(de=G+1,ne=B.length;de=1425&&Ie<=2303||Ie==64286;if(X=B[de],ve&&(X==g||X==k))return g}return G<1||(X=B[G-1])==b?y:U[G-1];case b:return l=!1,a=!0,i;case x:return u=!0,y;case R:case _:case E:case M:case T:l=!1;case I:return y}}function H(W){var B=W.charCodeAt(0),U=B>>8;return U==0?B>191?f:N[B]:U==5?/[\u0591-\u05f4]/.test(W)?g:f:U==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(W)?O:/[\u0660-\u0669\u066b-\u066c]/.test(W)?v:B==1642?C:/[\u06f0-\u06f9]/.test(W)?m:k:U==32&&B<=8287?L[B&255]:U==254&&B>=65136?k:y}r.L=f,r.R=g,r.EN=m,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(W,B,U){if(W.length<2)return{};var G=W.split(""),Y=new Array(G.length),X=new Array(G.length),Z=[];i=U?p:h,$(G,Z,G.length,B);for(var ne=0;nek&&B[ne]0&&G[ne-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(G[ne])&&(Z[ne-1]=Z[ne]=r.R_H,ne++);G[G.length-1]===r.DOT&&(Z[G.length-1]=r.B),G[0]==="‫"&&(Z[0]=r.RLE);for(var ne=0;ne=0&&(c=this.session.$docRowCache[h])}return c},u.prototype.getSplitIndex=function(){var c=0,d=this.session.$screenRowCache;if(d.length)for(var h,p=this.session.$getRowCacheIndex(d,this.currentRow);this.currentRow-c>0&&(h=this.session.$getRowCacheIndex(d,this.currentRow-c-1),h===p);)p=h,c++;else c=this.currentRow;return c},u.prototype.updateRowLine=function(c,d){c===void 0&&(c=this.getDocumentRow());var h=c===this.session.getLength()-1,p=h?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(c),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var f=this.session.$wrapData[c];f&&(d===void 0&&(d=this.getSplitIndex()),d>0&&f.length?(this.wrapIndent=f.indent,this.wrapOffset=this.wrapIndent*this.charWidths[i.L],this.line=dd?this.session.getOverwrite()?c:c-1:d,p=i.getVisualFromLogicalIdx(h,this.bidiMap),f=this.bidiMap.bidiLevels,g=0;!this.session.getOverwrite()&&c<=d&&f[p]%2!==0&&p++;for(var m=0;md&&f[p]%2===0&&(g+=this.charWidths[f[p]]),this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(g+=this.rtlLineOffset),g},u.prototype.getSelections=function(c,d){var h=this.bidiMap,p=h.bidiLevels,f,g=[],m=0,v=Math.min(c,d)-this.wrapIndent,y=Math.max(c,d)-this.wrapIndent,b=!1,x=!1,k=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var w,S=0;S=v&&wp+m/2;){if(p+=m,f===g.length-1){m=0;break}m=this.charWidths[g[++f]]}return f>0&&g[f-1]%2!==0&&g[f]%2===0?(h0&&g[f-1]%2===0&&g[f]%2!==0?d=1+(h>p?this.bidiMap.logicalFromVisual[f]:this.bidiMap.logicalFromVisual[f-1]):this.isRtlDir&&f===g.length-1&&m===0&&g[f-1]%2===0||!this.isRtlDir&&f===0&&g[f]%2!==0?d=1+this.bidiMap.logicalFromVisual[f]:(f>0&&g[f-1]%2!==0&&m!==0&&f--,d=this.bidiMap.logicalFromVisual[f]),d===0&&this.isRtlDir&&d++,d+this.wrapIndent},u}();r.BidiHandler=a}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,r,o){var i=n("./lib/oop"),s=n("./lib/lang"),l=n("./lib/event_emitter").EventEmitter,a=n("./range").Range,u=function(){function c(d){this.session=d,this.doc=d.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var h=this;this.cursor.on("change",function(p){h.$cursorChanged=!0,h.$silent||h._emit("changeCursor"),!h.$isEmpty&&!h.$silent&&h._emit("changeSelection"),!h.$keepDesiredColumnOnChange&&p.old.column!=p.value.column&&(h.$desiredColumn=null)}),this.anchor.on("change",function(){h.$anchorChanged=!0,!h.$isEmpty&&!h.$silent&&h._emit("changeSelection")})}return c.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},c.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},c.prototype.getCursor=function(){return this.lead.getPosition()},c.prototype.setAnchor=function(d,h){this.$isEmpty=!1,this.anchor.setPosition(d,h)},c.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},c.prototype.getSelectionLead=function(){return this.lead.getPosition()},c.prototype.isBackwards=function(){var d=this.anchor,h=this.lead;return d.row>h.row||d.row==h.row&&d.column>h.column},c.prototype.getRange=function(){var d=this.anchor,h=this.lead;return this.$isEmpty?a.fromPoints(h,h):this.isBackwards()?a.fromPoints(h,d):a.fromPoints(d,h)},c.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},c.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},c.prototype.setRange=function(d,h){var p=h?d.end:d.start,f=h?d.start:d.end;this.$setSelection(p.row,p.column,f.row,f.column)},c.prototype.$setSelection=function(d,h,p,f){if(!this.$silent){var g=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(d,h),this.cursor.setPosition(p,f),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||g!=this.$isEmpty||m)&&this._emit("changeSelection")}},c.prototype.$moveSelection=function(d){var h=this.lead;this.$isEmpty&&this.setSelectionAnchor(h.row,h.column),d.call(this)},c.prototype.selectTo=function(d,h){this.$moveSelection(function(){this.moveCursorTo(d,h)})},c.prototype.selectToPosition=function(d){this.$moveSelection(function(){this.moveCursorToPosition(d)})},c.prototype.moveTo=function(d,h){this.clearSelection(),this.moveCursorTo(d,h)},c.prototype.moveToPosition=function(d){this.clearSelection(),this.moveCursorToPosition(d)},c.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},c.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},c.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},c.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},c.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},c.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},c.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},c.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},c.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},c.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},c.prototype.getWordRange=function(d,h){if(typeof h>"u"){var p=d||this.lead;d=p.row,h=p.column}return this.session.getWordRange(d,h)},c.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},c.prototype.selectAWord=function(){var d=this.getCursor(),h=this.session.getAWordRange(d.row,d.column);this.setSelectionRange(h)},c.prototype.getLineRange=function(d,h){var p=typeof d=="number"?d:this.lead.row,f,g=this.session.getFoldLine(p);return g?(p=g.start.row,f=g.end.row):f=p,h===!0?new a(p,0,f,this.session.getLine(f).length):new a(p,0,f+1,0)},c.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},c.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},c.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},c.prototype.wouldMoveIntoSoftTab=function(d,h,p){var f=d.column,g=d.column+h;return p<0&&(f=d.column-h,g=d.column),this.session.isTabStop(d)&&this.doc.getLine(d.row).slice(f,g).split(" ").length-1==h},c.prototype.moveCursorLeft=function(){var d=this.lead.getPosition(),h;if(h=this.session.getFoldAt(d.row,d.column,-1))this.moveCursorTo(h.start.row,h.start.column);else if(d.column===0)d.row>0&&this.moveCursorTo(d.row-1,this.doc.getLine(d.row-1).length);else{var p=this.session.getTabSize();this.wouldMoveIntoSoftTab(d,p,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-p):this.moveCursorBy(0,-1)}},c.prototype.moveCursorRight=function(){var d=this.lead.getPosition(),h;if(h=this.session.getFoldAt(d.row,d.column,1))this.moveCursorTo(h.end.row,h.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(h.column=f)}}this.moveCursorTo(h.row,h.column)},c.prototype.moveCursorFileEnd=function(){var d=this.doc.getLength()-1,h=this.doc.getLine(d).length;this.moveCursorTo(d,h)},c.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},c.prototype.moveCursorLongWordRight=function(){var d=this.lead.row,h=this.lead.column,p=this.doc.getLine(d),f=p.substring(h);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var g=this.session.getFoldAt(d,h,1);if(g){this.moveCursorTo(g.end.row,g.end.column);return}if(this.session.nonTokenRe.exec(f)&&(h+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,f=p.substring(h)),h>=p.length){this.moveCursorTo(d,p.length),this.moveCursorRight(),d0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(g)&&(h-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(d,h)},c.prototype.$shortWordEndIndex=function(d){var h=0,p,f=/\s/,g=this.session.tokenRe;if(g.lastIndex=0,this.session.tokenRe.exec(d))h=this.session.tokenRe.lastIndex;else{for(;(p=d[h])&&f.test(p);)h++;if(h<1){for(g.lastIndex=0;(p=d[h])&&!g.test(p);)if(g.lastIndex=0,h++,f.test(p))if(h>2){h--;break}else{for(;(p=d[h])&&f.test(p);)h++;if(h>2)break}}}return g.lastIndex=0,h},c.prototype.moveCursorShortWordRight=function(){var d=this.lead.row,h=this.lead.column,p=this.doc.getLine(d),f=p.substring(h),g=this.session.getFoldAt(d,h,1);if(g)return this.moveCursorTo(g.end.row,g.end.column);if(h==p.length){var m=this.doc.getLength();do d++,f=this.doc.getLine(d);while(d0&&/^\s*$/.test(f));h=f.length,/\s+$/.test(f)||(f="")}var g=s.stringReverse(f),m=this.$shortWordEndIndex(g);return this.moveCursorTo(d,h-m)},c.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},c.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},c.prototype.moveCursorBy=function(d,h){var p=this.session.documentToScreenPosition(this.lead.row,this.lead.column),f;if(h===0&&(d!==0&&(this.session.$bidiHandler.isBidiRow(p.row,this.lead.row)?(f=this.session.$bidiHandler.getPosLeft(p.column),p.column=Math.round(f/this.session.$bidiHandler.charWidths[0])):f=p.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?p.column=this.$desiredColumn:this.$desiredColumn=p.column),d!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var g=this.session.lineWidgets[this.lead.row];d<0?d-=g.rowsAbove||0:d>0&&(d+=g.rowCount-(g.rowsAbove||0))}var m=this.session.screenToDocumentPosition(p.row+d,p.column,f);d!==0&&h===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+h,h===0)},c.prototype.moveCursorToPosition=function(d){this.moveCursorTo(d.row,d.column)},c.prototype.moveCursorTo=function(d,h,p){var f=this.session.getFoldAt(d,h,1);f&&(d=f.start.row,h=f.start.column),this.$keepDesiredColumnOnChange=!0;var g=this.session.getLine(d);/[\uDC00-\uDFFF]/.test(g.charAt(h))&&g.charAt(h-1)&&(this.lead.row==d&&this.lead.column==h+1?h=h-1:h=h+1),this.lead.setPosition(d,h),this.$keepDesiredColumnOnChange=!1,p||(this.$desiredColumn=null)},c.prototype.moveCursorToScreen=function(d,h,p){var f=this.session.screenToDocumentPosition(d,h);this.moveCursorTo(f.row,f.column,p)},c.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},c.prototype.fromOrientedRange=function(d){this.setSelectionRange(d,d.cursor==d.start),this.$desiredColumn=d.desiredColumn||this.$desiredColumn},c.prototype.toOrientedRange=function(d){var h=this.getRange();return d?(d.start.column=h.start.column,d.start.row=h.start.row,d.end.column=h.end.column,d.end.row=h.end.row):d=h,d.cursor=this.isBackwards()?d.start:d.end,d.desiredColumn=this.$desiredColumn,d},c.prototype.getRangeOfMovements=function(d){var h=this.getCursor();try{d(this);var p=this.getCursor();return a.fromPoints(h,p)}catch{return a.fromPoints(h,h)}finally{this.moveCursorToPosition(h)}},c.prototype.toJSON=function(){if(this.rangeCount)var d=this.ranges.map(function(h){var p=h.clone();return p.isBackwards=h.cursor==h.start,p});else{var d=this.getRange();d.isBackwards=this.isBackwards()}return d},c.prototype.fromJSON=function(d){if(d.start==null)if(this.rangeList&&d.length>1){this.toSingleRange(d[0]);for(var h=d.length;h--;){var p=a.fromPoints(d[h].start,d[h].end);d[h].isBackwards&&(p.cursor=p.start),this.addRange(p,!0)}return}else d=d[0];this.rangeList&&this.toSingleRange(d),this.setSelectionRange(d,d.isBackwards)},c.prototype.isEqual=function(d){if((d.length||this.rangeCount)&&d.length!=this.rangeCount)return!1;if(!d.length||!this.ranges)return this.getRange().isEqual(d);for(var h=this.ranges.length;h--;)if(!this.ranges[h].isEqual(d[h]))return!1;return!0},c}();u.prototype.setSelectionAnchor=u.prototype.setAnchor,u.prototype.getSelectionAnchor=u.prototype.getAnchor,u.prototype.setSelectionRange=u.prototype.setRange,i.implement(u.prototype,l),r.Selection=u}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,r,o){var i=n("./lib/report_error").reportError,s=2e3,l=function(){function a(u){this.splitRegex,this.states=u,this.regExps={},this.matchMappings={};for(var c in this.states){for(var d=this.states[c],h=[],p=0,f=this.matchMappings[c]={defaultToken:"text"},g="g",m=[],v=0;v1?y.onMatch=this.$applyToken:y.onMatch=y.token),x>1&&(/\\\d/.test(y.regex)?b=y.regex.replace(/\\([0-9]+)/g,function(k,w){return"\\"+(parseInt(w,10)+p+1)}):(x=1,b=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),f[p]=v,p+=x,h.push(b),y.onMatch||(y.onMatch=null)}}h.length||(f[0]=0,h.push("$")),m.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,g)},this),this.regExps[c]=new RegExp("("+h.join(")|(")+")|($)",g)}}return a.prototype.$setMaxTokenCount=function(u){s=u|0},a.prototype.$applyToken=function(u){var c=this.splitRegex.exec(u).slice(1),d=this.token.apply(this,c);if(typeof d=="string")return[{type:d,value:u}];for(var h=[],p=0,f=d.length;py){var C=u.substring(y,A-S.length);x.type==k?x.value+=C:(x.type&&v.push(x),x={type:k,value:C})}for(var O=0;Os){for(b>2*u.length&&this.reportError("infinite loop with in ace tokenizer",{startState:c,line:u});y1&&d[0]!==h&&d.unshift("#tmp",h),{tokens:v,state:d.length?d:h}},a}();l.prototype.reportError=i,r.Tokenizer=l}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,r,o){var i=n("../lib/deep_copy").deepCopy,s;s=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(u,c){if(!c){for(var d in u)this.$rules[d]=u[d];return}for(var d in u){for(var h=u[d],p=0;p=this.$rowTokens.length;){if(this.$row+=1,a||(a=this.$session.getLength()),this.$row>=a)return this.$row=a-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},l.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},l.prototype.getCurrentTokenRow=function(){return this.$row},l.prototype.getCurrentTokenColumn=function(){var a=this.$rowTokens,u=this.$tokenIndex,c=a[u].start;if(c!==void 0)return c;for(c=0;u>0;)u-=1,c+=a[u].value.length;return c},l.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},l.prototype.getCurrentTokenRange=function(){var a=this.$rowTokens[this.$tokenIndex],u=this.getCurrentTokenColumn();return new i(this.$row,u,this.$row,u+a.value.length)},l}();r.TokenIterator=s}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,o){var i=n("../../lib/oop"),s=n("../behaviour").Behaviour,l=n("../../token_iterator").TokenIterator,a=n("../../lib/lang"),u=["text","paren.rparen","rparen","paren","punctuation.operator"],c=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],d,h={},p={'"':'"',"'":"'"},f=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,h.rangeCount!=v.multiSelect.rangeCount&&(h={rangeCount:v.multiSelect.rangeCount})),h[y])return d=h[y];d=h[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},g=function(v,y,b,x){var k=v.end.row-v.start.row;return{text:b+y+x,selection:[0,v.start.column+1,k,v.end.column+(k?0:1)]}},m;m=function(v){v=v||{},this.add("braces","insertion",function(y,b,x,k,w){var S=x.getCursorPosition(),A=k.doc.getLine(S.row);if(w=="{"){f(x);var C=x.getSelectionRange(),O=k.doc.getTextRange(C);if(O!==""&&O!=="{"&&x.getWrapBehavioursEnabled())return g(C,O,"{","}");if(m.isSaneInsertion(x,k))return/[\]\}\)]/.test(A[S.column])||x.inMultiSelectMode||v.braces?(m.recordAutoInsert(x,k,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(x,k,"{"),{text:"{",selection:[1,1]})}else if(w=="}"){f(x);var R=A.substring(S.column,S.column+1);if(R=="}"){var _=k.$findOpeningBracket("}",{column:S.column+1,row:S.row});if(_!==null&&m.isAutoInsertedClosing(S,A,w))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(w==` +`).length>2?Fe=g.down:lt>N&&M[lt-1]==" "?(Fe=g.right,Xt=m.option):(lt>N||lt==N&&N!=I&&at==lt)&&(Fe=g.right),at!==lt&&(Xt|=m.shift),Fe){var Go=ue.onCommandKey({},Xt,Fe);if(!Go&&ue.commands){Fe=g.keyCodeToString(Fe);var Cl=ue.commands.findKeyCommand(Xt,Fe);Cl&&ue.execCommand(Cl)}I=at,N=lt,B("")}}};document.addEventListener("selectionchange",et),ue.on("destroy",function(){document.removeEventListener("selectionchange",et)})}this.destroy=function(){S.parentElement&&S.parentElement.removeChild(S)}},r.TextInput=x,r.$setUserAgentForTests=function(k,w){b=k,v=w}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,o){var i=n("../lib/useragent"),s=0,l=550,a=function(){function d(h){h.$clickSelection=null;var p=h.editor;p.setDefaultHandler("mousedown",this.onMouseDown.bind(h)),p.setDefaultHandler("dblclick",this.onDoubleClick.bind(h)),p.setDefaultHandler("tripleclick",this.onTripleClick.bind(h)),p.setDefaultHandler("quadclick",this.onQuadClick.bind(h)),p.setDefaultHandler("mousewheel",this.onMouseWheel.bind(h));var f=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];f.forEach(function(g){h[g]=this[g]},this),h.selectByLines=this.extendSelectionBy.bind(h,"getLineRange"),h.selectByWords=this.extendSelectionBy.bind(h,"getWordRange")}return d.prototype.onMouseDown=function(h){var p=h.inSelection(),f=h.getDocumentPosition();this.mousedownEvent=h;var g=this.editor,m=h.getButton();if(m!==0){var v=g.getSelectionRange(),y=v.isEmpty();(y||m==1)&&g.selection.moveToPosition(f),m==2&&(g.textInput.onContextMenu(h.domEvent),i.isMozilla||h.preventDefault());return}if(this.mousedownEvent.time=Date.now(),p&&!g.isFocused()&&(g.focus(),this.$focusTimeout&&!this.$clickSelection&&!g.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(h);return}return this.captureMouse(h),this.startSelect(f,h.domEvent._clicks>1),h.preventDefault()},d.prototype.startSelect=function(h,p){h=h||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var f=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?f.selection.selectToPosition(h):p||f.selection.moveToPosition(h),p||this.select(),f.setStyle("ace_selecting"),this.setState("select"))},d.prototype.select=function(){var h,p=this.editor,f=p.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var g=this.$clickSelection.comparePoint(f);if(g==-1)h=this.$clickSelection.end;else if(g==1)h=this.$clickSelection.start;else{var m=c(this.$clickSelection,f);f=m.cursor,h=m.anchor}p.selection.setSelectionAnchor(h.row,h.column)}p.selection.selectToPosition(f),p.renderer.scrollCursorIntoView()},d.prototype.extendSelectionBy=function(h){var p,f=this.editor,g=f.renderer.screenToTextCoordinates(this.x,this.y),m=f.selection[h](g.row,g.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(m.start),y=this.$clickSelection.comparePoint(m.end);if(v==-1&&y<=0)p=this.$clickSelection.end,(m.end.row!=g.row||m.end.column!=g.column)&&(g=m.start);else if(y==1&&v>=0)p=this.$clickSelection.start,(m.start.row!=g.row||m.start.column!=g.column)&&(g=m.end);else if(v==-1&&y==1)g=m.end,p=m.start;else{var b=c(this.$clickSelection,g);g=b.cursor,p=b.anchor}f.selection.setSelectionAnchor(p.row,p.column)}f.selection.selectToPosition(g),f.renderer.scrollCursorIntoView()},d.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},d.prototype.focusWait=function(){var h=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),p=Date.now();(h>s||p-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},d.prototype.onDoubleClick=function(h){var p=h.getDocumentPosition(),f=this.editor,g=f.session,m=g.getBracketRange(p);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=f.selection.getWordRange(p.row,p.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},d.prototype.onTripleClick=function(h){var p=h.getDocumentPosition(),f=this.editor;this.setState("selectByLines");var g=f.getSelectionRange();g.isMultiLine()&&g.contains(p.row,p.column)?(this.$clickSelection=f.selection.getLineRange(g.start.row),this.$clickSelection.end=f.selection.getLineRange(g.end.row).end):this.$clickSelection=f.selection.getLineRange(p.row),this.select()},d.prototype.onQuadClick=function(h){var p=this.editor;p.selectAll(),this.$clickSelection=p.getSelectionRange(),this.setState("selectAll")},d.prototype.onMouseWheel=function(h){if(!h.getAccelKey()){h.getShiftKey()&&h.wheelY&&!h.wheelX&&(h.wheelX=h.wheelY,h.wheelY=0);var p=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var f=this.$lastScroll,g=h.domEvent.timeStamp,m=g-f.t,v=m?h.wheelX/m:f.vx,y=m?h.wheelY/m:f.vy;m=1&&p.renderer.isScrollableBy(h.wheelX*h.speed,0)&&(x=!0),b<=1&&p.renderer.isScrollableBy(0,h.wheelY*h.speed)&&(x=!0),x)f.allowed=g;else if(g-f.allowedl.clientHeight;a||s.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,r,o){var i=this&&this.__extends||function(){var g=function(m,v){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(y[x]=b[x])},g(m,v)};return function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");g(m,v);function y(){this.constructor=m}m.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),s=this&&this.__values||function(g){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&g[m],y=0;if(v)return v.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&y>=g.length&&(g=void 0),{value:g&&g[y++],done:!g}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},l=n("./lib/dom");n("./lib/event");var a=n("./range").Range,u=n("./lib/scroll").preventParentScroll,c="ace_tooltip",d=function(){function g(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return g.prototype.$init=function(){return this.$element=l.createElement("div"),this.$element.className=c,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},g.prototype.getElement=function(){return this.$element||this.$init()},g.prototype.setText=function(m){this.getElement().textContent=m},g.prototype.setHtml=function(m){this.getElement().innerHTML=m},g.prototype.setPosition=function(m,v){this.getElement().style.left=m+"px",this.getElement().style.top=v+"px"},g.prototype.setClassName=function(m){l.addCssClass(this.getElement(),m)},g.prototype.setTheme=function(m){this.$element.className=c+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},g.prototype.show=function(m,v,y){m!=null&&this.setText(m),v!=null&&y!=null&&this.setPosition(v,y),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},g.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=c,this.isOpen=!1)},g.prototype.getHeight=function(){return this.getElement().offsetHeight},g.prototype.getWidth=function(){return this.getElement().offsetWidth},g.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},g}(),h=function(){function g(){this.popups=[]}return g.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},g.prototype.removePopup=function(m){var v=this.popups.indexOf(m);v!==-1&&(this.popups.splice(v,1),this.updatePopups())},g.prototype.updatePopups=function(){var m,v,y,b;this.popups.sort(function(_,A){return A.priority-_.priority});var x=[];try{for(var k=s(this.popups),w=k.next();!w.done;w=k.next()){var S=w.value,T=!0;try{for(var C=(y=void 0,s(x)),O=C.next();!O.done;O=C.next()){var R=O.value;if(this.doPopupsOverlap(R,S)){T=!1;break}}}catch(_){y={error:_}}finally{try{O&&!O.done&&(b=C.return)&&b.call(C)}finally{if(y)throw y.error}}T?x.push(S):S.hide()}}catch(_){m={error:_}}finally{try{w&&!w.done&&(v=k.return)&&v.call(k)}finally{if(m)throw m.error}}},g.prototype.doPopupsOverlap=function(m,v){var y=m.getElement().getBoundingClientRect(),b=v.getElement().getBoundingClientRect();return y.leftb.left&&y.topb.top},g}(),p=new h;r.popupManager=p,r.Tooltip=d;var f=function(g){i(m,g);function m(v){v===void 0&&(v=document.body);var y=g.call(this,v)||this;y.timeout=void 0,y.lastT=0,y.idleTime=350,y.lastEvent=void 0,y.onMouseOut=y.onMouseOut.bind(y),y.onMouseMove=y.onMouseMove.bind(y),y.waitForHover=y.waitForHover.bind(y),y.hide=y.hide.bind(y);var b=y.getElement();return b.style.whiteSpace="pre-wrap",b.style.pointerEvents="auto",b.addEventListener("mouseout",y.onMouseOut),b.tabIndex=-1,b.addEventListener("blur",(function(){b.contains(document.activeElement)||this.hide()}).bind(y)),b.addEventListener("wheel",u),y}return m.prototype.addToEditor=function(v){v.on("mousemove",this.onMouseMove),v.on("mousedown",this.hide),v.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(v){v.off("mousemove",this.onMouseMove),v.off("mousedown",this.hide),v.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(v,y){this.lastEvent=v,this.lastT=Date.now();var b=y.$mouseHandler.isMousePressed;if(this.isOpen){var x=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(x.row,x.column)||b||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||b||(this.lastEvent=v,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var v=Date.now()-this.lastT;if(this.idleTime-v>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-v);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},m.prototype.isOutsideOfText=function(v){var y=v.editor,b=v.getDocumentPosition(),x=y.session.getLine(b.row);if(b.column==x.length){var k=y.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),w=y.session.documentToScreenPosition(b.row,b.column);if(w.column!=k.column||w.row!=k.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,b,x){var k=10;if(!(x&&x!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var w=v.renderer;this.isOpen||(p.addPopup(this),this.$registerCloseEvents(),this.setTheme(w.theme)),this.isOpen=!0,this.addMarker(y,v.session),this.range=a.fromPoints(y.start,y.end);var S=w.textToScreenCoordinates(y.start.row,y.start.column),T=w.scroller.getBoundingClientRect();S.pageX=p.length&&(p=void 0),{value:p&&p[m++],done:!p}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},l=n("../lib/dom"),a=n("../lib/event"),u=n("../tooltip").Tooltip,c=n("../config").nls;function d(p){var f=p.editor,g=f.renderer.$gutterLayer,m=new h(f);p.editor.setDefaultHandler("guttermousedown",function(w){if(!(!f.isFocused()||w.getButton()!=0)){var S=g.getRegion(w);if(S!="foldWidgets"){var T=w.getDocumentPosition().row,C=f.session.selection;if(w.getShiftKey())C.selectTo(T,0);else{if(w.domEvent.detail==2)return f.selectAll(),w.preventDefault();p.$clickSelection=f.selection.getLineRange(T)}return p.setState("selectByLines"),p.captureMouse(w),w.preventDefault()}}});var v,y;function b(){var w=y.getDocumentPosition().row,S=f.session.getLength();if(w==S){var T=f.renderer.pixelToScreenCoordinates(0,y.y).row,C=y.$pos;if(T>f.session.documentToScreenRow(C.row,C.column))return x()}if(m.showTooltip(w),!!m.isOpen)if(f.on("mousewheel",x),p.$tooltipFollowsMouse)k(y);else{var O=y.getGutterRow(),R=g.$lines.get(O);if(R){var _=R.element.querySelector(".ace_gutter_annotation"),A=_.getBoundingClientRect(),E=m.getElement().style;E.left=A.right+"px",E.top=A.bottom+"px"}else k(y)}}function x(){v&&(v=clearTimeout(v)),m.isOpen&&(m.hideTooltip(),f.off("mousewheel",x))}function k(w){m.setPosition(w.x,w.y)}p.editor.setDefaultHandler("guttermousemove",function(w){var S=w.domEvent.target||w.domEvent.srcElement;if(l.hasCssClass(S,"ace_fold-widget"))return x();m.isOpen&&p.$tooltipFollowsMouse&&k(w),y=w,!v&&(v=setTimeout(function(){v=null,y&&!p.isMousePressed?b():x()},50))}),a.addListener(f.renderer.$gutter,"mouseout",function(w){y=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,x()},50))},f),f.on("changeSession",x),f.on("input",x)}r.GutterHandler=d;var h=function(p){i(f,p);function f(g){var m=p.call(this,g.container)||this;return m.editor=g,m}return f.prototype.setPosition=function(g,m){var v=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,b=this.getWidth(),x=this.getHeight();g+=15,m+=15,g+b>v&&(g-=g+b-v),m+x>y&&(m-=20+x),u.prototype.setPosition.call(this,g,m)},Object.defineProperty(f,"annotationLabels",{get:function(){return{error:{singular:c("error"),plural:c("errors")},warning:{singular:c("warning"),plural:c("warnings")},info:{singular:c("information message"),plural:c("information messages")}}},enumerable:!1,configurable:!0}),f.prototype.showTooltip=function(g){var m=this.editor.renderer.$gutterLayer,v=m.$annotations[g],y;v?y={text:Array.from(v.text),type:Array.from(v.type)}:y={text:[],type:[]};var b=m.session.getFoldLine(g);if(b&&m.$showFoldedAnnotations){for(var x={error:[],warning:[],info:[]},k,w=g+1;w<=b.end.row;w++)if(m.$annotations[w])for(var S=0;S ").concat(y.text[w]);O[y.type[w].replace("_fold","")].push(_)}var A=[].concat(O.error,O.warning,O.info).join("
    ");this.setHtml(A),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},f.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},f.annotationsToSummaryString=function(g){var m,v,y=[],b=["error","warning","info"];try{for(var x=s(b),k=x.next();!k.done;k=x.next()){var w=k.value;if(g[w].length){var S=g[w].length===1?f.annotationLabels[w].singular:f.annotationLabels[w].plural;y.push("".concat(g[w].length," ").concat(S))}}}catch(T){m={error:T}}finally{try{k&&!k.done&&(v=x.return)&&v.call(x)}finally{if(m)throw m.error}}return y.join(", ")},f}(u);r.GutterTooltip=h}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,o){var i=n("../lib/event"),s=n("../lib/useragent"),l=function(){function a(u,c){this.speed,this.wheelX,this.wheelY,this.domEvent=u,this.editor=c,this.x=this.clientX=u.clientX,this.y=this.clientY=u.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return a.prototype.stopPropagation=function(){i.stopPropagation(this.domEvent),this.propagationStopped=!0},a.prototype.preventDefault=function(){i.preventDefault(this.domEvent),this.defaultPrevented=!0},a.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},a.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},a.prototype.getGutterRow=function(){var u=this.getDocumentPosition().row,c=this.editor.session.documentToScreenRow(u,0),d=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return c-d},a.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var u=this.editor,c=u.getSelectionRange();if(c.isEmpty())this.$inSelection=!1;else{var d=this.getDocumentPosition();this.$inSelection=c.contains(d.row,d.column)}return this.$inSelection},a.prototype.getButton=function(){return i.getButton(this.domEvent)},a.prototype.getShiftKey=function(){return this.domEvent.shiftKey},a.prototype.getAccelKey=function(){return s.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},a}();r.MouseEvent=l}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,r,o){var i=n("../lib/dom"),s=n("../lib/event"),l=n("../lib/useragent"),a=200,u=200,c=5;function d(p){var f=p.editor,g=i.createElement("div");g.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",g.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(W){p[W]=this[W]},this),f.on("mousedown",this.onMouseDown.bind(p));var v=f.container,y,b,x,k,w,S,T=0,C,O,R,_,A;this.onDragStart=function(W){if(this.cancelDrag||!v.draggable){var B=this;return setTimeout(function(){B.startSelect(),B.captureMouse(W)},0),W.preventDefault()}w=f.getSelectionRange();var U=W.dataTransfer;U.effectAllowed=f.getReadOnly()?"copy":"copyMove",f.container.appendChild(g),U.setDragImage&&U.setDragImage(g,0,0),setTimeout(function(){f.container.removeChild(g)}),U.clearData(),U.setData("Text",f.session.getTextRange()),O=!0,this.setState("drag")},this.onDragEnd=function(W){if(v.draggable=!1,O=!1,this.setState(null),!f.getReadOnly()){var B=W.dataTransfer.dropEffect;!C&&B=="move"&&f.session.remove(f.getSelectionRange()),f.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(W){if(!(f.getReadOnly()||!F(W.dataTransfer)))return b=W.clientX,x=W.clientY,y||N(),T++,W.dataTransfer.dropEffect=C=H(W),s.preventDefault(W)},this.onDragOver=function(W){if(!(f.getReadOnly()||!F(W.dataTransfer)))return b=W.clientX,x=W.clientY,y||(N(),T++),$!==null&&($=null),W.dataTransfer.dropEffect=C=H(W),s.preventDefault(W)},this.onDragLeave=function(W){if(T--,T<=0&&y)return L(),C=null,s.preventDefault(W)},this.onDrop=function(W){if(S){var B=W.dataTransfer;if(O)switch(C){case"move":w.contains(S.row,S.column)?w={start:S,end:S}:w=f.moveText(w,S);break;case"copy":w=f.moveText(w,S,!0);break}else{var U=B.getData("Text");w={start:S,end:f.session.insert(S,U)},f.focus(),C=null}return L(),s.preventDefault(W)}},s.addListener(v,"dragstart",this.onDragStart.bind(p),f),s.addListener(v,"dragend",this.onDragEnd.bind(p),f),s.addListener(v,"dragenter",this.onDragEnter.bind(p),f),s.addListener(v,"dragover",this.onDragOver.bind(p),f),s.addListener(v,"dragleave",this.onDragLeave.bind(p),f),s.addListener(v,"drop",this.onDrop.bind(p),f);function E(W,B){var U=Date.now(),G=!B||W.row!=B.row,Y=!B||W.column!=B.column;if(!_||G||Y)f.moveCursorToPosition(W),_=U,A={x:b,y:x};else{var X=h(A.x,A.y,b,x);X>c?_=null:U-_>=u&&(f.renderer.scrollCursorIntoView(),_=null)}}function M(W,B){var U=Date.now(),G=f.renderer.layerConfig.lineHeight,Y=f.renderer.layerConfig.characterWidth,X=f.renderer.scroller.getBoundingClientRect(),Z={x:{left:b-X.left,right:X.right-b},y:{top:x-X.top,bottom:X.bottom-x}},ne=Math.min(Z.x.left,Z.x.right),de=Math.min(Z.y.top,Z.y.bottom),Ie={row:W.row,column:W.column};ne/Y<=2&&(Ie.column+=Z.x.left=a&&f.renderer.scrollCursorIntoView(Ie):R=U:R=null}function I(){var W=S;S=f.renderer.screenToTextCoordinates(b,x),E(S,W),M(S,W)}function N(){w=f.selection.toOrientedRange(),y=f.session.addMarker(w,"ace_selection",f.getSelectionStyle()),f.clearSelection(),f.isFocused()&&f.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),I(),k=setInterval(I,20),T=0,s.addListener(document,"mousemove",P)}function L(){clearInterval(k),f.session.removeMarker(y),y=null,f.selection.fromOrientedRange(w),f.isFocused()&&!O&&f.$resetCursorStyle(),w=null,S=null,T=0,R=null,_=null,s.removeListener(document,"mousemove",P)}var $=null;function P(){$==null&&($=setTimeout(function(){$!=null&&y&&L()},20))}function F(W){var B=W.types;return!B||Array.prototype.some.call(B,function(U){return U=="text/plain"||U=="Text"})}function H(W){var B=["copy","copymove","all","uninitialized"],U=["move","copymove","linkmove","all","uninitialized"],G=l.isMac?W.altKey:W.ctrlKey,Y="uninitialized";try{Y=W.dataTransfer.effectAllowed.toLowerCase()}catch{}var X="none";return G&&B.indexOf(Y)>=0?X="copy":U.indexOf(Y)>=0?X="move":B.indexOf(Y)>=0&&(X="copy"),X}}(function(){this.dragWait=function(){var p=Date.now()-this.mousedownEvent.time;p>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var p=this.editor.container;p.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(p){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var p=this.editor,f=p.container;f.draggable=!0,p.renderer.$cursorLayer.setBlinking(!1),p.setStyle("ace_dragging");var g=l.isWin?"default":"move";p.renderer.setCursorStyle(g),this.setState("dragReady")},this.onMouseDrag=function(p){var f=this.editor.container;if(l.isIE&&this.state=="dragReady"){var g=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);g>3&&f.dragDrop()}if(this.state==="dragWait"){var g=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);g>0&&(f.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(p){if(this.$dragEnabled){this.mousedownEvent=p;var f=this.editor,g=p.inSelection(),m=p.getButton(),v=p.domEvent.detail||1;if(v===1&&m===0&&g){if(p.editor.inMultiSelectMode&&(p.getAccelKey()||p.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=p.domEvent.target||p.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),f.getDragDelay()){if(l.isWebKit){this.cancelDrag=!0;var b=f.container;b.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(p,this.onMouseDrag.bind(this)),p.defaultPrevented=!0}}}}).call(d.prototype);function h(p,f,g,m){return Math.sqrt(Math.pow(g-p,2)+Math.pow(m-f,2))}r.DragdropHandler=d}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,r,o){var i=n("./mouse_event").MouseEvent,s=n("../lib/event"),l=n("../lib/dom");r.addTouchListeners=function(a,u){var c="scroll",d,h,p,f,g,m,v=0,y,b=0,x=0,k=0,w,S;function T(){var E=window.navigator&&window.navigator.clipboard,M=!1,I=function(){var L=u.getCopyText(),$=u.session.getUndoManager().hasUndo();S.replaceChild(l.buildDom(M?["span",!L&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],L&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],L&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],E&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],$&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),S.firstChild)},N=function(L){var $=L.target.getAttribute("action");if($=="more"||!M)return M=!M,I();$=="paste"?E.readText().then(function(P){u.execCommand($,P)}):$&&(($=="cut"||$=="copy")&&(E?E.writeText(u.getCopyText()):document.execCommand("copy")),u.execCommand($)),S.firstChild.style.display="none",M=!1,$!="openCommandPalette"&&u.focus()};S=l.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(L){c="menu",L.stopPropagation(),L.preventDefault(),u.textInput.focus()},ontouchend:function(L){L.stopPropagation(),L.preventDefault(),N(L)},onclick:N},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],u.container)}function C(){S||T();var E=u.selection.cursor,M=u.renderer.textToScreenCoordinates(E.row,E.column),I=u.renderer.textToScreenCoordinates(0,0).pageX,N=u.renderer.scrollLeft,L=u.container.getBoundingClientRect();S.style.top=M.pageY-L.top-3+"px",M.pageX-L.left=2?u.selection.getLineRange(y.row):u.session.getBracketRange(y);E&&!E.isEmpty()?u.selection.setRange(E):u.selection.selectWord(),c="wait"}s.addListener(a,"contextmenu",function(E){if(w){var M=u.textInput.getElement();M.focus()}},u),s.addListener(a,"touchstart",function(E){var M=E.touches;if(g||M.length>1){clearTimeout(g),g=null,p=-1,c="zoom";return}w=u.$mouseHandler.isMousePressed=!0;var I=u.renderer.layerConfig.lineHeight,N=u.renderer.layerConfig.lineHeight,L=E.timeStamp;f=L;var $=M[0],P=$.clientX,F=$.clientY;Math.abs(d-P)+Math.abs(h-F)>I&&(p=-1),d=E.clientX=P,h=E.clientY=F,x=k=0;var H=new i(E,u);if(y=H.getDocumentPosition(),L-p<500&&M.length==1&&!v)b++,E.preventDefault(),E.button=0,_();else{b=0;var W=u.selection.cursor,B=u.selection.isEmpty()?W:u.selection.anchor,U=u.renderer.$cursorLayer.getPixelPosition(W,!0),G=u.renderer.$cursorLayer.getPixelPosition(B,!0),Y=u.renderer.scroller.getBoundingClientRect(),X=u.renderer.layerConfig.offset,Z=u.renderer.scrollLeft,ne=function(ve,Me){return ve=ve/N,Me=Me/I-.75,ve*ve+Me*Me};if(E.clientXIe?"cursor":"anchor"),Ie<3.5?c="anchor":de<3.5?c="cursor":c="scroll",g=setTimeout(R,450)}p=L},u),s.addListener(a,"touchend",function(E){w=u.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),c=="zoom"?(c="",v=0):g?(u.selection.moveToPosition(y),v=0,C()):c=="scroll"?(A(),O()):C(),clearTimeout(g),g=null},u),s.addListener(a,"touchmove",function(E){g&&(clearTimeout(g),g=null);var M=E.touches;if(!(M.length>1||c=="zoom")){var I=M[0],N=d-I.clientX,L=h-I.clientY;if(c=="wait")if(N*N+L*L>4)c="cursor";else return E.preventDefault();d=I.clientX,h=I.clientY,E.clientX=I.clientX,E.clientY=I.clientY;var $=E.timeStamp,P=$-f;if(f=$,c=="scroll"){var F=new i(E,u);F.speed=1,F.wheelX=N,F.wheelY=L,10*Math.abs(N)0)if(Ie==16){for(Se=Me;Se-1){for(Se=Me;Se=0&&G[Et]==w;Et--)B[Et]=i}}}function P(W,B,U){if(!(s=W){for(X=Y+1;X=W;)X++;for(Z=Y,ne=X-1;Z=B.length||(X=U[G-1])!=m&&X!=v||(Z=B[G+1])!=m&&Z!=v?y:(l&&(Z=v),Z==X?Z:y);case T:return X=G>0?U[G-1]:b,X==m&&G+10&&U[G-1]==m)return m;if(l)return y;for(de=G+1,ne=B.length;de=1425&&Ie<=2303||Ie==64286;if(X=B[de],ve&&(X==g||X==k))return g}return G<1||(X=B[G-1])==b?y:U[G-1];case b:return l=!1,a=!0,i;case x:return u=!0,y;case R:case _:case E:case M:case A:l=!1;case I:return y}}function H(W){var B=W.charCodeAt(0),U=B>>8;return U==0?B>191?f:N[B]:U==5?/[\u0591-\u05f4]/.test(W)?g:f:U==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(W)?O:/[\u0660-\u0669\u066b-\u066c]/.test(W)?v:B==1642?C:/[\u06f0-\u06f9]/.test(W)?m:k:U==32&&B<=8287?L[B&255]:U==254&&B>=65136?k:y}r.L=f,r.R=g,r.EN=m,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(W,B,U){if(W.length<2)return{};var G=W.split(""),Y=new Array(G.length),X=new Array(G.length),Z=[];i=U?p:h,$(G,Z,G.length,B);for(var ne=0;nek&&B[ne]0&&G[ne-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(G[ne])&&(Z[ne-1]=Z[ne]=r.R_H,ne++);G[G.length-1]===r.DOT&&(Z[G.length-1]=r.B),G[0]==="‫"&&(Z[0]=r.RLE);for(var ne=0;ne=0&&(c=this.session.$docRowCache[h])}return c},u.prototype.getSplitIndex=function(){var c=0,d=this.session.$screenRowCache;if(d.length)for(var h,p=this.session.$getRowCacheIndex(d,this.currentRow);this.currentRow-c>0&&(h=this.session.$getRowCacheIndex(d,this.currentRow-c-1),h===p);)p=h,c++;else c=this.currentRow;return c},u.prototype.updateRowLine=function(c,d){c===void 0&&(c=this.getDocumentRow());var h=c===this.session.getLength()-1,p=h?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(c),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var f=this.session.$wrapData[c];f&&(d===void 0&&(d=this.getSplitIndex()),d>0&&f.length?(this.wrapIndent=f.indent,this.wrapOffset=this.wrapIndent*this.charWidths[i.L],this.line=dd?this.session.getOverwrite()?c:c-1:d,p=i.getVisualFromLogicalIdx(h,this.bidiMap),f=this.bidiMap.bidiLevels,g=0;!this.session.getOverwrite()&&c<=d&&f[p]%2!==0&&p++;for(var m=0;md&&f[p]%2===0&&(g+=this.charWidths[f[p]]),this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(g+=this.rtlLineOffset),g},u.prototype.getSelections=function(c,d){var h=this.bidiMap,p=h.bidiLevels,f,g=[],m=0,v=Math.min(c,d)-this.wrapIndent,y=Math.max(c,d)-this.wrapIndent,b=!1,x=!1,k=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var w,S=0;S=v&&wp+m/2;){if(p+=m,f===g.length-1){m=0;break}m=this.charWidths[g[++f]]}return f>0&&g[f-1]%2!==0&&g[f]%2===0?(h0&&g[f-1]%2===0&&g[f]%2!==0?d=1+(h>p?this.bidiMap.logicalFromVisual[f]:this.bidiMap.logicalFromVisual[f-1]):this.isRtlDir&&f===g.length-1&&m===0&&g[f-1]%2===0||!this.isRtlDir&&f===0&&g[f]%2!==0?d=1+this.bidiMap.logicalFromVisual[f]:(f>0&&g[f-1]%2!==0&&m!==0&&f--,d=this.bidiMap.logicalFromVisual[f]),d===0&&this.isRtlDir&&d++,d+this.wrapIndent},u}();r.BidiHandler=a}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,r,o){var i=n("./lib/oop"),s=n("./lib/lang"),l=n("./lib/event_emitter").EventEmitter,a=n("./range").Range,u=function(){function c(d){this.session=d,this.doc=d.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var h=this;this.cursor.on("change",function(p){h.$cursorChanged=!0,h.$silent||h._emit("changeCursor"),!h.$isEmpty&&!h.$silent&&h._emit("changeSelection"),!h.$keepDesiredColumnOnChange&&p.old.column!=p.value.column&&(h.$desiredColumn=null)}),this.anchor.on("change",function(){h.$anchorChanged=!0,!h.$isEmpty&&!h.$silent&&h._emit("changeSelection")})}return c.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},c.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},c.prototype.getCursor=function(){return this.lead.getPosition()},c.prototype.setAnchor=function(d,h){this.$isEmpty=!1,this.anchor.setPosition(d,h)},c.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},c.prototype.getSelectionLead=function(){return this.lead.getPosition()},c.prototype.isBackwards=function(){var d=this.anchor,h=this.lead;return d.row>h.row||d.row==h.row&&d.column>h.column},c.prototype.getRange=function(){var d=this.anchor,h=this.lead;return this.$isEmpty?a.fromPoints(h,h):this.isBackwards()?a.fromPoints(h,d):a.fromPoints(d,h)},c.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},c.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},c.prototype.setRange=function(d,h){var p=h?d.end:d.start,f=h?d.start:d.end;this.$setSelection(p.row,p.column,f.row,f.column)},c.prototype.$setSelection=function(d,h,p,f){if(!this.$silent){var g=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(d,h),this.cursor.setPosition(p,f),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||g!=this.$isEmpty||m)&&this._emit("changeSelection")}},c.prototype.$moveSelection=function(d){var h=this.lead;this.$isEmpty&&this.setSelectionAnchor(h.row,h.column),d.call(this)},c.prototype.selectTo=function(d,h){this.$moveSelection(function(){this.moveCursorTo(d,h)})},c.prototype.selectToPosition=function(d){this.$moveSelection(function(){this.moveCursorToPosition(d)})},c.prototype.moveTo=function(d,h){this.clearSelection(),this.moveCursorTo(d,h)},c.prototype.moveToPosition=function(d){this.clearSelection(),this.moveCursorToPosition(d)},c.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},c.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},c.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},c.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},c.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},c.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},c.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},c.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},c.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},c.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},c.prototype.getWordRange=function(d,h){if(typeof h>"u"){var p=d||this.lead;d=p.row,h=p.column}return this.session.getWordRange(d,h)},c.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},c.prototype.selectAWord=function(){var d=this.getCursor(),h=this.session.getAWordRange(d.row,d.column);this.setSelectionRange(h)},c.prototype.getLineRange=function(d,h){var p=typeof d=="number"?d:this.lead.row,f,g=this.session.getFoldLine(p);return g?(p=g.start.row,f=g.end.row):f=p,h===!0?new a(p,0,f,this.session.getLine(f).length):new a(p,0,f+1,0)},c.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},c.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},c.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},c.prototype.wouldMoveIntoSoftTab=function(d,h,p){var f=d.column,g=d.column+h;return p<0&&(f=d.column-h,g=d.column),this.session.isTabStop(d)&&this.doc.getLine(d.row).slice(f,g).split(" ").length-1==h},c.prototype.moveCursorLeft=function(){var d=this.lead.getPosition(),h;if(h=this.session.getFoldAt(d.row,d.column,-1))this.moveCursorTo(h.start.row,h.start.column);else if(d.column===0)d.row>0&&this.moveCursorTo(d.row-1,this.doc.getLine(d.row-1).length);else{var p=this.session.getTabSize();this.wouldMoveIntoSoftTab(d,p,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-p):this.moveCursorBy(0,-1)}},c.prototype.moveCursorRight=function(){var d=this.lead.getPosition(),h;if(h=this.session.getFoldAt(d.row,d.column,1))this.moveCursorTo(h.end.row,h.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(h.column=f)}}this.moveCursorTo(h.row,h.column)},c.prototype.moveCursorFileEnd=function(){var d=this.doc.getLength()-1,h=this.doc.getLine(d).length;this.moveCursorTo(d,h)},c.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},c.prototype.moveCursorLongWordRight=function(){var d=this.lead.row,h=this.lead.column,p=this.doc.getLine(d),f=p.substring(h);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var g=this.session.getFoldAt(d,h,1);if(g){this.moveCursorTo(g.end.row,g.end.column);return}if(this.session.nonTokenRe.exec(f)&&(h+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,f=p.substring(h)),h>=p.length){this.moveCursorTo(d,p.length),this.moveCursorRight(),d0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(g)&&(h-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(d,h)},c.prototype.$shortWordEndIndex=function(d){var h=0,p,f=/\s/,g=this.session.tokenRe;if(g.lastIndex=0,this.session.tokenRe.exec(d))h=this.session.tokenRe.lastIndex;else{for(;(p=d[h])&&f.test(p);)h++;if(h<1){for(g.lastIndex=0;(p=d[h])&&!g.test(p);)if(g.lastIndex=0,h++,f.test(p))if(h>2){h--;break}else{for(;(p=d[h])&&f.test(p);)h++;if(h>2)break}}}return g.lastIndex=0,h},c.prototype.moveCursorShortWordRight=function(){var d=this.lead.row,h=this.lead.column,p=this.doc.getLine(d),f=p.substring(h),g=this.session.getFoldAt(d,h,1);if(g)return this.moveCursorTo(g.end.row,g.end.column);if(h==p.length){var m=this.doc.getLength();do d++,f=this.doc.getLine(d);while(d0&&/^\s*$/.test(f));h=f.length,/\s+$/.test(f)||(f="")}var g=s.stringReverse(f),m=this.$shortWordEndIndex(g);return this.moveCursorTo(d,h-m)},c.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},c.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},c.prototype.moveCursorBy=function(d,h){var p=this.session.documentToScreenPosition(this.lead.row,this.lead.column),f;if(h===0&&(d!==0&&(this.session.$bidiHandler.isBidiRow(p.row,this.lead.row)?(f=this.session.$bidiHandler.getPosLeft(p.column),p.column=Math.round(f/this.session.$bidiHandler.charWidths[0])):f=p.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?p.column=this.$desiredColumn:this.$desiredColumn=p.column),d!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var g=this.session.lineWidgets[this.lead.row];d<0?d-=g.rowsAbove||0:d>0&&(d+=g.rowCount-(g.rowsAbove||0))}var m=this.session.screenToDocumentPosition(p.row+d,p.column,f);d!==0&&h===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+h,h===0)},c.prototype.moveCursorToPosition=function(d){this.moveCursorTo(d.row,d.column)},c.prototype.moveCursorTo=function(d,h,p){var f=this.session.getFoldAt(d,h,1);f&&(d=f.start.row,h=f.start.column),this.$keepDesiredColumnOnChange=!0;var g=this.session.getLine(d);/[\uDC00-\uDFFF]/.test(g.charAt(h))&&g.charAt(h-1)&&(this.lead.row==d&&this.lead.column==h+1?h=h-1:h=h+1),this.lead.setPosition(d,h),this.$keepDesiredColumnOnChange=!1,p||(this.$desiredColumn=null)},c.prototype.moveCursorToScreen=function(d,h,p){var f=this.session.screenToDocumentPosition(d,h);this.moveCursorTo(f.row,f.column,p)},c.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},c.prototype.fromOrientedRange=function(d){this.setSelectionRange(d,d.cursor==d.start),this.$desiredColumn=d.desiredColumn||this.$desiredColumn},c.prototype.toOrientedRange=function(d){var h=this.getRange();return d?(d.start.column=h.start.column,d.start.row=h.start.row,d.end.column=h.end.column,d.end.row=h.end.row):d=h,d.cursor=this.isBackwards()?d.start:d.end,d.desiredColumn=this.$desiredColumn,d},c.prototype.getRangeOfMovements=function(d){var h=this.getCursor();try{d(this);var p=this.getCursor();return a.fromPoints(h,p)}catch{return a.fromPoints(h,h)}finally{this.moveCursorToPosition(h)}},c.prototype.toJSON=function(){if(this.rangeCount)var d=this.ranges.map(function(h){var p=h.clone();return p.isBackwards=h.cursor==h.start,p});else{var d=this.getRange();d.isBackwards=this.isBackwards()}return d},c.prototype.fromJSON=function(d){if(d.start==null)if(this.rangeList&&d.length>1){this.toSingleRange(d[0]);for(var h=d.length;h--;){var p=a.fromPoints(d[h].start,d[h].end);d[h].isBackwards&&(p.cursor=p.start),this.addRange(p,!0)}return}else d=d[0];this.rangeList&&this.toSingleRange(d),this.setSelectionRange(d,d.isBackwards)},c.prototype.isEqual=function(d){if((d.length||this.rangeCount)&&d.length!=this.rangeCount)return!1;if(!d.length||!this.ranges)return this.getRange().isEqual(d);for(var h=this.ranges.length;h--;)if(!this.ranges[h].isEqual(d[h]))return!1;return!0},c}();u.prototype.setSelectionAnchor=u.prototype.setAnchor,u.prototype.getSelectionAnchor=u.prototype.getAnchor,u.prototype.setSelectionRange=u.prototype.setRange,i.implement(u.prototype,l),r.Selection=u}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,r,o){var i=n("./lib/report_error").reportError,s=2e3,l=function(){function a(u){this.splitRegex,this.states=u,this.regExps={},this.matchMappings={};for(var c in this.states){for(var d=this.states[c],h=[],p=0,f=this.matchMappings[c]={defaultToken:"text"},g="g",m=[],v=0;v1?y.onMatch=this.$applyToken:y.onMatch=y.token),x>1&&(/\\\d/.test(y.regex)?b=y.regex.replace(/\\([0-9]+)/g,function(k,w){return"\\"+(parseInt(w,10)+p+1)}):(x=1,b=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),f[p]=v,p+=x,h.push(b),y.onMatch||(y.onMatch=null)}}h.length||(f[0]=0,h.push("$")),m.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,g)},this),this.regExps[c]=new RegExp("("+h.join(")|(")+")|($)",g)}}return a.prototype.$setMaxTokenCount=function(u){s=u|0},a.prototype.$applyToken=function(u){var c=this.splitRegex.exec(u).slice(1),d=this.token.apply(this,c);if(typeof d=="string")return[{type:d,value:u}];for(var h=[],p=0,f=d.length;py){var C=u.substring(y,T-S.length);x.type==k?x.value+=C:(x.type&&v.push(x),x={type:k,value:C})}for(var O=0;Os){for(b>2*u.length&&this.reportError("infinite loop with in ace tokenizer",{startState:c,line:u});y1&&d[0]!==h&&d.unshift("#tmp",h),{tokens:v,state:d.length?d:h}},a}();l.prototype.reportError=i,r.Tokenizer=l}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,r,o){var i=n("../lib/deep_copy").deepCopy,s;s=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(u,c){if(!c){for(var d in u)this.$rules[d]=u[d];return}for(var d in u){for(var h=u[d],p=0;p=this.$rowTokens.length;){if(this.$row+=1,a||(a=this.$session.getLength()),this.$row>=a)return this.$row=a-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},l.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},l.prototype.getCurrentTokenRow=function(){return this.$row},l.prototype.getCurrentTokenColumn=function(){var a=this.$rowTokens,u=this.$tokenIndex,c=a[u].start;if(c!==void 0)return c;for(c=0;u>0;)u-=1,c+=a[u].value.length;return c},l.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},l.prototype.getCurrentTokenRange=function(){var a=this.$rowTokens[this.$tokenIndex],u=this.getCurrentTokenColumn();return new i(this.$row,u,this.$row,u+a.value.length)},l}();r.TokenIterator=s}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,o){var i=n("../../lib/oop"),s=n("../behaviour").Behaviour,l=n("../../token_iterator").TokenIterator,a=n("../../lib/lang"),u=["text","paren.rparen","rparen","paren","punctuation.operator"],c=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],d,h={},p={'"':'"',"'":"'"},f=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,h.rangeCount!=v.multiSelect.rangeCount&&(h={rangeCount:v.multiSelect.rangeCount})),h[y])return d=h[y];d=h[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},g=function(v,y,b,x){var k=v.end.row-v.start.row;return{text:b+y+x,selection:[0,v.start.column+1,k,v.end.column+(k?0:1)]}},m;m=function(v){v=v||{},this.add("braces","insertion",function(y,b,x,k,w){var S=x.getCursorPosition(),T=k.doc.getLine(S.row);if(w=="{"){f(x);var C=x.getSelectionRange(),O=k.doc.getTextRange(C);if(O!==""&&O!=="{"&&x.getWrapBehavioursEnabled())return g(C,O,"{","}");if(m.isSaneInsertion(x,k))return/[\]\}\)]/.test(T[S.column])||x.inMultiSelectMode||v.braces?(m.recordAutoInsert(x,k,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(x,k,"{"),{text:"{",selection:[1,1]})}else if(w=="}"){f(x);var R=T.substring(S.column,S.column+1);if(R=="}"){var _=k.$findOpeningBracket("}",{column:S.column+1,row:S.row});if(_!==null&&m.isAutoInsertedClosing(S,T,w))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(w==` `||w==`\r -`){f(x);var T="";m.isMaybeInsertedClosing(S,A)&&(T=a.stringRepeat("}",d.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var R=A.substring(S.column,S.column+1);if(R==="}"){var E=k.findMatchingBracket({row:S.row,column:S.column+1},"}");if(!E)return null;var M=this.$getIndent(k.getLine(E.row))}else if(T)var M=this.$getIndent(A);else{m.clearMaybeInsertedClosing();return}var I=M+k.getTabString();return{text:` +`){f(x);var A="";m.isMaybeInsertedClosing(S,T)&&(A=a.stringRepeat("}",d.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var R=T.substring(S.column,S.column+1);if(R==="}"){var E=k.findMatchingBracket({row:S.row,column:S.column+1},"}");if(!E)return null;var M=this.$getIndent(k.getLine(E.row))}else if(A)var M=this.$getIndent(T);else{m.clearMaybeInsertedClosing();return}var I=M+k.getTabString();return{text:` `+I+` -`+M+T,selection:[1,I.length,1,I.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,b,x,k,w){var S=k.doc.getTextRange(w);if(!w.isMultiLine()&&S=="{"){f(x);var A=k.doc.getLine(w.start.row),C=A.substring(w.end.column,w.end.column+1);if(C=="}")return w.end.column++,w;d.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,b,x,k,w){if(w=="("){f(x);var S=x.getSelectionRange(),A=k.doc.getTextRange(S);if(A!==""&&x.getWrapBehavioursEnabled())return g(S,A,"(",")");if(m.isSaneInsertion(x,k))return m.recordAutoInsert(x,k,")"),{text:"()",selection:[1,1]}}else if(w==")"){f(x);var C=x.getCursorPosition(),O=k.doc.getLine(C.row),R=O.substring(C.column,C.column+1);if(R==")"){var _=k.$findOpeningBracket(")",{column:C.column+1,row:C.row});if(_!==null&&m.isAutoInsertedClosing(C,O,w))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,b,x,k,w){var S=k.doc.getTextRange(w);if(!w.isMultiLine()&&S=="("){f(x);var A=k.doc.getLine(w.start.row),C=A.substring(w.start.column+1,w.start.column+2);if(C==")")return w.end.column++,w}}),this.add("brackets","insertion",function(y,b,x,k,w){if(w=="["){f(x);var S=x.getSelectionRange(),A=k.doc.getTextRange(S);if(A!==""&&x.getWrapBehavioursEnabled())return g(S,A,"[","]");if(m.isSaneInsertion(x,k))return m.recordAutoInsert(x,k,"]"),{text:"[]",selection:[1,1]}}else if(w=="]"){f(x);var C=x.getCursorPosition(),O=k.doc.getLine(C.row),R=O.substring(C.column,C.column+1);if(R=="]"){var _=k.$findOpeningBracket("]",{column:C.column+1,row:C.row});if(_!==null&&m.isAutoInsertedClosing(C,O,w))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,b,x,k,w){var S=k.doc.getTextRange(w);if(!w.isMultiLine()&&S=="["){f(x);var A=k.doc.getLine(w.start.row),C=A.substring(w.start.column+1,w.start.column+2);if(C=="]")return w.end.column++,w}}),this.add("string_dquotes","insertion",function(y,b,x,k,w){var S=k.$mode.$quotes||p;if(w.length==1&&S[w]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(w)!=-1)return;f(x);var A=w,C=x.getSelectionRange(),O=k.doc.getTextRange(C);if(O!==""&&(O.length!=1||!S[O])&&x.getWrapBehavioursEnabled())return g(C,O,A,A);if(!O){var R=x.getCursorPosition(),_=k.doc.getLine(R.row),T=_.substring(R.column-1,R.column),E=_.substring(R.column,R.column+1),M=k.getTokenAt(R.row,R.column),I=k.getTokenAt(R.row,R.column+1);if(T=="\\"&&M&&/escape/.test(M.type))return null;var N=M&&/string|escape/.test(M.type),L=!I||/string|escape/.test(I.type),$;if(E==A)$=N!==L,$&&/string\.end/.test(I.type)&&($=!1);else{if(N&&!L||N&&L)return null;var P=k.$mode.tokenRe;P.lastIndex=0;var F=P.test(T);P.lastIndex=0;var H=P.test(E),W=k.$mode.$pairQuotesAfter,B=W&&W[A]&&W[A].test(T);if(!B&&F||H||E&&!/[\s;,.})\]\\]/.test(E))return null;var U=_[R.column-2];if(T==A&&(U==A||P.test(U)))return null;$=!0}return{text:$?A+A:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,b,x,k,w){var S=k.$mode.$quotes||p,A=k.doc.getTextRange(w);if(!w.isMultiLine()&&S.hasOwnProperty(A)){f(x);var C=k.doc.getLine(w.start.row),O=C.substring(w.start.column+1,w.start.column+2);if(O==A)return w.end.column++,w}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,b,x,k,w){if(y==="doc-start"&&(w===` +`+M+A,selection:[1,I.length,1,I.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,b,x,k,w){var S=k.doc.getTextRange(w);if(!w.isMultiLine()&&S=="{"){f(x);var T=k.doc.getLine(w.start.row),C=T.substring(w.end.column,w.end.column+1);if(C=="}")return w.end.column++,w;d.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,b,x,k,w){if(w=="("){f(x);var S=x.getSelectionRange(),T=k.doc.getTextRange(S);if(T!==""&&x.getWrapBehavioursEnabled())return g(S,T,"(",")");if(m.isSaneInsertion(x,k))return m.recordAutoInsert(x,k,")"),{text:"()",selection:[1,1]}}else if(w==")"){f(x);var C=x.getCursorPosition(),O=k.doc.getLine(C.row),R=O.substring(C.column,C.column+1);if(R==")"){var _=k.$findOpeningBracket(")",{column:C.column+1,row:C.row});if(_!==null&&m.isAutoInsertedClosing(C,O,w))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,b,x,k,w){var S=k.doc.getTextRange(w);if(!w.isMultiLine()&&S=="("){f(x);var T=k.doc.getLine(w.start.row),C=T.substring(w.start.column+1,w.start.column+2);if(C==")")return w.end.column++,w}}),this.add("brackets","insertion",function(y,b,x,k,w){if(w=="["){f(x);var S=x.getSelectionRange(),T=k.doc.getTextRange(S);if(T!==""&&x.getWrapBehavioursEnabled())return g(S,T,"[","]");if(m.isSaneInsertion(x,k))return m.recordAutoInsert(x,k,"]"),{text:"[]",selection:[1,1]}}else if(w=="]"){f(x);var C=x.getCursorPosition(),O=k.doc.getLine(C.row),R=O.substring(C.column,C.column+1);if(R=="]"){var _=k.$findOpeningBracket("]",{column:C.column+1,row:C.row});if(_!==null&&m.isAutoInsertedClosing(C,O,w))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,b,x,k,w){var S=k.doc.getTextRange(w);if(!w.isMultiLine()&&S=="["){f(x);var T=k.doc.getLine(w.start.row),C=T.substring(w.start.column+1,w.start.column+2);if(C=="]")return w.end.column++,w}}),this.add("string_dquotes","insertion",function(y,b,x,k,w){var S=k.$mode.$quotes||p;if(w.length==1&&S[w]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(w)!=-1)return;f(x);var T=w,C=x.getSelectionRange(),O=k.doc.getTextRange(C);if(O!==""&&(O.length!=1||!S[O])&&x.getWrapBehavioursEnabled())return g(C,O,T,T);if(!O){var R=x.getCursorPosition(),_=k.doc.getLine(R.row),A=_.substring(R.column-1,R.column),E=_.substring(R.column,R.column+1),M=k.getTokenAt(R.row,R.column),I=k.getTokenAt(R.row,R.column+1);if(A=="\\"&&M&&/escape/.test(M.type))return null;var N=M&&/string|escape/.test(M.type),L=!I||/string|escape/.test(I.type),$;if(E==T)$=N!==L,$&&/string\.end/.test(I.type)&&($=!1);else{if(N&&!L||N&&L)return null;var P=k.$mode.tokenRe;P.lastIndex=0;var F=P.test(A);P.lastIndex=0;var H=P.test(E),W=k.$mode.$pairQuotesAfter,B=W&&W[T]&&W[T].test(A);if(!B&&F||H||E&&!/[\s;,.})\]\\]/.test(E))return null;var U=_[R.column-2];if(A==T&&(U==T||P.test(U)))return null;$=!0}return{text:$?T+T:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,b,x,k,w){var S=k.$mode.$quotes||p,T=k.doc.getTextRange(w);if(!w.isMultiLine()&&S.hasOwnProperty(T)){f(x);var C=k.doc.getLine(w.start.row),O=C.substring(w.start.column+1,w.start.column+2);if(O==T)return w.end.column++,w}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,b,x,k,w){if(y==="doc-start"&&(w===` `||w===`\r -`)&&x.selection.isEmpty()){var S=x.getCursorPosition(),A=k.doc.getLine(S.row),C=k.doc.getLine(S.row+1),O=this.$getIndent(A);if(/\s*\*/.test(C))return/^\s*\*/.test(A)?{text:w+O+"* ",selection:[1,3+O.length,1,3+O.length]}:{text:w+O+" * ",selection:[1,3+O.length,1,3+O.length]};if(/\/\*\*/.test(A.substring(0,S.column)))return{text:w+O+" * "+w+" "+O+"*/",selection:[1,4+O.length,1,4+O.length]}}})},m.isSaneInsertion=function(v,y){var b=v.getCursorPosition(),x=new l(y,b.row,b.column);if(!this.$matchTokenType(x.getCurrentToken()||"text",u)){if(/[)}\]]/.test(v.session.getLine(b.row)[b.column]))return!0;var k=new l(y,b.row,b.column+1);if(!this.$matchTokenType(k.getCurrentToken()||"text",u))return!1}return x.stepForward(),x.getCurrentTokenRow()!==b.row||this.$matchTokenType(x.getCurrentToken()||"text",c)},m.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,y,b){var x=v.getCursorPosition(),k=y.doc.getLine(x.row);this.isAutoInsertedClosing(x,k,d.autoInsertedLineEnd[0])||(d.autoInsertedBrackets=0),d.autoInsertedRow=x.row,d.autoInsertedLineEnd=b+k.substr(x.column),d.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,b){var x=v.getCursorPosition(),k=y.doc.getLine(x.row);this.isMaybeInsertedClosing(x,k)||(d.maybeInsertedBrackets=0),d.maybeInsertedRow=x.row,d.maybeInsertedLineStart=k.substr(0,x.column)+b,d.maybeInsertedLineEnd=k.substr(x.column),d.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,b){return d.autoInsertedBrackets>0&&v.row===d.autoInsertedRow&&b===d.autoInsertedLineEnd[0]&&y.substr(v.column)===d.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return d.maybeInsertedBrackets>0&&v.row===d.maybeInsertedRow&&y.substr(v.column)===d.maybeInsertedLineEnd&&y.substr(0,v.column)==d.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){d.autoInsertedLineEnd=d.autoInsertedLineEnd.substr(1),d.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){d&&(d.maybeInsertedBrackets=0,d.maybeInsertedRow=-1)},i.inherits(m,s),r.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,r,o){for(var i=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],s=0,l=[],a=0;a2?U%w!=w-1:U%w==0}}else{if(!this.blockComment)return!1;var A=this.blockComment.start,C=this.blockComment.end,O=new RegExp("^(\\s*)(?:"+c.escapeRegExp(A)+")"),R=new RegExp("(?:"+c.escapeRegExp(C)+")\\s*$"),_=function($,P){E($,P)||(!b||/\S/.test($))&&(y.insertInLine({row:P,column:$.length},C),y.insertInLine({row:P,column:k},A))},T=function($,P){var F;(F=$.match(R))&&y.removeInLine(P,$.length-F[0].length,$.length),(F=$.match(O))&&y.removeInLine(P,F[1].length,F[0].length)},E=function($,P){if(O.test($))return!0;for(var F=g.getTokens(P),H=0;H$.length&&(L=$.length)}),k==1/0&&(k=L,b=!1,x=!1),S&&k%w!=0&&(k=Math.floor(k/w)*w),N(x?T:_)},this.toggleBlockComment=function(f,g,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var b=new d(g,v.row,v.column),x=b.getCurrentToken();g.selection;var k=g.selection.toOrientedRange(),w,S;if(x&&/comment/.test(x.type)){for(var A,C;x&&/comment/.test(x.type);){var O=x.value.indexOf(y.start);if(O!=-1){var R=b.getCurrentTokenRow(),_=b.getCurrentTokenColumn()+O;A=new h(R,_,R,_+y.start.length);break}x=b.stepBackward()}for(var b=new d(g,v.row,v.column),x=b.getCurrentToken();x&&/comment/.test(x.type);){var O=x.value.indexOf(y.end);if(O!=-1){var R=b.getCurrentTokenRow(),_=b.getCurrentTokenColumn()+O;C=new h(R,_,R,_+y.end.length);break}x=b.stepForward()}C&&g.remove(C),A&&(g.remove(A),w=A.start.row,S=-y.start.length)}else S=y.start.length,w=m.start.row,g.insert(m.end,y.end),g.insert(m.start,y.start);k.start.row==w&&(k.start.column+=S),k.end.row==w&&(k.end.column+=S),g.selection.fromOrientedRange(k)}},this.getNextLineIndent=function(f,g,m){return this.$getIndent(g)},this.checkOutdent=function(f,g,m){return!1},this.autoOutdent=function(f,g,m){},this.$getIndent=function(f){return f.match(/^\s*/)[0]},this.createWorker=function(f){return null},this.createModeDelegates=function(f){this.$embeds=[],this.$modes={};for(var g in f)if(f[g]){var m=f[g],v=m.prototype.$id,y=i.$modes[v];y||(i.$modes[v]=y=new m),i.$modes[g]||(i.$modes[g]=y),this.$embeds.push(g),this.$modes[g]=y}for(var b=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],x=function(w){(function(S){var A=b[w],C=S[A];S[b[w]]=function(){return this.$delegator(A,arguments,C)}})(k)},k=this,g=0;gthis.row)){var h=u(d,{row:this.row,column:this.column},this.$insertRight);this.setPosition(h.row,h.column,!0)}},c.prototype.setPosition=function(d,h,p){var f;if(p?f={row:d,column:h}:f=this.$clipPositionToDocument(d,h),!(this.row==f.row&&this.column==f.column)){var g={row:this.row,column:this.column};this.row=f.row,this.column=f.column,this._signal("change",{old:g,value:f})}},c.prototype.detach=function(){this.document.off("change",this.$onChange)},c.prototype.attach=function(d){this.document=d||this.document,this.document.on("change",this.$onChange)},c.prototype.$clipPositionToDocument=function(d,h){var p={};return d>=this.document.getLength()?(p.row=Math.max(0,this.document.getLength()-1),p.column=this.document.getLine(p.row).length):d<0?(p.row=0,p.column=0):(p.row=d,p.column=Math.min(this.document.getLine(p.row).length,Math.max(0,h))),h<0&&(p.column=0),p},c}();l.prototype.$insertRight=!1,i.implement(l.prototype,s);function a(c,d,h){var p=h?c.column<=d.column:c.column-1},m.recordAutoInsert=function(v,y,b){var x=v.getCursorPosition(),k=y.doc.getLine(x.row);this.isAutoInsertedClosing(x,k,d.autoInsertedLineEnd[0])||(d.autoInsertedBrackets=0),d.autoInsertedRow=x.row,d.autoInsertedLineEnd=b+k.substr(x.column),d.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,b){var x=v.getCursorPosition(),k=y.doc.getLine(x.row);this.isMaybeInsertedClosing(x,k)||(d.maybeInsertedBrackets=0),d.maybeInsertedRow=x.row,d.maybeInsertedLineStart=k.substr(0,x.column)+b,d.maybeInsertedLineEnd=k.substr(x.column),d.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,b){return d.autoInsertedBrackets>0&&v.row===d.autoInsertedRow&&b===d.autoInsertedLineEnd[0]&&y.substr(v.column)===d.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return d.maybeInsertedBrackets>0&&v.row===d.maybeInsertedRow&&y.substr(v.column)===d.maybeInsertedLineEnd&&y.substr(0,v.column)==d.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){d.autoInsertedLineEnd=d.autoInsertedLineEnd.substr(1),d.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){d&&(d.maybeInsertedBrackets=0,d.maybeInsertedRow=-1)},i.inherits(m,s),r.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,r,o){for(var i=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],s=0,l=[],a=0;a2?U%w!=w-1:U%w==0}}else{if(!this.blockComment)return!1;var T=this.blockComment.start,C=this.blockComment.end,O=new RegExp("^(\\s*)(?:"+c.escapeRegExp(T)+")"),R=new RegExp("(?:"+c.escapeRegExp(C)+")\\s*$"),_=function($,P){E($,P)||(!b||/\S/.test($))&&(y.insertInLine({row:P,column:$.length},C),y.insertInLine({row:P,column:k},T))},A=function($,P){var F;(F=$.match(R))&&y.removeInLine(P,$.length-F[0].length,$.length),(F=$.match(O))&&y.removeInLine(P,F[1].length,F[0].length)},E=function($,P){if(O.test($))return!0;for(var F=g.getTokens(P),H=0;H$.length&&(L=$.length)}),k==1/0&&(k=L,b=!1,x=!1),S&&k%w!=0&&(k=Math.floor(k/w)*w),N(x?A:_)},this.toggleBlockComment=function(f,g,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var b=new d(g,v.row,v.column),x=b.getCurrentToken();g.selection;var k=g.selection.toOrientedRange(),w,S;if(x&&/comment/.test(x.type)){for(var T,C;x&&/comment/.test(x.type);){var O=x.value.indexOf(y.start);if(O!=-1){var R=b.getCurrentTokenRow(),_=b.getCurrentTokenColumn()+O;T=new h(R,_,R,_+y.start.length);break}x=b.stepBackward()}for(var b=new d(g,v.row,v.column),x=b.getCurrentToken();x&&/comment/.test(x.type);){var O=x.value.indexOf(y.end);if(O!=-1){var R=b.getCurrentTokenRow(),_=b.getCurrentTokenColumn()+O;C=new h(R,_,R,_+y.end.length);break}x=b.stepForward()}C&&g.remove(C),T&&(g.remove(T),w=T.start.row,S=-y.start.length)}else S=y.start.length,w=m.start.row,g.insert(m.end,y.end),g.insert(m.start,y.start);k.start.row==w&&(k.start.column+=S),k.end.row==w&&(k.end.column+=S),g.selection.fromOrientedRange(k)}},this.getNextLineIndent=function(f,g,m){return this.$getIndent(g)},this.checkOutdent=function(f,g,m){return!1},this.autoOutdent=function(f,g,m){},this.$getIndent=function(f){return f.match(/^\s*/)[0]},this.createWorker=function(f){return null},this.createModeDelegates=function(f){this.$embeds=[],this.$modes={};for(var g in f)if(f[g]){var m=f[g],v=m.prototype.$id,y=i.$modes[v];y||(i.$modes[v]=y=new m),i.$modes[g]||(i.$modes[g]=y),this.$embeds.push(g),this.$modes[g]=y}for(var b=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],x=function(w){(function(S){var T=b[w],C=S[T];S[b[w]]=function(){return this.$delegator(T,arguments,C)}})(k)},k=this,g=0;gthis.row)){var h=u(d,{row:this.row,column:this.column},this.$insertRight);this.setPosition(h.row,h.column,!0)}},c.prototype.setPosition=function(d,h,p){var f;if(p?f={row:d,column:h}:f=this.$clipPositionToDocument(d,h),!(this.row==f.row&&this.column==f.column)){var g={row:this.row,column:this.column};this.row=f.row,this.column=f.column,this._signal("change",{old:g,value:f})}},c.prototype.detach=function(){this.document.off("change",this.$onChange)},c.prototype.attach=function(d){this.document=d||this.document,this.document.on("change",this.$onChange)},c.prototype.$clipPositionToDocument=function(d,h){var p={};return d>=this.document.getLength()?(p.row=Math.max(0,this.document.getLength()-1),p.column=this.document.getLine(p.row).length):d<0?(p.row=0,p.column=0):(p.row=d,p.column=Math.min(this.document.getLine(p.row).length,Math.max(0,h))),h<0&&(p.column=0),p},c}();l.prototype.$insertRight=!1,i.implement(l.prototype,s);function a(c,d,h){var p=h?c.column<=d.column:c.column=f&&(h=f-1,p=void 0);var g=this.getLine(h);return p==null&&(p=g.length),p=Math.min(Math.max(p,0),g.length),{row:h,column:p}},d.prototype.clonePos=function(h){return{row:h.row,column:h.column}},d.prototype.pos=function(h,p){return{row:h,column:p}},d.prototype.$clipPosition=function(h){var p=this.getLength();return h.row>=p?(h.row=Math.max(0,p-1),h.column=this.getLine(p-1).length):(h.row=Math.max(0,h.row),h.column=Math.min(Math.max(h.column,0),this.getLine(h.row).length)),h},d.prototype.insertFullLines=function(h,p){h=Math.min(Math.max(h,0),this.getLength());var f=0;h0,g=p=0&&this.applyDelta({start:this.pos(h,this.getLine(h).length),end:this.pos(h+1,0),action:"remove",lines:["",""]})},d.prototype.replace=function(h,p){if(h instanceof a||(h=a.fromPoints(h.start,h.end)),p.length===0&&h.isEmpty())return h.start;if(p==this.getTextRange(h))return h.end;this.remove(h);var f;return p?f=this.insert(h.start,p):f=h.start,f},d.prototype.applyDeltas=function(h){for(var p=0;p=0;p--)this.revertDelta(h[p])},d.prototype.applyDelta=function(h,p){var f=h.action=="insert";(f?h.lines.length<=1&&!h.lines[0]:!a.comparePoints(h.start,h.end))||(f&&h.lines.length>2e4?this.$splitAndapplyLargeDelta(h,2e4):(s(this.$lines,h,p),this._signal("change",h)))},d.prototype.$safeApplyDelta=function(h){var p=this.$lines.length;(h.action=="remove"&&h.start.row20){d.running=setTimeout(d.$worker,20);break}}d.currentLine=p,f==-1&&(f=p),m<=f&&d.fireUpdateEvent(m,f)}}}return a.prototype.setTokenizer=function(u){this.tokenizer=u,this.lines=[],this.states=[],this.start(0)},a.prototype.setDocument=function(u){this.doc=u,this.lines=[],this.states=[],this.stop()},a.prototype.fireUpdateEvent=function(u,c){var d={first:u,last:c};this._signal("update",{data:d})},a.prototype.start=function(u){this.currentLine=Math.min(u||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},a.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},a.prototype.$updateOnChange=function(u){var c=u.start.row,d=u.end.row-c;if(d===0)this.lines[c]=null;else if(u.action=="remove")this.lines.splice(c,d+1,null),this.states.splice(c,d+1,null);else{var h=Array(d+1);h.unshift(c,1),this.lines.splice.apply(this.lines,h),this.states.splice.apply(this.states,h)}this.currentLine=Math.min(c,this.currentLine,this.doc.getLength()),this.stop()},a.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},a.prototype.getTokens=function(u){return this.lines[u]||this.$tokenizeRow(u)},a.prototype.getState=function(u){return this.currentLine==u&&this.$tokenizeRow(u),this.states[u]||"start"},a.prototype.$tokenizeRow=function(u){var c=this.doc.getLine(u),d=this.states[u-1],h=this.tokenizer.getLineTokens(c,d,u);return this.states[u]+""!=h.state+""?(this.states[u]=h.state,this.lines[u+1]=null,this.currentLine>u+1&&(this.currentLine=u+1)):this.currentLine==u&&(this.currentLine=u+1),this.lines[u]=h.tokens},a.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},a}();i.implement(l.prototype,s),r.BackgroundTokenizer=l}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,r,o){var i=n("./lib/lang"),s=n("./range").Range,l=function(){function a(u,c,d){d===void 0&&(d="text"),this.setRegexp(u),this.clazz=c,this.type=d}return a.prototype.setRegexp=function(u){this.regExp+""!=u+""&&(this.regExp=u,this.cache=[])},a.prototype.update=function(u,c,d,h){if(this.regExp)for(var p=h.firstRow,f=h.lastRow,g={},m=p;m<=f;m++){var v=this.cache[m];v==null&&(v=i.getMatchOffsets(d.getLine(m),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(k){return new s(m,k.offset,m,k.offset+k.length)}),this.cache[m]=v.length?v:"");for(var y=v.length;y--;){var b=v[y].toScreenRange(d),x=b.toString();g[x]||(g[x]=!0,c.drawSingleLineMarker(u,b,this.clazz,h))}}},a}();l.prototype.MAX_RANGES=500,r.SearchHighlight=l}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,r,o){var i=function(){function k(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return k.prototype.addSession=function(w){this.$session=w},k.prototype.add=function(w,S,A){if(!this.$fromUndo&&w!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),S===!1||!this.lastDeltas){this.lastDeltas=[];var C=this.$undoStack.length;C>this.$undoDepth-1&&this.$undoStack.splice(0,C-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),w.id=this.$rev=++this.$maxRev}(w.action=="remove"||w.action=="insert")&&(this.$lastDelta=w),this.lastDeltas.push(w)}},k.prototype.addSelection=function(w,S){this.selections.push({value:w,rev:S||this.$rev})},k.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},k.prototype.markIgnored=function(w,S){S==null&&(S=this.$rev+1);for(var A=this.$undoStack,C=A.length;C--;){var O=A[C][0];if(O.id<=w)break;O.id0},k.prototype.canRedo=function(){return this.$redoStack.length>0},k.prototype.bookmark=function(w){w==null&&(w=this.$rev),this.mark=w},k.prototype.isAtBookmark=function(){return this.$rev===this.mark},k.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},k.prototype.fromJSON=function(w){this.reset(),this.$undoStack=w.$undoStack,this.$redoStack=w.$redoStack},k.prototype.$prettyPrint=function(w){return w?d(w):d(this.$undoStack)+` +`},d.prototype.getLine=function(h){return this.$lines[h]||""},d.prototype.getLines=function(h,p){return this.$lines.slice(h,p+1)},d.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},d.prototype.getLength=function(){return this.$lines.length},d.prototype.getTextRange=function(h){return this.getLinesForRange(h).join(this.getNewLineCharacter())},d.prototype.getLinesForRange=function(h){var p;if(h.start.row===h.end.row)p=[this.getLine(h.start.row).substring(h.start.column,h.end.column)];else{p=this.getLines(h.start.row,h.end.row),p[0]=(p[0]||"").substring(h.start.column);var f=p.length-1;h.end.row-h.start.row==f&&(p[f]=p[f].substring(0,h.end.column))}return p},d.prototype.insertLines=function(h,p){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(h,p)},d.prototype.removeLines=function(h,p){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(h,p)},d.prototype.insertNewLine=function(h){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(h,["",""])},d.prototype.insert=function(h,p){return this.getLength()<=1&&this.$detectNewLine(p),this.insertMergedLines(h,this.$split(p))},d.prototype.insertInLine=function(h,p){var f=this.clippedPos(h.row,h.column),g=this.pos(h.row,h.column+p.length);return this.applyDelta({start:f,end:g,action:"insert",lines:[p]},!0),this.clonePos(g)},d.prototype.clippedPos=function(h,p){var f=this.getLength();h===void 0?h=f:h<0?h=0:h>=f&&(h=f-1,p=void 0);var g=this.getLine(h);return p==null&&(p=g.length),p=Math.min(Math.max(p,0),g.length),{row:h,column:p}},d.prototype.clonePos=function(h){return{row:h.row,column:h.column}},d.prototype.pos=function(h,p){return{row:h,column:p}},d.prototype.$clipPosition=function(h){var p=this.getLength();return h.row>=p?(h.row=Math.max(0,p-1),h.column=this.getLine(p-1).length):(h.row=Math.max(0,h.row),h.column=Math.min(Math.max(h.column,0),this.getLine(h.row).length)),h},d.prototype.insertFullLines=function(h,p){h=Math.min(Math.max(h,0),this.getLength());var f=0;h0,g=p=0&&this.applyDelta({start:this.pos(h,this.getLine(h).length),end:this.pos(h+1,0),action:"remove",lines:["",""]})},d.prototype.replace=function(h,p){if(h instanceof a||(h=a.fromPoints(h.start,h.end)),p.length===0&&h.isEmpty())return h.start;if(p==this.getTextRange(h))return h.end;this.remove(h);var f;return p?f=this.insert(h.start,p):f=h.start,f},d.prototype.applyDeltas=function(h){for(var p=0;p=0;p--)this.revertDelta(h[p])},d.prototype.applyDelta=function(h,p){var f=h.action=="insert";(f?h.lines.length<=1&&!h.lines[0]:!a.comparePoints(h.start,h.end))||(f&&h.lines.length>2e4?this.$splitAndapplyLargeDelta(h,2e4):(s(this.$lines,h,p),this._signal("change",h)))},d.prototype.$safeApplyDelta=function(h){var p=this.$lines.length;(h.action=="remove"&&h.start.row20){d.running=setTimeout(d.$worker,20);break}}d.currentLine=p,f==-1&&(f=p),m<=f&&d.fireUpdateEvent(m,f)}}}return a.prototype.setTokenizer=function(u){this.tokenizer=u,this.lines=[],this.states=[],this.start(0)},a.prototype.setDocument=function(u){this.doc=u,this.lines=[],this.states=[],this.stop()},a.prototype.fireUpdateEvent=function(u,c){var d={first:u,last:c};this._signal("update",{data:d})},a.prototype.start=function(u){this.currentLine=Math.min(u||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},a.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},a.prototype.$updateOnChange=function(u){var c=u.start.row,d=u.end.row-c;if(d===0)this.lines[c]=null;else if(u.action=="remove")this.lines.splice(c,d+1,null),this.states.splice(c,d+1,null);else{var h=Array(d+1);h.unshift(c,1),this.lines.splice.apply(this.lines,h),this.states.splice.apply(this.states,h)}this.currentLine=Math.min(c,this.currentLine,this.doc.getLength()),this.stop()},a.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},a.prototype.getTokens=function(u){return this.lines[u]||this.$tokenizeRow(u)},a.prototype.getState=function(u){return this.currentLine==u&&this.$tokenizeRow(u),this.states[u]||"start"},a.prototype.$tokenizeRow=function(u){var c=this.doc.getLine(u),d=this.states[u-1],h=this.tokenizer.getLineTokens(c,d,u);return this.states[u]+""!=h.state+""?(this.states[u]=h.state,this.lines[u+1]=null,this.currentLine>u+1&&(this.currentLine=u+1)):this.currentLine==u&&(this.currentLine=u+1),this.lines[u]=h.tokens},a.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},a}();i.implement(l.prototype,s),r.BackgroundTokenizer=l}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,r,o){var i=n("./lib/lang"),s=n("./range").Range,l=function(){function a(u,c,d){d===void 0&&(d="text"),this.setRegexp(u),this.clazz=c,this.type=d}return a.prototype.setRegexp=function(u){this.regExp+""!=u+""&&(this.regExp=u,this.cache=[])},a.prototype.update=function(u,c,d,h){if(this.regExp)for(var p=h.firstRow,f=h.lastRow,g={},m=p;m<=f;m++){var v=this.cache[m];v==null&&(v=i.getMatchOffsets(d.getLine(m),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(k){return new s(m,k.offset,m,k.offset+k.length)}),this.cache[m]=v.length?v:"");for(var y=v.length;y--;){var b=v[y].toScreenRange(d),x=b.toString();g[x]||(g[x]=!0,c.drawSingleLineMarker(u,b,this.clazz,h))}}},a}();l.prototype.MAX_RANGES=500,r.SearchHighlight=l}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,r,o){var i=function(){function k(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return k.prototype.addSession=function(w){this.$session=w},k.prototype.add=function(w,S,T){if(!this.$fromUndo&&w!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),S===!1||!this.lastDeltas){this.lastDeltas=[];var C=this.$undoStack.length;C>this.$undoDepth-1&&this.$undoStack.splice(0,C-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),w.id=this.$rev=++this.$maxRev}(w.action=="remove"||w.action=="insert")&&(this.$lastDelta=w),this.lastDeltas.push(w)}},k.prototype.addSelection=function(w,S){this.selections.push({value:w,rev:S||this.$rev})},k.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},k.prototype.markIgnored=function(w,S){S==null&&(S=this.$rev+1);for(var T=this.$undoStack,C=T.length;C--;){var O=T[C][0];if(O.id<=w)break;O.id0},k.prototype.canRedo=function(){return this.$redoStack.length>0},k.prototype.bookmark=function(w){w==null&&(w=this.$rev),this.mark=w},k.prototype.isAtBookmark=function(){return this.$rev===this.mark},k.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},k.prototype.fromJSON=function(w){this.reset(),this.$undoStack=w.$undoStack,this.$redoStack=w.$redoStack},k.prototype.$prettyPrint=function(w){return w?d(w):d(this.$undoStack)+` --- -`+d(this.$redoStack)},k}();i.prototype.hasUndo=i.prototype.canUndo,i.prototype.hasRedo=i.prototype.canRedo,i.prototype.isClean=i.prototype.isAtBookmark,i.prototype.markClean=i.prototype.bookmark;function s(k,w){for(var S=w;S--;){var A=k[S];if(A&&!A[0].ignore){for(;S"+k.end.row+":"+k.end.column}function p(k,w){var S=k.action=="insert",A=w.action=="insert";if(S&&A)if(a(w.start,k.end)>=0)m(w,k,-1);else if(a(w.start,k.start)<=0)m(k,w,1);else return null;else if(S&&!A)if(a(w.start,k.end)>=0)m(w,k,-1);else if(a(w.end,k.start)<=0)m(k,w,-1);else return null;else if(!S&&A)if(a(w.start,k.start)>=0)m(w,k,1);else if(a(w.start,k.start)<=0)m(k,w,1);else return null;else if(!S&&!A)if(a(w.start,k.start)>=0)m(w,k,1);else if(a(w.end,k.start)<=0)m(k,w,-1);else return null;return[w,k]}function f(k,w){for(var S=k.length;S--;)for(var A=0;A=0?m(k,w,-1):(a(k.start,w.start)<=0||m(k,l.fromPoints(w.start,k.start),-1),m(w,k,1));else if(!S&&A)a(w.start,k.end)>=0?m(w,k,-1):(a(w.start,k.start)<=0||m(w,l.fromPoints(k.start,w.start),-1),m(k,w,1));else if(!S&&!A)if(a(w.start,k.end)>=0)m(w,k,-1);else if(a(w.end,k.start)<=0)m(k,w,-1);else{var C,O;return a(k.start,w.start)<0&&(C=k,k=y(k,w.start)),a(k.end,w.end)>0&&(O=y(k,w.end)),v(w.end,k.start,k.end,-1),O&&!C&&(k.lines=O.lines,k.start=O.start,k.end=O.end,O=k),[w,C,O].filter(Boolean)}return[w,k]}function m(k,w,S){v(k.start,w.start,w.end,S),v(k.end,w.start,w.end,S)}function v(k,w,S,A){k.row==(A==1?w:S).row&&(k.column+=A*(S.column-w.column)),k.row+=A*(S.row-w.row)}function y(k,w){var S=k.lines,A=k.end;k.end=u(w);var C=k.end.row-k.start.row,O=S.splice(C,S.length),R=C?w.column:w.column-k.start.column;S.push(O[0].substring(0,R)),O[0]=O[0].substr(R);var _={start:u(w),end:A,lines:O,action:k.action};return _}function b(k,w){w=c(w);for(var S=k.length;S--;){for(var A=k[S],C=0;Cthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(a),this.folds.sort(function(u,c){return-u.range.compareEnd(c.start.row,c.start.column)}),this.range.compareEnd(a.start.row,a.start.column)>0?(this.end.row=a.end.row,this.end.column=a.end.column):this.range.compareStart(a.end.row,a.end.column)<0&&(this.start.row=a.start.row,this.start.column=a.start.column)}else if(a.start.row==this.end.row)this.folds.push(a),this.end.row=a.end.row,this.end.column=a.end.column;else if(a.end.row==this.start.row)this.folds.unshift(a),this.start.row=a.start.row,this.start.column=a.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");a.foldLine=this},l.prototype.containsRow=function(a){return a>=this.start.row&&a<=this.end.row},l.prototype.walk=function(a,u,c){var d=0,h=this.folds,p,f,g,m=!0;u==null&&(u=this.end.row,c=this.end.column);for(var v=0;v0)){var m=s(u,f.start);return g===0?c&&m!==0?-p-2:p:m>0||m===0&&!c?p:-p-1}}return-p-1},a.prototype.add=function(u){var c=!u.isEmpty(),d=this.pointIndex(u.start,c);d<0&&(d=-d-1);var h=this.pointIndex(u.end,c,d);return h<0?h=-h-1:h++,this.ranges.splice(d,h-d,u)},a.prototype.addList=function(u){for(var c=[],d=u.length;d--;)c.push.apply(c,this.add(u[d]));return c},a.prototype.substractPoint=function(u){var c=this.pointIndex(u);if(c>=0)return this.ranges.splice(c,1)},a.prototype.merge=function(){var u=[],c=this.ranges;c=c.sort(function(g,m){return s(g.start,m.start)});for(var d=c[0],h,p=1;p=0},a.prototype.containsPoint=function(u){return this.pointIndex(u)>=0},a.prototype.rangeAtPoint=function(u){var c=this.pointIndex(u);if(c>=0)return this.ranges[c]},a.prototype.clipRows=function(u,c){var d=this.ranges;if(d[0].start.row>c||d[d.length-1].start.row=h)break}if(u.action=="insert")for(var y=p-h,b=-c.column+d.column;gh)break;if(v.start.row==h&&v.start.column>=c.column&&(v.start.column==c.column&&this.$bias<=0||(v.start.column+=b,v.start.row+=y)),v.end.row==h&&v.end.column>=c.column){if(v.end.column==c.column&&this.$bias<0)continue;v.end.column==c.column&&b>0&&gv.start.column&&v.end.column==f[g+1].start.column&&(v.end.column-=b),v.end.column+=b,v.end.row+=y}}else for(var y=h-p,b=c.column-d.column;gp)break;v.end.rowc.column)&&(v.end.column=c.column,v.end.row=c.row):(v.end.column+=b,v.end.row+=y):v.end.row>p&&(v.end.row+=y),v.start.rowc.column)&&(v.start.column=c.column,v.start.row=c.row):(v.start.column+=b,v.start.row+=y):v.start.row>p&&(v.start.row+=y)}if(y!=0&&g=d)return g;if(g.end.row>d)return null}return null},this.getNextFoldLine=function(d,h){var p=this.$foldData,f=0;for(h&&(f=p.indexOf(h)),f==-1&&(f=0),f;f=d)return g}return null},this.getFoldedRowCount=function(d,h){for(var p=this.$foldData,f=h-d+1,g=0;g=h){y=d?f-=h-y:f=0);break}else v>=d&&(y>=d?f-=v-y:f-=v-d+1)}return f},this.$addFoldLine=function(d){return this.$foldData.push(d),this.$foldData.sort(function(h,p){return h.start.row-p.start.row}),d},this.addFold=function(d,h){var p=this.$foldData,f=!1,g;d instanceof l?g=d:(g=new l(h,d),g.collapseChildren=h.collapseChildren),this.$clipRangeToDocument(g.range);var m=g.start.row,v=g.start.column,y=g.end.row,b=g.end.column,x=this.getFoldAt(m,v,1),k=this.getFoldAt(y,b,-1);if(x&&k==x)return x.addSubFold(g);x&&!x.range.isStart(m,v)&&this.removeFold(x),k&&!k.range.isEnd(y,b)&&this.removeFold(k);var w=this.getFoldsInRange(g.range);w.length>0&&(this.removeFolds(w),g.collapseChildren||w.forEach(function(O){g.addSubFold(O)}));for(var S=0;S0&&this.foldAll(d.start.row+1,d.end.row,d.collapseChildren-1),d.subFolds=[]},this.expandFolds=function(d){d.forEach(function(h){this.expandFold(h)},this)},this.unfold=function(d,h){var p,f;if(d==null)p=new i(0,0,this.getLength(),0),h==null&&(h=!0);else if(typeof d=="number")p=new i(d,0,d,this.getLine(d).length);else if("row"in d)p=i.fromPoints(d,d);else{if(Array.isArray(d))return f=[],d.forEach(function(m){f=f.concat(this.unfold(m))},this),f;p=d}f=this.getFoldsInRangeList(p);for(var g=f;f.length==1&&i.comparePoints(f[0].start,p.start)<0&&i.comparePoints(f[0].end,p.end)>0;)this.expandFolds(f),f=this.getFoldsInRangeList(p);if(h!=!1?this.removeFolds(f):this.expandFolds(f),g.length)return g},this.isRowFolded=function(d,h){return!!this.getFoldLine(d,h)},this.getRowFoldEnd=function(d,h){var p=this.getFoldLine(d,h);return p?p.end.row:d},this.getRowFoldStart=function(d,h){var p=this.getFoldLine(d,h);return p?p.start.row:d},this.getFoldDisplayLine=function(d,h,p,f,g){f==null&&(f=d.start.row),g==null&&(g=0),h==null&&(h=d.end.row),p==null&&(p=this.getLine(h).length);var m=this.doc,v="";return d.walk(function(y,b,x,k){if(!(bb)break;while(g&&v.test(g.type)&&!/^comment.start/.test(g.type));g=f.stepBackward()}else g=f.getCurrentToken();return y.end.row=f.getCurrentTokenRow(),y.end.column=f.getCurrentTokenColumn(),/^comment.end/.test(g.type)||(y.end.column+=g.value.length-2),y}},this.foldAll=function(d,h,p,f){p==null&&(p=1e5);var g=this.foldWidgets;if(g){h=h||this.getLength(),d=d||0;for(var m=d;m=d&&(m=v.end.row,v.collapseChildren=p,this.addFold("...",v))}}},this.foldToLevel=function(d){for(this.foldAll();d-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var d=this;this.foldAll(null,null,null,function(h){for(var p=d.getTokens(h),f=0;f=0;){var m=p[f];if(m==null&&(m=p[f]=this.getFoldWidget(f)),m=="start"){var v=this.getFoldWidgetRange(f);if(g||(g=v),v&&v.end.row>=d)break}f--}return{range:f!==-1&&v,firstRange:g}},this.onFoldWidgetClick=function(d,h){h instanceof u&&(h=h.domEvent);var p={children:h.shiftKey,all:h.ctrlKey||h.metaKey,siblings:h.altKey},f=this.$toggleFoldWidget(d,p);if(!f){var g=h.target||h.srcElement;g&&/ace_fold-widget/.test(g.className)&&(g.className+=" ace_invalid")}},this.$toggleFoldWidget=function(d,h){if(this.getFoldWidget){var p=this.getFoldWidget(d),f=this.getLine(d),g=p==="end"?-1:1,m=this.getFoldAt(d,g===-1?0:f.length,g);if(m)return h.children||h.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(d,!0);if(v&&!v.isMultiLine()&&(m=this.getFoldAt(v.start.row,v.start.column,1),m&&v.isEqual(m.range)))return this.removeFold(m),m;if(h.siblings){var y=this.getParentFoldRangeData(d);if(y.range)var b=y.range.start.row+1,x=y.range.end.row;this.foldAll(b,x,h.all?1e4:0)}else h.children?(x=v?v.end.row:this.getLength(),this.foldAll(d+1,x,h.all?1e4:0)):v&&(h.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(d){var h=this.selection.getCursor().row;h=this.getRowFoldStart(h);var p=this.$toggleFoldWidget(h,{});if(!p){var f=this.getParentFoldRangeData(h,!0);if(p=f.range||f.firstRange,p){h=p.start.row;var g=this.getFoldAt(h,this.getLine(h).length,1);g?this.removeFold(g):this.addFold("...",p)}}},this.updateFoldWidgets=function(d){var h=d.start.row,p=d.end.row-h;if(p===0)this.foldWidgets[h]=null;else if(d.action=="remove")this.foldWidgets.splice(h,p+1,null);else{var f=Array(p+1);f.unshift(h,1),this.foldWidgets.splice.apply(this.foldWidgets,f)}},this.tokenizerUpdateFoldWidgets=function(d){var h=d.data;h.first!=h.last&&this.foldWidgets.length>h.first&&this.foldWidgets.splice(h.first,this.foldWidgets.length)}}r.Folding=c}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,r,o){var i=n("../token_iterator").TokenIterator,s=n("../range").Range;function l(){this.findMatchingBracket=function(a,u){if(a.column==0)return null;var c=u||this.getLine(a.row).charAt(a.column-1);if(c=="")return null;var d=c.match(/([\(\[\{])|([\)\]\}])/);return d?d[1]?this.$findClosingBracket(d[1],a):this.$findOpeningBracket(d[2],a):null},this.getBracketRange=function(a){var u=this.getLine(a.row),c=!0,d,h=u.charAt(a.column-1),p=h&&h.match(/([\(\[\{])|([\)\]\}])/);if(p||(h=u.charAt(a.column),a={row:a.row,column:a.column+1},p=h&&h.match(/([\(\[\{])|([\)\]\}])/),c=!1),!p)return null;if(p[1]){var f=this.$findClosingBracket(p[1],a);if(!f)return null;d=s.fromPoints(a,f),c||(d.end.column++,d.start.column--),d.cursor=d.end}else{var f=this.$findOpeningBracket(p[2],a);if(!f)return null;d=s.fromPoints(f,a),c||(d.start.column++,d.end.column--),d.cursor=d.start}return d},this.getMatchingBracketRanges=function(a,u){var c=this.getLine(a.row),d=/([\(\[\{])|([\)\]\}])/,h=!u&&c.charAt(a.column-1),p=h&&h.match(d);if(p||(h=(u===void 0||u)&&c.charAt(a.column),a={row:a.row,column:a.column+1},p=h&&h.match(d)),!p)return null;var f=new s(a.row,a.column-1,a.row,a.column),g=p[1]?this.$findClosingBracket(p[1],a):this.$findOpeningBracket(p[2],a);if(!g)return[f];var m=new s(g.row,g.column,g.row,g.column+1);return[f,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(a,u,c){var d=this.$brackets[a],h=1,p=new i(this,u.row,u.column),f=p.getCurrentToken();if(f||(f=p.stepForward()),!!f){c||(c=new RegExp("(\\.?"+f.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var g=u.column-p.getCurrentTokenColumn()-2,m=f.value;;){for(;g>=0;){var v=m.charAt(g);if(v==d){if(h-=1,h==0)return{row:p.getCurrentTokenRow(),column:g+p.getCurrentTokenColumn()}}else v==a&&(h+=1);g-=1}do f=p.stepBackward();while(f&&!c.test(f.type));if(f==null)break;m=f.value,g=m.length-1}return null}},this.$findClosingBracket=function(a,u,c){var d=this.$brackets[a],h=1,p=new i(this,u.row,u.column),f=p.getCurrentToken();if(f||(f=p.stepForward()),!!f){c||(c=new RegExp("(\\.?"+f.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var g=u.column-p.getCurrentTokenColumn();;){for(var m=f.value,v=m.length;g"?d=!0:u.type.indexOf("tag-name")!==-1&&(c=!0));while(u&&!c);return u},this.$findClosingTag=function(a,u){var c,d=u.value,h=u.value,p=0,f=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);u=a.stepForward();var g=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+u.value.length),m=!1;do if(c=u,u=a.stepForward(),u){if(u.value===">"&&!m){var v=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);m=!0}if(u.type.indexOf("tag-name")!==-1){if(d=u.value,h===d){if(c.value==="<")p++;else if(c.value==="")var x=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);else return}}}else if(h===d&&u.value==="/>"&&(p--,p<0))var y=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+2),b=y,x=b,v=new s(g.end.row,g.end.column,g.end.row,g.end.column+1)}while(u&&p>=0);if(f&&v&&y&&x&&g&&b)return{openTag:new s(f.start.row,f.start.column,v.end.row,v.end.column),closeTag:new s(y.start.row,y.start.column,x.end.row,x.end.column),openTagName:g,closeTagName:b}},this.$findOpeningTag=function(a,u){var c=a.getCurrentToken(),d=u.value,h=0,p=a.getCurrentTokenRow(),f=a.getCurrentTokenColumn(),g=f+2,m=new s(p,f,p,g);a.stepForward();var v=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+u.value.length);if(u=a.stepForward(),!(!u||u.value!==">")){var y=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);a.stepBackward(),a.stepBackward();do if(u=c,p=a.getCurrentTokenRow(),f=a.getCurrentTokenColumn(),g=f+u.value.length,c=a.stepBackward(),u){if(u.type.indexOf("tag-name")!==-1){if(d===u.value)if(c.value==="<"){if(h++,h>0){var b=new s(p,f,p,g),x=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);do u=a.stepForward();while(u&&u.value!==">");var k=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1)}}else c.value===""){for(var w=0,S=c;S;){if(S.type.indexOf("tag-name")!==-1&&S.value===d){h--;break}else if(S.value==="<")break;S=a.stepBackward(),w++}for(var A=0;AE&&(this.$docRowCache.splice(E,T),this.$screenRowCache.splice(E,T))},R.prototype.$getRowCacheIndex=function(_,T){for(var E=0,M=_.length-1;E<=M;){var I=E+M>>1,N=_[I];if(T>N)E=I+1;else if(T=T));N++);return M=E[N],M?(M.index=N,M.start=I-M.value.length,M):null},R.prototype.setUndoManager=function(_){if(this.$undoManager=_,this.$informUndoManager&&this.$informUndoManager.cancel(),_){var T=this;_.addSession(this),this.$syncInformUndoManager=function(){T.$informUndoManager.cancel(),T.mergeUndoDeltas=!1},this.$informUndoManager=s.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},R.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},R.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},R.prototype.getTabString=function(){return this.getUseSoftTabs()?s.stringRepeat(" ",this.getTabSize()):" "},R.prototype.setUseSoftTabs=function(_){this.setOption("useSoftTabs",_)},R.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},R.prototype.setTabSize=function(_){this.setOption("tabSize",_)},R.prototype.getTabSize=function(){return this.$tabSize},R.prototype.isTabStop=function(_){return this.$useSoftTabs&&_.column%this.$tabSize===0},R.prototype.setNavigateWithinSoftTabs=function(_){this.setOption("navigateWithinSoftTabs",_)},R.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},R.prototype.setOverwrite=function(_){this.setOption("overwrite",_)},R.prototype.getOverwrite=function(){return this.$overwrite},R.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},R.prototype.addGutterDecoration=function(_,T){this.$decorations[_]||(this.$decorations[_]=""),this.$decorations[_]+=" "+T,this._signal("changeBreakpoint",{})},R.prototype.removeGutterDecoration=function(_,T){this.$decorations[_]=(this.$decorations[_]||"").replace(" "+T,""),this._signal("changeBreakpoint",{})},R.prototype.getBreakpoints=function(){return this.$breakpoints},R.prototype.setBreakpoints=function(_){this.$breakpoints=[];for(var T=0;T<_.length;T++)this.$breakpoints[_[T]]="ace_breakpoint";this._signal("changeBreakpoint",{})},R.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},R.prototype.setBreakpoint=function(_,T){T===void 0&&(T="ace_breakpoint"),T?this.$breakpoints[_]=T:delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},R.prototype.clearBreakpoint=function(_){delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},R.prototype.addMarker=function(_,T,E,M){var I=this.$markerId++,N={range:_,type:E||"line",renderer:typeof E=="function"?E:null,clazz:T,inFront:!!M,id:I};return M?(this.$frontMarkers[I]=N,this._signal("changeFrontMarker")):(this.$backMarkers[I]=N,this._signal("changeBackMarker")),I},R.prototype.addDynamicMarker=function(_,T){if(_.update){var E=this.$markerId++;return _.id=E,_.inFront=!!T,T?(this.$frontMarkers[E]=_,this._signal("changeFrontMarker")):(this.$backMarkers[E]=_,this._signal("changeBackMarker")),_}},R.prototype.removeMarker=function(_){var T=this.$frontMarkers[_]||this.$backMarkers[_];if(T){var E=T.inFront?this.$frontMarkers:this.$backMarkers;delete E[_],this._signal(T.inFront?"changeFrontMarker":"changeBackMarker")}},R.prototype.getMarkers=function(_){return _?this.$frontMarkers:this.$backMarkers},R.prototype.highlight=function(_){if(!this.$searchHighlight){var T=new g(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(T)}this.$searchHighlight.setRegexp(_)},R.prototype.highlightLines=function(_,T,E,M){typeof T!="number"&&(E=T,T=_),E||(E="ace_step");var I=new h(_,0,T,1/0);return I.id=this.addMarker(I,E,"fullLine",M),I},R.prototype.setAnnotations=function(_){this.$annotations=_,this._signal("changeAnnotation",{})},R.prototype.getAnnotations=function(){return this.$annotations||[]},R.prototype.clearAnnotations=function(){this.setAnnotations([])},R.prototype.$detectNewLine=function(_){var T=_.match(/^.*?(\r?\n)/m);T?this.$autoNewLine=T[1]:this.$autoNewLine=` -`},R.prototype.getWordRange=function(_,T){var E=this.getLine(_),M=!1;if(T>0&&(M=!!E.charAt(T-1).match(this.tokenRe)),M||(M=!!E.charAt(T).match(this.tokenRe)),M)var I=this.tokenRe;else if(/^\s+$/.test(E.slice(T-1,T+1)))var I=/\s/;else var I=this.nonTokenRe;var N=T;if(N>0){do N--;while(N>=0&&E.charAt(N).match(I));N++}for(var L=T;L_&&(_=T.screenWidth)}),this.lineWidgetWidth=_},R.prototype.$computeWidth=function(_){if(this.$modified||_){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var T=this.doc.getAllLines(),E=this.$rowLengthCache,M=0,I=0,N=this.$foldData[I],L=N?N.start.row:1/0,$=T.length,P=0;P<$;P++){if(P>L){if(P=N.end.row+1,P>=$)break;N=this.$foldData[I++],L=N?N.start.row:1/0}E[P]==null&&(E[P]=this.$getStringScreenWidth(T[P])[0]),E[P]>M&&(M=E[P])}this.screenWidth=M}},R.prototype.getLine=function(_){return this.doc.getLine(_)},R.prototype.getLines=function(_,T){return this.doc.getLines(_,T)},R.prototype.getLength=function(){return this.doc.getLength()},R.prototype.getTextRange=function(_){return this.doc.getTextRange(_||this.selection.getRange())},R.prototype.insert=function(_,T){return this.doc.insert(_,T)},R.prototype.remove=function(_){return this.doc.remove(_)},R.prototype.removeFullLines=function(_,T){return this.doc.removeFullLines(_,T)},R.prototype.undoChanges=function(_,T){if(_.length){this.$fromUndo=!0;for(var E=_.length-1;E!=-1;E--){var M=_[E];M.action=="insert"||M.action=="remove"?this.doc.revertDelta(M):M.folds&&this.addFolds(M.folds)}!T&&this.$undoSelect&&(_.selectionBefore?this.selection.fromJSON(_.selectionBefore):this.selection.setRange(this.$getUndoSelection(_,!0))),this.$fromUndo=!1}},R.prototype.redoChanges=function(_,T){if(_.length){this.$fromUndo=!0;for(var E=0;E<_.length;E++){var M=_[E];(M.action=="insert"||M.action=="remove")&&this.doc.$safeApplyDelta(M)}!T&&this.$undoSelect&&(_.selectionAfter?this.selection.fromJSON(_.selectionAfter):this.selection.setRange(this.$getUndoSelection(_,!1))),this.$fromUndo=!1}},R.prototype.setUndoSelect=function(_){this.$undoSelect=_},R.prototype.$getUndoSelection=function(_,T){function E($){return T?$.action!=="insert":$.action==="insert"}for(var M,I,N=0;N<_.length;N++){var L=_[N];if(L.start){if(!M){E(L)?M=h.fromPoints(L.start,L.end):M=h.fromPoints(L.start,L.start);continue}E(L)?(I=L.start,M.compare(I.row,I.column)==-1&&M.setStart(I),I=L.end,M.compare(I.row,I.column)==1&&M.setEnd(I)):(I=L.start,M.compare(I.row,I.column)==-1&&(M=h.fromPoints(L.start,L.start)))}}return M},R.prototype.replace=function(_,T){return this.doc.replace(_,T)},R.prototype.moveText=function(_,T,E){var M=this.getTextRange(_),I=this.getFoldsInRange(_),N=h.fromPoints(T,T);if(!E){this.remove(_);var L=_.start.row-_.end.row,$=L?-_.end.column:_.start.column-_.end.column;$&&(N.start.row==_.end.row&&N.start.column>_.end.column&&(N.start.column+=$),N.end.row==_.end.row&&N.end.column>_.end.column&&(N.end.column+=$)),L&&N.start.row>=_.end.row&&(N.start.row+=L,N.end.row+=L)}if(N.end=this.insert(N.start,M),I.length){var P=_.start,F=N.start,L=F.row-P.row,$=F.column-P.column;this.addFolds(I.map(function(B){return B=B.clone(),B.start.row==P.row&&(B.start.column+=$),B.end.row==P.row&&(B.end.column+=$),B.start.row+=L,B.end.row+=L,B}))}return N},R.prototype.indentRows=function(_,T,E){E=E.replace(/\t/g,this.getTabString());for(var M=_;M<=T;M++)this.doc.insertInLine({row:M,column:0},E)},R.prototype.outdentRows=function(_){for(var T=_.collapseRows(),E=new h(0,0,0,0),M=this.getTabSize(),I=T.start.row;I<=T.end.row;++I){var N=this.getLine(I);E.start.row=I,E.end.row=I;for(var L=0;L0){var M=this.getRowFoldEnd(T+E);if(M>this.doc.getLength()-1)return 0;var I=M-T}else{_=this.$clipRowToDocument(_),T=this.$clipRowToDocument(T);var I=T-_+1}var N=new h(_,0,T,Number.MAX_VALUE),L=this.getFoldsInRange(N).map(function(P){return P=P.clone(),P.start.row+=I,P.end.row+=I,P}),$=E==0?this.doc.getLines(_,T):this.doc.removeFullLines(_,T);return this.doc.insertFullLines(_+I,$),L.length&&this.addFolds(L),I},R.prototype.moveLinesUp=function(_,T){return this.$moveLines(_,T,-1)},R.prototype.moveLinesDown=function(_,T){return this.$moveLines(_,T,1)},R.prototype.duplicateLines=function(_,T){return this.$moveLines(_,T,0)},R.prototype.$clipRowToDocument=function(_){return Math.max(0,Math.min(_,this.doc.getLength()-1))},R.prototype.$clipColumnToRow=function(_,T){return T<0?0:Math.min(this.doc.getLine(_).length,T)},R.prototype.$clipPositionToDocument=function(_,T){if(T=Math.max(0,T),_<0)_=0,T=0;else{var E=this.doc.getLength();_>=E?(_=E-1,T=this.doc.getLine(E-1).length):T=Math.min(this.doc.getLine(_).length,T)}return{row:_,column:T}},R.prototype.$clipRangeToDocument=function(_){_.start.row<0?(_.start.row=0,_.start.column=0):_.start.column=this.$clipColumnToRow(_.start.row,_.start.column);var T=this.doc.getLength()-1;return _.end.row>T?(_.end.row=T,_.end.column=this.doc.getLine(T).length):_.end.column=this.$clipColumnToRow(_.end.row,_.end.column),_},R.prototype.setUseWrapMode=function(_){if(_!=this.$useWrapMode){if(this.$useWrapMode=_,this.$modified=!0,this.$resetRowCache(0),_){var T=this.getLength();this.$wrapData=Array(T),this.$updateWrapData(0,T-1)}this._signal("changeWrapMode")}},R.prototype.getUseWrapMode=function(){return this.$useWrapMode},R.prototype.setWrapLimitRange=function(_,T){(this.$wrapLimitRange.min!==_||this.$wrapLimitRange.max!==T)&&(this.$wrapLimitRange={min:_,max:T},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},R.prototype.adjustWrapLimit=function(_,T){var E=this.$wrapLimitRange;E.max<0&&(E={min:T,max:T});var M=this.$constrainWrapLimit(_,E.min,E.max);return M!=this.$wrapLimit&&M>1?(this.$wrapLimit=M,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},R.prototype.$constrainWrapLimit=function(_,T,E){return T&&(_=Math.max(T,_)),E&&(_=Math.min(E,_)),_},R.prototype.getWrapLimit=function(){return this.$wrapLimit},R.prototype.setWrapLimit=function(_){this.setWrapLimitRange(_,_)},R.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},R.prototype.$updateInternalDataOnChange=function(_){var T=this.$useWrapMode,E=_.action,M=_.start,I=_.end,N=M.row,L=I.row,$=L-N,P=null;if(this.$updating=!0,$!=0)if(E==="remove"){this[T?"$wrapData":"$rowLengthCache"].splice(N,$);var F=this.$foldData;P=this.getFoldsInRange(_),this.removeFolds(P);var H=this.getFoldLine(I.row),W=0;if(H){H.addRemoveChars(I.row,I.column,M.column-I.column),H.shiftRow(-$);var B=this.getFoldLine(N);B&&B!==H&&(B.merge(H),H=B),W=F.indexOf(H)+1}for(W;W=I.row&&H.shiftRow(-$)}L=N}else{var U=Array($);U.unshift(N,0);var G=T?this.$wrapData:this.$rowLengthCache;G.splice.apply(G,U);var F=this.$foldData,H=this.getFoldLine(N),W=0;if(H){var Y=H.range.compareInside(M.row,M.column);Y==0?(H=H.split(M.row,M.column),H&&(H.shiftRow($),H.addRemoveChars(L,0,I.column-M.column))):Y==-1&&(H.addRemoveChars(N,0,I.column-M.column),H.shiftRow($)),W=F.indexOf(H)+1}for(W;W=N&&H.shiftRow($)}}else{$=Math.abs(_.start.column-_.end.column),E==="remove"&&(P=this.getFoldsInRange(_),this.removeFolds(P),$=-$);var H=this.getFoldLine(N);H&&H.addRemoveChars(N,M.column,$)}return T&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,T?this.$updateWrapData(N,L):this.$updateRowLengthCache(N,L),P},R.prototype.$updateRowLengthCache=function(_,T){this.$rowLengthCache[_]=null,this.$rowLengthCache[T]=null},R.prototype.$updateWrapData=function(_,T){var E=this.doc.getAllLines(),M=this.getTabSize(),I=this.$wrapData,N=this.$wrapLimit,L,$,P=_;for(T=Math.min(T,E.length-1);P<=T;)$=this.getFoldLine(P,$),$?(L=[],$.walk((function(F,H,W,B){var U;if(F!=null){U=this.$getDisplayTokens(F,L.length),U[0]=x;for(var G=1;GT-B;){var U=N+T-B;if(_[U-1]>=S&&_[U]>=S){W(U);continue}if(_[U]==x||_[U]==k){for(U;U!=N-1&&_[U]!=x;U--);if(U>N){W(U);continue}for(U=N+T,U;U<_.length&&_[U]==k;U++);if(U==_.length)break;W(U);continue}for(var G=Math.max(U-(T-(T>>2)),N-1);U>G&&_[U]G&&_[U]G&&_[U]==w;)U--}else for(;U>G&&_[U]G){W(++U);continue}U=N+T,_[U]==b&&U--,W(U-B)}return M},R.prototype.$getDisplayTokens=function(_,T){var E=[],M;T=T||0;for(var I=0;I<_.length;I++){var N=_.charCodeAt(I);if(N==9){M=this.getScreenTabSize(E.length+T),E.push(A);for(var L=1;L39&&N<48||N>57&&N<64?E.push(w):N>=4352&&O(N)?E.push(y,b):E.push(y)}return E},R.prototype.$getStringScreenWidth=function(_,T,E){if(T==0)return[0,0];T==null&&(T=1/0),E=E||0;var M,I;for(I=0;I<_.length&&(M=_.charCodeAt(I),M==9?E+=this.getScreenTabSize(E):M>=4352&&O(M)?E+=2:E+=1,!(E>T));I++);return[E,I]},R.prototype.getRowLength=function(_){var T=1;return this.lineWidgets&&(T+=this.lineWidgets[_]&&this.lineWidgets[_].rowCount||0),!this.$useWrapMode||!this.$wrapData[_]?T:this.$wrapData[_].length+T},R.prototype.getRowLineCount=function(_){return!this.$useWrapMode||!this.$wrapData[_]?1:this.$wrapData[_].length+1},R.prototype.getRowWrapIndent=function(_){if(this.$useWrapMode){var T=this.screenToDocumentPosition(_,Number.MAX_VALUE),E=this.$wrapData[T.row];return E.length&&E[0]=0)var $=F[H],I=this.$docRowCache[H],B=_>F[W-1];else var B=!W;for(var U=this.getLength()-1,G=this.getNextFoldLine(I),Y=G?G.start.row:1/0;$<=_&&(P=this.getRowLength(I),!($+P>_||I>=U));)$+=P,I++,I>Y&&(I=G.end.row+1,G=this.getNextFoldLine(I,G),Y=G?G.start.row:1/0),B&&(this.$docRowCache.push(I),this.$screenRowCache.push($));if(G&&G.start.row<=I)M=this.getFoldDisplayLine(G),I=G.start.row;else{if($+P<=_||I>U)return{row:U,column:this.getLine(U).length};M=this.getLine(I),G=null}var X=0,Z=Math.floor(_-$);if(this.$useWrapMode){var ne=this.$wrapData[I];ne&&(L=ne[Z],Z>0&&ne.length&&(X=ne.indent,N=ne[Z-1]||ne[ne.length-1],M=M.substring(N)))}return E!==void 0&&this.$bidiHandler.isBidiRow($+Z,I,Z)&&(T=this.$bidiHandler.offsetToCol(E)),N+=this.$getStringScreenWidth(M,T-X)[1],this.$useWrapMode&&N>=L&&(N=L-1),G?G.idxToPosition(N):{row:I,column:N}},R.prototype.documentToScreenPosition=function(_,T){if(typeof T>"u")var E=this.$clipPositionToDocument(_.row,_.column);else E=this.$clipPositionToDocument(_,T);_=E.row,T=E.column;var M=0,I=null,N=null;N=this.getFoldAt(_,T,1),N&&(_=N.start.row,T=N.start.column);var L,$=0,P=this.$docRowCache,F=this.$getRowCacheIndex(P,_),H=P.length;if(H&&F>=0)var $=P[F],M=this.$screenRowCache[F],W=_>P[H-1];else var W=!H;for(var B=this.getNextFoldLine($),U=B?B.start.row:1/0;$<_;){if($>=U){if(L=B.end.row+1,L>_)break;B=this.getNextFoldLine(L,B),U=B?B.start.row:1/0}else L=$+1;M+=this.getRowLength($),$=L,W&&(this.$docRowCache.push($),this.$screenRowCache.push(M))}var G="";B&&$>=U?(G=this.getFoldDisplayLine(B,_,T),I=B.start.row):(G=this.getLine(_).substring(0,T),I=_);var Y=0;if(this.$useWrapMode){var X=this.$wrapData[I];if(X){for(var Z=0;G.length>=X[Z];)M++,Z++;G=G.substring(X[Z-1]||0,G.length),Y=Z>0?X.indent:0}}return this.lineWidgets&&this.lineWidgets[$]&&this.lineWidgets[$].rowsAbove&&(M+=this.lineWidgets[$].rowsAbove),{row:M,column:Y+this.$getStringScreenWidth(G)[0]}},R.prototype.documentToScreenColumn=function(_,T){return this.documentToScreenPosition(_,T).column},R.prototype.documentToScreenRow=function(_,T){return this.documentToScreenPosition(_,T).row},R.prototype.getScreenLength=function(){var _=0,T=null;if(this.$useWrapMode)for(var I=this.$wrapData.length,N=0,M=0,T=this.$foldData[M++],L=T?T.start.row:1/0;NL&&(N=T.end.row+1,T=this.$foldData[M++],L=T?T.start.row:1/0)}else{_=this.getLength();for(var E=this.$foldData,M=0;ME));N++);return[M,N]})},R.prototype.getPrecedingCharacter=function(){var _=this.selection.getCursor();if(_.column===0)return _.row===0?"":this.doc.getNewLineCharacter();var T=this.getLine(_.row);return T[_.column-1]},R.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},R}();v.$uid=0,v.prototype.$modes=a.$modes,v.prototype.getValue=v.prototype.toString,v.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},v.prototype.$overwrite=!1,v.prototype.$mode=null,v.prototype.$modeId=null,v.prototype.$scrollTop=0,v.prototype.$scrollLeft=0,v.prototype.$wrapLimit=80,v.prototype.$useWrapMode=!1,v.prototype.$wrapLimitRange={min:null,max:null},v.prototype.lineWidgets=null,v.prototype.isFullWidth=O,i.implement(v.prototype,u);var y=1,b=2,x=3,k=4,w=9,S=10,A=11,C=12;function O(R){return R<4352?!1:R>=4352&&R<=4447||R>=4515&&R<=4519||R>=4602&&R<=4607||R>=9001&&R<=9002||R>=11904&&R<=11929||R>=11931&&R<=12019||R>=12032&&R<=12245||R>=12272&&R<=12283||R>=12288&&R<=12350||R>=12353&&R<=12438||R>=12441&&R<=12543||R>=12549&&R<=12589||R>=12593&&R<=12686||R>=12688&&R<=12730||R>=12736&&R<=12771||R>=12784&&R<=12830||R>=12832&&R<=12871||R>=12880&&R<=13054||R>=13056&&R<=19903||R>=19968&&R<=42124||R>=42128&&R<=42182||R>=43360&&R<=43388||R>=44032&&R<=55203||R>=55216&&R<=55238||R>=55243&&R<=55291||R>=63744&&R<=64255||R>=65040&&R<=65049||R>=65072&&R<=65106||R>=65108&&R<=65126||R>=65128&&R<=65131||R>=65281&&R<=65376||R>=65504&&R<=65510}n("./edit_session/folding").Folding.call(v.prototype),n("./edit_session/bracket_match").BracketMatch.call(v.prototype),a.defineOptions(v.prototype,"session",{wrap:{set:function(R){if(!R||R=="off"?R=!1:R=="free"?R=!0:R=="printMargin"?R=-1:typeof R=="string"&&(R=parseInt(R,10)||!1),this.$wrap!=R)if(this.$wrap=R,!R)this.setUseWrapMode(!1);else{var _=typeof R=="number"?R:null;this.setWrapLimitRange(_,_),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(R){R=R=="auto"?this.$mode.type!="text":R!="text",R!=this.$wrapAsCode&&(this.$wrapAsCode=R,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(R){this.$useWorker=R,this.$stopWorker(),R&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(R){R=parseInt(R),R>0&&this.$tabSize!==R&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=R,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(R){this.setFoldStyle(R)},handlesSet:!0},overwrite:{set:function(R){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(R){this.doc.setNewLineMode(R)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(R){this.setMode(R)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=v}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,r,o){var i=n("./lib/lang"),s=n("./lib/oop"),l=n("./range").Range,a=function(){function c(){this.$options={}}return c.prototype.set=function(d){return s.mixin(this.$options,d),this},c.prototype.getOptions=function(){return i.copyObject(this.$options)},c.prototype.setOptions=function(d){this.$options=d},c.prototype.find=function(d){var h=this.$options,p=this.$matchIterator(d,h);if(!p)return!1;var f=null;return p.forEach(function(g,m,v,y){return f=new l(g,m,v,y),m==y&&h.start&&h.start.start&&h.skipCurrent!=!1&&f.isEqual(h.start)?(f=null,!1):!0}),f},c.prototype.findAll=function(d){var h=this.$options;if(!h.needle)return[];this.$assembleRegExp(h);var p=h.range,f=p?d.getLines(p.start.row,p.end.row):d.doc.getAllLines(),g=[],m=h.re;if(h.$isMultiLine){var v=m.length,y=f.length-v,b;e:for(var x=m.offset||0;x<=y;x++){for(var k=0;kA||(g.push(b=new l(x,A,x+v-1,C)),v>2&&(x=x+v-2))}}else for(var O=0;OE&&g[k].end.row==M;)k--;for(g=g.slice(O,k+1),O=0,k=g.length;O"+k.end.row+":"+k.end.column}function p(k,w){var S=k.action=="insert",T=w.action=="insert";if(S&&T)if(a(w.start,k.end)>=0)m(w,k,-1);else if(a(w.start,k.start)<=0)m(k,w,1);else return null;else if(S&&!T)if(a(w.start,k.end)>=0)m(w,k,-1);else if(a(w.end,k.start)<=0)m(k,w,-1);else return null;else if(!S&&T)if(a(w.start,k.start)>=0)m(w,k,1);else if(a(w.start,k.start)<=0)m(k,w,1);else return null;else if(!S&&!T)if(a(w.start,k.start)>=0)m(w,k,1);else if(a(w.end,k.start)<=0)m(k,w,-1);else return null;return[w,k]}function f(k,w){for(var S=k.length;S--;)for(var T=0;T=0?m(k,w,-1):(a(k.start,w.start)<=0||m(k,l.fromPoints(w.start,k.start),-1),m(w,k,1));else if(!S&&T)a(w.start,k.end)>=0?m(w,k,-1):(a(w.start,k.start)<=0||m(w,l.fromPoints(k.start,w.start),-1),m(k,w,1));else if(!S&&!T)if(a(w.start,k.end)>=0)m(w,k,-1);else if(a(w.end,k.start)<=0)m(k,w,-1);else{var C,O;return a(k.start,w.start)<0&&(C=k,k=y(k,w.start)),a(k.end,w.end)>0&&(O=y(k,w.end)),v(w.end,k.start,k.end,-1),O&&!C&&(k.lines=O.lines,k.start=O.start,k.end=O.end,O=k),[w,C,O].filter(Boolean)}return[w,k]}function m(k,w,S){v(k.start,w.start,w.end,S),v(k.end,w.start,w.end,S)}function v(k,w,S,T){k.row==(T==1?w:S).row&&(k.column+=T*(S.column-w.column)),k.row+=T*(S.row-w.row)}function y(k,w){var S=k.lines,T=k.end;k.end=u(w);var C=k.end.row-k.start.row,O=S.splice(C,S.length),R=C?w.column:w.column-k.start.column;S.push(O[0].substring(0,R)),O[0]=O[0].substr(R);var _={start:u(w),end:T,lines:O,action:k.action};return _}function b(k,w){w=c(w);for(var S=k.length;S--;){for(var T=k[S],C=0;Cthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(a),this.folds.sort(function(u,c){return-u.range.compareEnd(c.start.row,c.start.column)}),this.range.compareEnd(a.start.row,a.start.column)>0?(this.end.row=a.end.row,this.end.column=a.end.column):this.range.compareStart(a.end.row,a.end.column)<0&&(this.start.row=a.start.row,this.start.column=a.start.column)}else if(a.start.row==this.end.row)this.folds.push(a),this.end.row=a.end.row,this.end.column=a.end.column;else if(a.end.row==this.start.row)this.folds.unshift(a),this.start.row=a.start.row,this.start.column=a.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");a.foldLine=this},l.prototype.containsRow=function(a){return a>=this.start.row&&a<=this.end.row},l.prototype.walk=function(a,u,c){var d=0,h=this.folds,p,f,g,m=!0;u==null&&(u=this.end.row,c=this.end.column);for(var v=0;v0)){var m=s(u,f.start);return g===0?c&&m!==0?-p-2:p:m>0||m===0&&!c?p:-p-1}}return-p-1},a.prototype.add=function(u){var c=!u.isEmpty(),d=this.pointIndex(u.start,c);d<0&&(d=-d-1);var h=this.pointIndex(u.end,c,d);return h<0?h=-h-1:h++,this.ranges.splice(d,h-d,u)},a.prototype.addList=function(u){for(var c=[],d=u.length;d--;)c.push.apply(c,this.add(u[d]));return c},a.prototype.substractPoint=function(u){var c=this.pointIndex(u);if(c>=0)return this.ranges.splice(c,1)},a.prototype.merge=function(){var u=[],c=this.ranges;c=c.sort(function(g,m){return s(g.start,m.start)});for(var d=c[0],h,p=1;p=0},a.prototype.containsPoint=function(u){return this.pointIndex(u)>=0},a.prototype.rangeAtPoint=function(u){var c=this.pointIndex(u);if(c>=0)return this.ranges[c]},a.prototype.clipRows=function(u,c){var d=this.ranges;if(d[0].start.row>c||d[d.length-1].start.row=h)break}if(u.action=="insert")for(var y=p-h,b=-c.column+d.column;gh)break;if(v.start.row==h&&v.start.column>=c.column&&(v.start.column==c.column&&this.$bias<=0||(v.start.column+=b,v.start.row+=y)),v.end.row==h&&v.end.column>=c.column){if(v.end.column==c.column&&this.$bias<0)continue;v.end.column==c.column&&b>0&&gv.start.column&&v.end.column==f[g+1].start.column&&(v.end.column-=b),v.end.column+=b,v.end.row+=y}}else for(var y=h-p,b=c.column-d.column;gp)break;v.end.rowc.column)&&(v.end.column=c.column,v.end.row=c.row):(v.end.column+=b,v.end.row+=y):v.end.row>p&&(v.end.row+=y),v.start.rowc.column)&&(v.start.column=c.column,v.start.row=c.row):(v.start.column+=b,v.start.row+=y):v.start.row>p&&(v.start.row+=y)}if(y!=0&&g=d)return g;if(g.end.row>d)return null}return null},this.getNextFoldLine=function(d,h){var p=this.$foldData,f=0;for(h&&(f=p.indexOf(h)),f==-1&&(f=0),f;f=d)return g}return null},this.getFoldedRowCount=function(d,h){for(var p=this.$foldData,f=h-d+1,g=0;g=h){y=d?f-=h-y:f=0);break}else v>=d&&(y>=d?f-=v-y:f-=v-d+1)}return f},this.$addFoldLine=function(d){return this.$foldData.push(d),this.$foldData.sort(function(h,p){return h.start.row-p.start.row}),d},this.addFold=function(d,h){var p=this.$foldData,f=!1,g;d instanceof l?g=d:(g=new l(h,d),g.collapseChildren=h.collapseChildren),this.$clipRangeToDocument(g.range);var m=g.start.row,v=g.start.column,y=g.end.row,b=g.end.column,x=this.getFoldAt(m,v,1),k=this.getFoldAt(y,b,-1);if(x&&k==x)return x.addSubFold(g);x&&!x.range.isStart(m,v)&&this.removeFold(x),k&&!k.range.isEnd(y,b)&&this.removeFold(k);var w=this.getFoldsInRange(g.range);w.length>0&&(this.removeFolds(w),g.collapseChildren||w.forEach(function(O){g.addSubFold(O)}));for(var S=0;S0&&this.foldAll(d.start.row+1,d.end.row,d.collapseChildren-1),d.subFolds=[]},this.expandFolds=function(d){d.forEach(function(h){this.expandFold(h)},this)},this.unfold=function(d,h){var p,f;if(d==null)p=new i(0,0,this.getLength(),0),h==null&&(h=!0);else if(typeof d=="number")p=new i(d,0,d,this.getLine(d).length);else if("row"in d)p=i.fromPoints(d,d);else{if(Array.isArray(d))return f=[],d.forEach(function(m){f=f.concat(this.unfold(m))},this),f;p=d}f=this.getFoldsInRangeList(p);for(var g=f;f.length==1&&i.comparePoints(f[0].start,p.start)<0&&i.comparePoints(f[0].end,p.end)>0;)this.expandFolds(f),f=this.getFoldsInRangeList(p);if(h!=!1?this.removeFolds(f):this.expandFolds(f),g.length)return g},this.isRowFolded=function(d,h){return!!this.getFoldLine(d,h)},this.getRowFoldEnd=function(d,h){var p=this.getFoldLine(d,h);return p?p.end.row:d},this.getRowFoldStart=function(d,h){var p=this.getFoldLine(d,h);return p?p.start.row:d},this.getFoldDisplayLine=function(d,h,p,f,g){f==null&&(f=d.start.row),g==null&&(g=0),h==null&&(h=d.end.row),p==null&&(p=this.getLine(h).length);var m=this.doc,v="";return d.walk(function(y,b,x,k){if(!(bb)break;while(g&&v.test(g.type)&&!/^comment.start/.test(g.type));g=f.stepBackward()}else g=f.getCurrentToken();return y.end.row=f.getCurrentTokenRow(),y.end.column=f.getCurrentTokenColumn(),/^comment.end/.test(g.type)||(y.end.column+=g.value.length-2),y}},this.foldAll=function(d,h,p,f){p==null&&(p=1e5);var g=this.foldWidgets;if(g){h=h||this.getLength(),d=d||0;for(var m=d;m=d&&(m=v.end.row,v.collapseChildren=p,this.addFold("...",v))}}},this.foldToLevel=function(d){for(this.foldAll();d-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var d=this;this.foldAll(null,null,null,function(h){for(var p=d.getTokens(h),f=0;f=0;){var m=p[f];if(m==null&&(m=p[f]=this.getFoldWidget(f)),m=="start"){var v=this.getFoldWidgetRange(f);if(g||(g=v),v&&v.end.row>=d)break}f--}return{range:f!==-1&&v,firstRange:g}},this.onFoldWidgetClick=function(d,h){h instanceof u&&(h=h.domEvent);var p={children:h.shiftKey,all:h.ctrlKey||h.metaKey,siblings:h.altKey},f=this.$toggleFoldWidget(d,p);if(!f){var g=h.target||h.srcElement;g&&/ace_fold-widget/.test(g.className)&&(g.className+=" ace_invalid")}},this.$toggleFoldWidget=function(d,h){if(this.getFoldWidget){var p=this.getFoldWidget(d),f=this.getLine(d),g=p==="end"?-1:1,m=this.getFoldAt(d,g===-1?0:f.length,g);if(m)return h.children||h.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(d,!0);if(v&&!v.isMultiLine()&&(m=this.getFoldAt(v.start.row,v.start.column,1),m&&v.isEqual(m.range)))return this.removeFold(m),m;if(h.siblings){var y=this.getParentFoldRangeData(d);if(y.range)var b=y.range.start.row+1,x=y.range.end.row;this.foldAll(b,x,h.all?1e4:0)}else h.children?(x=v?v.end.row:this.getLength(),this.foldAll(d+1,x,h.all?1e4:0)):v&&(h.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(d){var h=this.selection.getCursor().row;h=this.getRowFoldStart(h);var p=this.$toggleFoldWidget(h,{});if(!p){var f=this.getParentFoldRangeData(h,!0);if(p=f.range||f.firstRange,p){h=p.start.row;var g=this.getFoldAt(h,this.getLine(h).length,1);g?this.removeFold(g):this.addFold("...",p)}}},this.updateFoldWidgets=function(d){var h=d.start.row,p=d.end.row-h;if(p===0)this.foldWidgets[h]=null;else if(d.action=="remove")this.foldWidgets.splice(h,p+1,null);else{var f=Array(p+1);f.unshift(h,1),this.foldWidgets.splice.apply(this.foldWidgets,f)}},this.tokenizerUpdateFoldWidgets=function(d){var h=d.data;h.first!=h.last&&this.foldWidgets.length>h.first&&this.foldWidgets.splice(h.first,this.foldWidgets.length)}}r.Folding=c}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,r,o){var i=n("../token_iterator").TokenIterator,s=n("../range").Range;function l(){this.findMatchingBracket=function(a,u){if(a.column==0)return null;var c=u||this.getLine(a.row).charAt(a.column-1);if(c=="")return null;var d=c.match(/([\(\[\{])|([\)\]\}])/);return d?d[1]?this.$findClosingBracket(d[1],a):this.$findOpeningBracket(d[2],a):null},this.getBracketRange=function(a){var u=this.getLine(a.row),c=!0,d,h=u.charAt(a.column-1),p=h&&h.match(/([\(\[\{])|([\)\]\}])/);if(p||(h=u.charAt(a.column),a={row:a.row,column:a.column+1},p=h&&h.match(/([\(\[\{])|([\)\]\}])/),c=!1),!p)return null;if(p[1]){var f=this.$findClosingBracket(p[1],a);if(!f)return null;d=s.fromPoints(a,f),c||(d.end.column++,d.start.column--),d.cursor=d.end}else{var f=this.$findOpeningBracket(p[2],a);if(!f)return null;d=s.fromPoints(f,a),c||(d.start.column++,d.end.column--),d.cursor=d.start}return d},this.getMatchingBracketRanges=function(a,u){var c=this.getLine(a.row),d=/([\(\[\{])|([\)\]\}])/,h=!u&&c.charAt(a.column-1),p=h&&h.match(d);if(p||(h=(u===void 0||u)&&c.charAt(a.column),a={row:a.row,column:a.column+1},p=h&&h.match(d)),!p)return null;var f=new s(a.row,a.column-1,a.row,a.column),g=p[1]?this.$findClosingBracket(p[1],a):this.$findOpeningBracket(p[2],a);if(!g)return[f];var m=new s(g.row,g.column,g.row,g.column+1);return[f,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(a,u,c){var d=this.$brackets[a],h=1,p=new i(this,u.row,u.column),f=p.getCurrentToken();if(f||(f=p.stepForward()),!!f){c||(c=new RegExp("(\\.?"+f.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var g=u.column-p.getCurrentTokenColumn()-2,m=f.value;;){for(;g>=0;){var v=m.charAt(g);if(v==d){if(h-=1,h==0)return{row:p.getCurrentTokenRow(),column:g+p.getCurrentTokenColumn()}}else v==a&&(h+=1);g-=1}do f=p.stepBackward();while(f&&!c.test(f.type));if(f==null)break;m=f.value,g=m.length-1}return null}},this.$findClosingBracket=function(a,u,c){var d=this.$brackets[a],h=1,p=new i(this,u.row,u.column),f=p.getCurrentToken();if(f||(f=p.stepForward()),!!f){c||(c=new RegExp("(\\.?"+f.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var g=u.column-p.getCurrentTokenColumn();;){for(var m=f.value,v=m.length;g"?d=!0:u.type.indexOf("tag-name")!==-1&&(c=!0));while(u&&!c);return u},this.$findClosingTag=function(a,u){var c,d=u.value,h=u.value,p=0,f=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);u=a.stepForward();var g=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+u.value.length),m=!1;do if(c=u,u=a.stepForward(),u){if(u.value===">"&&!m){var v=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);m=!0}if(u.type.indexOf("tag-name")!==-1){if(d=u.value,h===d){if(c.value==="<")p++;else if(c.value==="")var x=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);else return}}}else if(h===d&&u.value==="/>"&&(p--,p<0))var y=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+2),b=y,x=b,v=new s(g.end.row,g.end.column,g.end.row,g.end.column+1)}while(u&&p>=0);if(f&&v&&y&&x&&g&&b)return{openTag:new s(f.start.row,f.start.column,v.end.row,v.end.column),closeTag:new s(y.start.row,y.start.column,x.end.row,x.end.column),openTagName:g,closeTagName:b}},this.$findOpeningTag=function(a,u){var c=a.getCurrentToken(),d=u.value,h=0,p=a.getCurrentTokenRow(),f=a.getCurrentTokenColumn(),g=f+2,m=new s(p,f,p,g);a.stepForward();var v=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+u.value.length);if(u=a.stepForward(),!(!u||u.value!==">")){var y=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);a.stepBackward(),a.stepBackward();do if(u=c,p=a.getCurrentTokenRow(),f=a.getCurrentTokenColumn(),g=f+u.value.length,c=a.stepBackward(),u){if(u.type.indexOf("tag-name")!==-1){if(d===u.value)if(c.value==="<"){if(h++,h>0){var b=new s(p,f,p,g),x=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1);do u=a.stepForward();while(u&&u.value!==">");var k=new s(a.getCurrentTokenRow(),a.getCurrentTokenColumn(),a.getCurrentTokenRow(),a.getCurrentTokenColumn()+1)}}else c.value===""){for(var w=0,S=c;S;){if(S.type.indexOf("tag-name")!==-1&&S.value===d){h--;break}else if(S.value==="<")break;S=a.stepBackward(),w++}for(var T=0;TE&&(this.$docRowCache.splice(E,A),this.$screenRowCache.splice(E,A))},R.prototype.$getRowCacheIndex=function(_,A){for(var E=0,M=_.length-1;E<=M;){var I=E+M>>1,N=_[I];if(A>N)E=I+1;else if(A=A));N++);return M=E[N],M?(M.index=N,M.start=I-M.value.length,M):null},R.prototype.setUndoManager=function(_){if(this.$undoManager=_,this.$informUndoManager&&this.$informUndoManager.cancel(),_){var A=this;_.addSession(this),this.$syncInformUndoManager=function(){A.$informUndoManager.cancel(),A.mergeUndoDeltas=!1},this.$informUndoManager=s.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},R.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},R.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},R.prototype.getTabString=function(){return this.getUseSoftTabs()?s.stringRepeat(" ",this.getTabSize()):" "},R.prototype.setUseSoftTabs=function(_){this.setOption("useSoftTabs",_)},R.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},R.prototype.setTabSize=function(_){this.setOption("tabSize",_)},R.prototype.getTabSize=function(){return this.$tabSize},R.prototype.isTabStop=function(_){return this.$useSoftTabs&&_.column%this.$tabSize===0},R.prototype.setNavigateWithinSoftTabs=function(_){this.setOption("navigateWithinSoftTabs",_)},R.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},R.prototype.setOverwrite=function(_){this.setOption("overwrite",_)},R.prototype.getOverwrite=function(){return this.$overwrite},R.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},R.prototype.addGutterDecoration=function(_,A){this.$decorations[_]||(this.$decorations[_]=""),this.$decorations[_]+=" "+A,this._signal("changeBreakpoint",{})},R.prototype.removeGutterDecoration=function(_,A){this.$decorations[_]=(this.$decorations[_]||"").replace(" "+A,""),this._signal("changeBreakpoint",{})},R.prototype.getBreakpoints=function(){return this.$breakpoints},R.prototype.setBreakpoints=function(_){this.$breakpoints=[];for(var A=0;A<_.length;A++)this.$breakpoints[_[A]]="ace_breakpoint";this._signal("changeBreakpoint",{})},R.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},R.prototype.setBreakpoint=function(_,A){A===void 0&&(A="ace_breakpoint"),A?this.$breakpoints[_]=A:delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},R.prototype.clearBreakpoint=function(_){delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},R.prototype.addMarker=function(_,A,E,M){var I=this.$markerId++,N={range:_,type:E||"line",renderer:typeof E=="function"?E:null,clazz:A,inFront:!!M,id:I};return M?(this.$frontMarkers[I]=N,this._signal("changeFrontMarker")):(this.$backMarkers[I]=N,this._signal("changeBackMarker")),I},R.prototype.addDynamicMarker=function(_,A){if(_.update){var E=this.$markerId++;return _.id=E,_.inFront=!!A,A?(this.$frontMarkers[E]=_,this._signal("changeFrontMarker")):(this.$backMarkers[E]=_,this._signal("changeBackMarker")),_}},R.prototype.removeMarker=function(_){var A=this.$frontMarkers[_]||this.$backMarkers[_];if(A){var E=A.inFront?this.$frontMarkers:this.$backMarkers;delete E[_],this._signal(A.inFront?"changeFrontMarker":"changeBackMarker")}},R.prototype.getMarkers=function(_){return _?this.$frontMarkers:this.$backMarkers},R.prototype.highlight=function(_){if(!this.$searchHighlight){var A=new g(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(A)}this.$searchHighlight.setRegexp(_)},R.prototype.highlightLines=function(_,A,E,M){typeof A!="number"&&(E=A,A=_),E||(E="ace_step");var I=new h(_,0,A,1/0);return I.id=this.addMarker(I,E,"fullLine",M),I},R.prototype.setAnnotations=function(_){this.$annotations=_,this._signal("changeAnnotation",{})},R.prototype.getAnnotations=function(){return this.$annotations||[]},R.prototype.clearAnnotations=function(){this.setAnnotations([])},R.prototype.$detectNewLine=function(_){var A=_.match(/^.*?(\r?\n)/m);A?this.$autoNewLine=A[1]:this.$autoNewLine=` +`},R.prototype.getWordRange=function(_,A){var E=this.getLine(_),M=!1;if(A>0&&(M=!!E.charAt(A-1).match(this.tokenRe)),M||(M=!!E.charAt(A).match(this.tokenRe)),M)var I=this.tokenRe;else if(/^\s+$/.test(E.slice(A-1,A+1)))var I=/\s/;else var I=this.nonTokenRe;var N=A;if(N>0){do N--;while(N>=0&&E.charAt(N).match(I));N++}for(var L=A;L_&&(_=A.screenWidth)}),this.lineWidgetWidth=_},R.prototype.$computeWidth=function(_){if(this.$modified||_){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var A=this.doc.getAllLines(),E=this.$rowLengthCache,M=0,I=0,N=this.$foldData[I],L=N?N.start.row:1/0,$=A.length,P=0;P<$;P++){if(P>L){if(P=N.end.row+1,P>=$)break;N=this.$foldData[I++],L=N?N.start.row:1/0}E[P]==null&&(E[P]=this.$getStringScreenWidth(A[P])[0]),E[P]>M&&(M=E[P])}this.screenWidth=M}},R.prototype.getLine=function(_){return this.doc.getLine(_)},R.prototype.getLines=function(_,A){return this.doc.getLines(_,A)},R.prototype.getLength=function(){return this.doc.getLength()},R.prototype.getTextRange=function(_){return this.doc.getTextRange(_||this.selection.getRange())},R.prototype.insert=function(_,A){return this.doc.insert(_,A)},R.prototype.remove=function(_){return this.doc.remove(_)},R.prototype.removeFullLines=function(_,A){return this.doc.removeFullLines(_,A)},R.prototype.undoChanges=function(_,A){if(_.length){this.$fromUndo=!0;for(var E=_.length-1;E!=-1;E--){var M=_[E];M.action=="insert"||M.action=="remove"?this.doc.revertDelta(M):M.folds&&this.addFolds(M.folds)}!A&&this.$undoSelect&&(_.selectionBefore?this.selection.fromJSON(_.selectionBefore):this.selection.setRange(this.$getUndoSelection(_,!0))),this.$fromUndo=!1}},R.prototype.redoChanges=function(_,A){if(_.length){this.$fromUndo=!0;for(var E=0;E<_.length;E++){var M=_[E];(M.action=="insert"||M.action=="remove")&&this.doc.$safeApplyDelta(M)}!A&&this.$undoSelect&&(_.selectionAfter?this.selection.fromJSON(_.selectionAfter):this.selection.setRange(this.$getUndoSelection(_,!1))),this.$fromUndo=!1}},R.prototype.setUndoSelect=function(_){this.$undoSelect=_},R.prototype.$getUndoSelection=function(_,A){function E($){return A?$.action!=="insert":$.action==="insert"}for(var M,I,N=0;N<_.length;N++){var L=_[N];if(L.start){if(!M){E(L)?M=h.fromPoints(L.start,L.end):M=h.fromPoints(L.start,L.start);continue}E(L)?(I=L.start,M.compare(I.row,I.column)==-1&&M.setStart(I),I=L.end,M.compare(I.row,I.column)==1&&M.setEnd(I)):(I=L.start,M.compare(I.row,I.column)==-1&&(M=h.fromPoints(L.start,L.start)))}}return M},R.prototype.replace=function(_,A){return this.doc.replace(_,A)},R.prototype.moveText=function(_,A,E){var M=this.getTextRange(_),I=this.getFoldsInRange(_),N=h.fromPoints(A,A);if(!E){this.remove(_);var L=_.start.row-_.end.row,$=L?-_.end.column:_.start.column-_.end.column;$&&(N.start.row==_.end.row&&N.start.column>_.end.column&&(N.start.column+=$),N.end.row==_.end.row&&N.end.column>_.end.column&&(N.end.column+=$)),L&&N.start.row>=_.end.row&&(N.start.row+=L,N.end.row+=L)}if(N.end=this.insert(N.start,M),I.length){var P=_.start,F=N.start,L=F.row-P.row,$=F.column-P.column;this.addFolds(I.map(function(B){return B=B.clone(),B.start.row==P.row&&(B.start.column+=$),B.end.row==P.row&&(B.end.column+=$),B.start.row+=L,B.end.row+=L,B}))}return N},R.prototype.indentRows=function(_,A,E){E=E.replace(/\t/g,this.getTabString());for(var M=_;M<=A;M++)this.doc.insertInLine({row:M,column:0},E)},R.prototype.outdentRows=function(_){for(var A=_.collapseRows(),E=new h(0,0,0,0),M=this.getTabSize(),I=A.start.row;I<=A.end.row;++I){var N=this.getLine(I);E.start.row=I,E.end.row=I;for(var L=0;L0){var M=this.getRowFoldEnd(A+E);if(M>this.doc.getLength()-1)return 0;var I=M-A}else{_=this.$clipRowToDocument(_),A=this.$clipRowToDocument(A);var I=A-_+1}var N=new h(_,0,A,Number.MAX_VALUE),L=this.getFoldsInRange(N).map(function(P){return P=P.clone(),P.start.row+=I,P.end.row+=I,P}),$=E==0?this.doc.getLines(_,A):this.doc.removeFullLines(_,A);return this.doc.insertFullLines(_+I,$),L.length&&this.addFolds(L),I},R.prototype.moveLinesUp=function(_,A){return this.$moveLines(_,A,-1)},R.prototype.moveLinesDown=function(_,A){return this.$moveLines(_,A,1)},R.prototype.duplicateLines=function(_,A){return this.$moveLines(_,A,0)},R.prototype.$clipRowToDocument=function(_){return Math.max(0,Math.min(_,this.doc.getLength()-1))},R.prototype.$clipColumnToRow=function(_,A){return A<0?0:Math.min(this.doc.getLine(_).length,A)},R.prototype.$clipPositionToDocument=function(_,A){if(A=Math.max(0,A),_<0)_=0,A=0;else{var E=this.doc.getLength();_>=E?(_=E-1,A=this.doc.getLine(E-1).length):A=Math.min(this.doc.getLine(_).length,A)}return{row:_,column:A}},R.prototype.$clipRangeToDocument=function(_){_.start.row<0?(_.start.row=0,_.start.column=0):_.start.column=this.$clipColumnToRow(_.start.row,_.start.column);var A=this.doc.getLength()-1;return _.end.row>A?(_.end.row=A,_.end.column=this.doc.getLine(A).length):_.end.column=this.$clipColumnToRow(_.end.row,_.end.column),_},R.prototype.setUseWrapMode=function(_){if(_!=this.$useWrapMode){if(this.$useWrapMode=_,this.$modified=!0,this.$resetRowCache(0),_){var A=this.getLength();this.$wrapData=Array(A),this.$updateWrapData(0,A-1)}this._signal("changeWrapMode")}},R.prototype.getUseWrapMode=function(){return this.$useWrapMode},R.prototype.setWrapLimitRange=function(_,A){(this.$wrapLimitRange.min!==_||this.$wrapLimitRange.max!==A)&&(this.$wrapLimitRange={min:_,max:A},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},R.prototype.adjustWrapLimit=function(_,A){var E=this.$wrapLimitRange;E.max<0&&(E={min:A,max:A});var M=this.$constrainWrapLimit(_,E.min,E.max);return M!=this.$wrapLimit&&M>1?(this.$wrapLimit=M,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},R.prototype.$constrainWrapLimit=function(_,A,E){return A&&(_=Math.max(A,_)),E&&(_=Math.min(E,_)),_},R.prototype.getWrapLimit=function(){return this.$wrapLimit},R.prototype.setWrapLimit=function(_){this.setWrapLimitRange(_,_)},R.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},R.prototype.$updateInternalDataOnChange=function(_){var A=this.$useWrapMode,E=_.action,M=_.start,I=_.end,N=M.row,L=I.row,$=L-N,P=null;if(this.$updating=!0,$!=0)if(E==="remove"){this[A?"$wrapData":"$rowLengthCache"].splice(N,$);var F=this.$foldData;P=this.getFoldsInRange(_),this.removeFolds(P);var H=this.getFoldLine(I.row),W=0;if(H){H.addRemoveChars(I.row,I.column,M.column-I.column),H.shiftRow(-$);var B=this.getFoldLine(N);B&&B!==H&&(B.merge(H),H=B),W=F.indexOf(H)+1}for(W;W=I.row&&H.shiftRow(-$)}L=N}else{var U=Array($);U.unshift(N,0);var G=A?this.$wrapData:this.$rowLengthCache;G.splice.apply(G,U);var F=this.$foldData,H=this.getFoldLine(N),W=0;if(H){var Y=H.range.compareInside(M.row,M.column);Y==0?(H=H.split(M.row,M.column),H&&(H.shiftRow($),H.addRemoveChars(L,0,I.column-M.column))):Y==-1&&(H.addRemoveChars(N,0,I.column-M.column),H.shiftRow($)),W=F.indexOf(H)+1}for(W;W=N&&H.shiftRow($)}}else{$=Math.abs(_.start.column-_.end.column),E==="remove"&&(P=this.getFoldsInRange(_),this.removeFolds(P),$=-$);var H=this.getFoldLine(N);H&&H.addRemoveChars(N,M.column,$)}return A&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,A?this.$updateWrapData(N,L):this.$updateRowLengthCache(N,L),P},R.prototype.$updateRowLengthCache=function(_,A){this.$rowLengthCache[_]=null,this.$rowLengthCache[A]=null},R.prototype.$updateWrapData=function(_,A){var E=this.doc.getAllLines(),M=this.getTabSize(),I=this.$wrapData,N=this.$wrapLimit,L,$,P=_;for(A=Math.min(A,E.length-1);P<=A;)$=this.getFoldLine(P,$),$?(L=[],$.walk((function(F,H,W,B){var U;if(F!=null){U=this.$getDisplayTokens(F,L.length),U[0]=x;for(var G=1;GA-B;){var U=N+A-B;if(_[U-1]>=S&&_[U]>=S){W(U);continue}if(_[U]==x||_[U]==k){for(U;U!=N-1&&_[U]!=x;U--);if(U>N){W(U);continue}for(U=N+A,U;U<_.length&&_[U]==k;U++);if(U==_.length)break;W(U);continue}for(var G=Math.max(U-(A-(A>>2)),N-1);U>G&&_[U]G&&_[U]G&&_[U]==w;)U--}else for(;U>G&&_[U]G){W(++U);continue}U=N+A,_[U]==b&&U--,W(U-B)}return M},R.prototype.$getDisplayTokens=function(_,A){var E=[],M;A=A||0;for(var I=0;I<_.length;I++){var N=_.charCodeAt(I);if(N==9){M=this.getScreenTabSize(E.length+A),E.push(T);for(var L=1;L39&&N<48||N>57&&N<64?E.push(w):N>=4352&&O(N)?E.push(y,b):E.push(y)}return E},R.prototype.$getStringScreenWidth=function(_,A,E){if(A==0)return[0,0];A==null&&(A=1/0),E=E||0;var M,I;for(I=0;I<_.length&&(M=_.charCodeAt(I),M==9?E+=this.getScreenTabSize(E):M>=4352&&O(M)?E+=2:E+=1,!(E>A));I++);return[E,I]},R.prototype.getRowLength=function(_){var A=1;return this.lineWidgets&&(A+=this.lineWidgets[_]&&this.lineWidgets[_].rowCount||0),!this.$useWrapMode||!this.$wrapData[_]?A:this.$wrapData[_].length+A},R.prototype.getRowLineCount=function(_){return!this.$useWrapMode||!this.$wrapData[_]?1:this.$wrapData[_].length+1},R.prototype.getRowWrapIndent=function(_){if(this.$useWrapMode){var A=this.screenToDocumentPosition(_,Number.MAX_VALUE),E=this.$wrapData[A.row];return E.length&&E[0]=0)var $=F[H],I=this.$docRowCache[H],B=_>F[W-1];else var B=!W;for(var U=this.getLength()-1,G=this.getNextFoldLine(I),Y=G?G.start.row:1/0;$<=_&&(P=this.getRowLength(I),!($+P>_||I>=U));)$+=P,I++,I>Y&&(I=G.end.row+1,G=this.getNextFoldLine(I,G),Y=G?G.start.row:1/0),B&&(this.$docRowCache.push(I),this.$screenRowCache.push($));if(G&&G.start.row<=I)M=this.getFoldDisplayLine(G),I=G.start.row;else{if($+P<=_||I>U)return{row:U,column:this.getLine(U).length};M=this.getLine(I),G=null}var X=0,Z=Math.floor(_-$);if(this.$useWrapMode){var ne=this.$wrapData[I];ne&&(L=ne[Z],Z>0&&ne.length&&(X=ne.indent,N=ne[Z-1]||ne[ne.length-1],M=M.substring(N)))}return E!==void 0&&this.$bidiHandler.isBidiRow($+Z,I,Z)&&(A=this.$bidiHandler.offsetToCol(E)),N+=this.$getStringScreenWidth(M,A-X)[1],this.$useWrapMode&&N>=L&&(N=L-1),G?G.idxToPosition(N):{row:I,column:N}},R.prototype.documentToScreenPosition=function(_,A){if(typeof A>"u")var E=this.$clipPositionToDocument(_.row,_.column);else E=this.$clipPositionToDocument(_,A);_=E.row,A=E.column;var M=0,I=null,N=null;N=this.getFoldAt(_,A,1),N&&(_=N.start.row,A=N.start.column);var L,$=0,P=this.$docRowCache,F=this.$getRowCacheIndex(P,_),H=P.length;if(H&&F>=0)var $=P[F],M=this.$screenRowCache[F],W=_>P[H-1];else var W=!H;for(var B=this.getNextFoldLine($),U=B?B.start.row:1/0;$<_;){if($>=U){if(L=B.end.row+1,L>_)break;B=this.getNextFoldLine(L,B),U=B?B.start.row:1/0}else L=$+1;M+=this.getRowLength($),$=L,W&&(this.$docRowCache.push($),this.$screenRowCache.push(M))}var G="";B&&$>=U?(G=this.getFoldDisplayLine(B,_,A),I=B.start.row):(G=this.getLine(_).substring(0,A),I=_);var Y=0;if(this.$useWrapMode){var X=this.$wrapData[I];if(X){for(var Z=0;G.length>=X[Z];)M++,Z++;G=G.substring(X[Z-1]||0,G.length),Y=Z>0?X.indent:0}}return this.lineWidgets&&this.lineWidgets[$]&&this.lineWidgets[$].rowsAbove&&(M+=this.lineWidgets[$].rowsAbove),{row:M,column:Y+this.$getStringScreenWidth(G)[0]}},R.prototype.documentToScreenColumn=function(_,A){return this.documentToScreenPosition(_,A).column},R.prototype.documentToScreenRow=function(_,A){return this.documentToScreenPosition(_,A).row},R.prototype.getScreenLength=function(){var _=0,A=null;if(this.$useWrapMode)for(var I=this.$wrapData.length,N=0,M=0,A=this.$foldData[M++],L=A?A.start.row:1/0;NL&&(N=A.end.row+1,A=this.$foldData[M++],L=A?A.start.row:1/0)}else{_=this.getLength();for(var E=this.$foldData,M=0;ME));N++);return[M,N]})},R.prototype.getPrecedingCharacter=function(){var _=this.selection.getCursor();if(_.column===0)return _.row===0?"":this.doc.getNewLineCharacter();var A=this.getLine(_.row);return A[_.column-1]},R.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},R}();v.$uid=0,v.prototype.$modes=a.$modes,v.prototype.getValue=v.prototype.toString,v.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},v.prototype.$overwrite=!1,v.prototype.$mode=null,v.prototype.$modeId=null,v.prototype.$scrollTop=0,v.prototype.$scrollLeft=0,v.prototype.$wrapLimit=80,v.prototype.$useWrapMode=!1,v.prototype.$wrapLimitRange={min:null,max:null},v.prototype.lineWidgets=null,v.prototype.isFullWidth=O,i.implement(v.prototype,u);var y=1,b=2,x=3,k=4,w=9,S=10,T=11,C=12;function O(R){return R<4352?!1:R>=4352&&R<=4447||R>=4515&&R<=4519||R>=4602&&R<=4607||R>=9001&&R<=9002||R>=11904&&R<=11929||R>=11931&&R<=12019||R>=12032&&R<=12245||R>=12272&&R<=12283||R>=12288&&R<=12350||R>=12353&&R<=12438||R>=12441&&R<=12543||R>=12549&&R<=12589||R>=12593&&R<=12686||R>=12688&&R<=12730||R>=12736&&R<=12771||R>=12784&&R<=12830||R>=12832&&R<=12871||R>=12880&&R<=13054||R>=13056&&R<=19903||R>=19968&&R<=42124||R>=42128&&R<=42182||R>=43360&&R<=43388||R>=44032&&R<=55203||R>=55216&&R<=55238||R>=55243&&R<=55291||R>=63744&&R<=64255||R>=65040&&R<=65049||R>=65072&&R<=65106||R>=65108&&R<=65126||R>=65128&&R<=65131||R>=65281&&R<=65376||R>=65504&&R<=65510}n("./edit_session/folding").Folding.call(v.prototype),n("./edit_session/bracket_match").BracketMatch.call(v.prototype),a.defineOptions(v.prototype,"session",{wrap:{set:function(R){if(!R||R=="off"?R=!1:R=="free"?R=!0:R=="printMargin"?R=-1:typeof R=="string"&&(R=parseInt(R,10)||!1),this.$wrap!=R)if(this.$wrap=R,!R)this.setUseWrapMode(!1);else{var _=typeof R=="number"?R:null;this.setWrapLimitRange(_,_),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(R){R=R=="auto"?this.$mode.type!="text":R!="text",R!=this.$wrapAsCode&&(this.$wrapAsCode=R,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(R){this.$useWorker=R,this.$stopWorker(),R&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(R){R=parseInt(R),R>0&&this.$tabSize!==R&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=R,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(R){this.setFoldStyle(R)},handlesSet:!0},overwrite:{set:function(R){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(R){this.doc.setNewLineMode(R)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(R){this.setMode(R)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=v}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,r,o){var i=n("./lib/lang"),s=n("./lib/oop"),l=n("./range").Range,a=function(){function c(){this.$options={}}return c.prototype.set=function(d){return s.mixin(this.$options,d),this},c.prototype.getOptions=function(){return i.copyObject(this.$options)},c.prototype.setOptions=function(d){this.$options=d},c.prototype.find=function(d){var h=this.$options,p=this.$matchIterator(d,h);if(!p)return!1;var f=null;return p.forEach(function(g,m,v,y){return f=new l(g,m,v,y),m==y&&h.start&&h.start.start&&h.skipCurrent!=!1&&f.isEqual(h.start)?(f=null,!1):!0}),f},c.prototype.findAll=function(d){var h=this.$options;if(!h.needle)return[];this.$assembleRegExp(h);var p=h.range,f=p?d.getLines(p.start.row,p.end.row):d.doc.getAllLines(),g=[],m=h.re;if(h.$isMultiLine){var v=m.length,y=f.length-v,b;e:for(var x=m.offset||0;x<=y;x++){for(var k=0;kT||(g.push(b=new l(x,T,x+v-1,C)),v>2&&(x=x+v-2))}}else for(var O=0;OE&&g[k].end.row==M;)k--;for(g=g.slice(O,k+1),O=0,k=g.length;O=b;C--)if(S(C,Number.MAX_VALUE,A))return;if(h.wrap!=!1){for(C=x,b=y.row;C>=b;C--)if(S(C,Number.MAX_VALUE,A))return}}};else var k=function(C){var O=y.row;if(!S(O,y.column,C)){for(O=O+1;O<=x;O++)if(S(O,0,C))return;if(h.wrap!=!1){for(O=b,x=y.row;O<=x;O++)if(S(O,0,C))return}}};if(h.$isMultiLine)var w=p.length,S=function(A,C,O){var R=f?A-w+1:A;if(!(R<0||R+w>d.getLength())){var _=d.getLine(R),T=_.search(p[0]);if(!(!f&&TC)&&O(R,T,R+w-1,M))return!0}}};else if(f)var S=function(C,O,R){var _=d.getLine(C),T=[],E,M=0;for(p.lastIndex=0;E=p.exec(_);){var I=E[0].length;if(M=E.index,!I){if(M>=_.length)break;p.lastIndex=M+=i.skipEmptyMatch(_,M,m)}if(E.index+I>O)break;T.push(E.index,I)}for(var N=T.length-1;N>=0;N-=2){var L=T[N-1],I=T[N];if(R(C,L,C,L+I))return!0}};else var S=function(C,O,R){var _=d.getLine(C),T,E;for(p.lastIndex=O;E=p.exec(_);){var M=E[0].length;if(T=E.index,R(C,T,C,T+M))return!0;if(!M&&(p.lastIndex=T+=i.skipEmptyMatch(_,T,m),T>=_.length))return!1}};return{forEach:k}},c}();function u(c,d){var h=i.supportsLookbehind();function p(v,y){y===void 0&&(y=!0);var b=h&&d.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return b.test(v)||d.regExp?h&&d.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var f=Array.from(c),g=f[0],m=f[f.length-1];return p(g)+c+p(m,!1)}r.Search=a}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,o){var i=this&&this.__extends||function(){var h=function(p,f){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(g[v]=m[v])},h(p,f)};return function(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");h(p,f);function g(){this.constructor=p}p.prototype=f===null?Object.create(f):(g.prototype=f.prototype,new g)}}(),s=n("../lib/keys"),l=n("../lib/useragent"),a=s.KEY_MODS,u=function(){function h(p,f){this.$init(p,f,!1)}return h.prototype.$init=function(p,f,g){this.platform=f||(l.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(p),this.$singleCommand=g},h.prototype.addCommand=function(p){this.commands[p.name]&&this.removeCommand(p),this.commands[p.name]=p,p.bindKey&&this._buildKeyHash(p)},h.prototype.removeCommand=function(p,f){var g=p&&(typeof p=="string"?p:p.name);p=this.commands[g],f||delete this.commands[g];var m=this.commandKeyBinding;for(var v in m){var y=m[v];if(y==p)delete m[v];else if(Array.isArray(y)){var b=y.indexOf(p);b!=-1&&(y.splice(b,1),y.length==1&&(m[v]=y[0]))}}},h.prototype.bindKey=function(p,f,g){if(typeof p=="object"&&p&&(g==null&&(g=p.position),p=p[this.platform]),!!p){if(typeof f=="function")return this.addCommand({exec:f,bindKey:p,name:f.name||p});p.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(k){var w=this.parseKeys(k),S=a[w.hashId]+w.key;v+=(v?" ":"")+S,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var b=this.parseKeys(m),x=a[b.hashId]+b.key;this._addCommandToBinding(v+x,f,g)},this)}},h.prototype._addCommandToBinding=function(p,f,g){var m=this.commandKeyBinding,v;if(!f)delete m[p];else if(!m[p]||this.$singleCommand)m[p]=f;else{Array.isArray(m[p])?(v=m[p].indexOf(f))!=-1&&m[p].splice(v,1):m[p]=[m[p]],typeof g!="number"&&(g=c(f));var y=m[p];for(v=0;vg)break}y.splice(v,0,f)}},h.prototype.addCommands=function(p){p&&Object.keys(p).forEach(function(f){var g=p[f];if(g){if(typeof g=="string")return this.bindKey(g,f);typeof g=="function"&&(g={exec:g}),typeof g=="object"&&(g.name||(g.name=f),this.addCommand(g))}},this)},h.prototype.removeCommands=function(p){Object.keys(p).forEach(function(f){this.removeCommand(p[f])},this)},h.prototype.bindKeys=function(p){Object.keys(p).forEach(function(f){this.bindKey(f,p[f])},this)},h.prototype._buildKeyHash=function(p){this.bindKey(p.bindKey,p)},h.prototype.parseKeys=function(p){var f=p.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(x){return x}),g=f.pop(),m=s[g];if(s.FUNCTION_KEYS[m])g=s.FUNCTION_KEYS[m].toLowerCase();else if(f.length){if(f.length==1&&f[0]=="shift")return{key:g.toUpperCase(),hashId:-1}}else return{key:g,hashId:-1};for(var v=0,y=f.length;y--;){var b=s.KEY_MODS[f[y]];if(b==null)return typeof console<"u"&&console.error("invalid modifier "+f[y]+" in "+p),!1;v|=b}return{key:g,hashId:v}},h.prototype.findKeyCommand=function(p,f){var g=a[p]+f;return this.commandKeyBinding[g]},h.prototype.handleKeyboard=function(p,f,g,m){if(!(m<0)){var v=a[f]+g,y=this.commandKeyBinding[v];return p.$keyChain&&(p.$keyChain+=" "+v,y=this.commandKeyBinding[p.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(p.$keyChain=p.$keyChain||v,{command:"null"}):(p.$keyChain&&((!f||f==4)&&g.length==1?p.$keyChain=p.$keyChain.slice(0,-v.length-1):(f==-1||m>0)&&(p.$keyChain="")),{command:y})}},h.prototype.getStatusText=function(p,f){return f.$keyChain||""},h}();function c(h){return typeof h=="object"&&h.bindKey&&h.bindKey.position||(h.isDefault?-100:0)}var d=function(h){i(p,h);function p(f,g){var m=h.call(this,f,g)||this;return m.$singleCommand=!0,m}return p}(u);d.call=function(h,p,f){u.prototype.$init.call(h,p,f,!0)},u.call=function(h,p,f){u.prototype.$init.call(h,p,f,!1)},r.HashHandler=d,r.MultiHashHandler=u}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,r,o){var i=this&&this.__extends||function(){var c=function(d,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(p[g]=f[g])},c(d,h)};return function(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");c(d,h);function p(){this.constructor=d}d.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}}(),s=n("../lib/oop"),l=n("../keyboard/hash_handler").MultiHashHandler,a=n("../lib/event_emitter").EventEmitter,u=function(c){i(d,c);function d(h,p){var f=c.call(this,p,h)||this;return f.byName=f.commands,f.setDefaultHandler("exec",function(g){return g.args?g.command.exec(g.editor,g.args,g.event,!1):g.command.exec(g.editor,{},g.event,!0)}),f}return d.prototype.exec=function(h,p,f){if(Array.isArray(h)){for(var g=h.length;g--;)if(this.exec(h[g],p,f))return!0;return!1}if(typeof h=="string"&&(h=this.commands[h]),!h||p&&p.$readOnly&&!h.readOnly||this.$checkCommandState!=!1&&h.isAvailable&&!h.isAvailable(p))return!1;var m={editor:p,command:h,args:f};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},d.prototype.toggleRecording=function(h){if(!this.$inReplay)return h&&h._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(p){this.macro.push([p.command,p.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},d.prototype.replay=function(h){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(h);try{this.$inReplay=!0,this.macro.forEach(function(p){typeof p=="string"?this.exec(p,h):this.exec(p[0],h,p[1])},this)}finally{this.$inReplay=!1}}},d.prototype.trimMacro=function(h){return h.map(function(p){return typeof p[0]!="string"&&(p[0]=p[0].name),p[1]||(p=p[0]),p})},d}(l);s.implement(u.prototype,a),r.CommandManager=u}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,r,o){var i=n("../lib/lang"),s=n("../config"),l=n("../range").Range;function a(c,d){return{win:c,mac:d}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:a("Ctrl-,","Command-,"),exec:function(c){s.loadModule("ace/ext/settings_menu",function(d){d.init(c),c.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:a("Alt-E","F4"),exec:function(c){s.loadModule("ace/ext/error_marker",function(d){d.showErrorMarker(c,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(c){s.loadModule("ace/ext/error_marker",function(d){d.showErrorMarker(c,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:a("Ctrl-A","Command-A"),exec:function(c){c.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:a(null,"Ctrl-L"),exec:function(c){c.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:a("Ctrl-L","Command-L"),exec:function(c,d){typeof d=="number"&&!isNaN(d)&&c.gotoLine(d),c.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(c){c.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(c){c.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:a("F2","F2"),exec:function(c){c.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:a("Alt-F2","Alt-F2"),exec:function(c){c.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(c){c.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(c){c.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:a("Alt-0","Command-Option-0"),exec:function(c){c.session.foldAll(),c.session.unfold(c.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(c){c.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:a("Ctrl-K","Command-G"),exec:function(c){c.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(c){c.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:a("Alt-K","Ctrl-G"),exec:function(c){c.selection.isEmpty()?c.selection.selectWord():c.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(c){c.selection.isEmpty()?c.selection.selectWord():c.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:a("Ctrl-F","Command-F"),exec:function(c){s.loadModule("ace/ext/searchbox",function(d){d.Search(c)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(c){c.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(c){c.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(c){c.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(c){c.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:a("Up","Up|Ctrl-P"),exec:function(c,d){c.navigateUp(d.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(c){c.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(c){c.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(c){c.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:a("Down","Down|Ctrl-N"),exec:function(c,d){c.navigateDown(d.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(c){c.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:a("Ctrl-Left","Option-Left"),exec:function(c){c.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(c){c.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(c){c.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(c){c.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:a("Left","Left|Ctrl-B"),exec:function(c,d){c.navigateLeft(d.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(c){c.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:a("Ctrl-Right","Option-Right"),exec:function(c){c.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(c){c.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(c){c.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:a("Shift-Right","Shift-Right"),exec:function(c){c.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:a("Right","Right|Ctrl-F"),exec:function(c,d){c.navigateRight(d.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(c){c.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:a(null,"Option-PageDown"),exec:function(c){c.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(c){c.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(c){c.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:a(null,"Option-PageUp"),exec:function(c){c.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(c){c.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:a("Ctrl-Up",null),exec:function(c){c.renderer.scrollBy(0,-2*c.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:a("Ctrl-Down",null),exec:function(c){c.renderer.scrollBy(0,2*c.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(c){c.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(c){c.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(c){c.commands.toggleRecording(c)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(c){c.commands.replay(c)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:a("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(c){c.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:a("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(c){c.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(c){c.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(c){},readOnly:!0},{name:"cut",description:"Cut",exec:function(c){var d=c.$copyWithEmptySelection&&c.selection.isEmpty(),h=d?c.selection.getLineRange():c.selection.getRange();c._emit("cut",h),h.isEmpty()||c.session.remove(h),c.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(c,d){c.$handlePaste(d)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:a("Ctrl-D","Command-D"),exec:function(c){c.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(c){c.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(c){c.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:a("Ctrl-/","Command-/"),exec:function(c){c.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(c){c.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(c){c.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(c){c.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(c){s.loadModule("ace/ext/searchbox",function(d){d.Search(c,!0)})}},{name:"undo",description:"Undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(c){c.undo()}},{name:"redo",description:"Redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(c){c.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(c){c.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:a("Alt-Up","Option-Up"),exec:function(c){c.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(c){c.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:a("Alt-Down","Option-Down"),exec:function(c){c.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(c){c.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(c){c.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:a("Shift-Delete",null),exec:function(c){if(c.selection.isEmpty())c.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(c){c.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(c){c.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(c){var d=c.selection.getRange();d.start.column=0,c.session.remove(d)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(c){var d=c.selection.getRange();d.end.column=Number.MAX_VALUE,c.session.remove(d)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(c){c.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(c){c.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(c){c.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:a("Tab","Tab"),exec:function(c){c.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(c){c.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(c){c.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(c,d){c.insert(d)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(c,d){c.insert(i.stringRepeat(d.text||"",d.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:a(null,"Ctrl-O"),exec:function(c){c.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(c){c.transposeLetters()},multiSelectAction:function(c){c.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(c){c.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(c){c.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:a(null,null),exec:function(c){c.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(c){var d=c.selection.getRange();d.start.column=d.end.column=0,d.end.row++,c.selection.setRange(d,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:a("Ctrl+F3","F3"),exec:function(c){c.openLink()}},{name:"joinlines",description:"Join lines",bindKey:a(null,null),exec:function(c){for(var d=c.selection.isBackwards(),h=d?c.selection.getSelectionLead():c.selection.getSelectionAnchor(),p=d?c.selection.getSelectionAnchor():c.selection.getSelectionLead(),f=c.session.doc.getLine(h.row).length,g=c.session.doc.getTextRange(c.selection.getRange()),m=g.replace(/\n\s*/," ").length,v=c.session.doc.getLine(h.row),y=h.row+1;y<=p.row+1;y++){var b=i.stringTrimLeft(i.stringTrimRight(c.session.doc.getLine(y)));b.length!==0&&(b=" "+b),v+=b}p.row+10?(c.selection.moveCursorTo(h.row,h.column),c.selection.selectTo(h.row,h.column+m)):(f=c.session.doc.getLine(h.row).length>f?f+1:f,c.selection.moveCursorTo(h.row,f))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(c){var d=c.session.doc.getLength()-1,h=c.session.doc.getLine(d).length,p=c.selection.rangeList.ranges,f=[];p.length<1&&(p=[c.selection.getRange()]);for(var g=0;g=b;C--)if(S(C,Number.MAX_VALUE,T))return;if(h.wrap!=!1){for(C=x,b=y.row;C>=b;C--)if(S(C,Number.MAX_VALUE,T))return}}};else var k=function(C){var O=y.row;if(!S(O,y.column,C)){for(O=O+1;O<=x;O++)if(S(O,0,C))return;if(h.wrap!=!1){for(O=b,x=y.row;O<=x;O++)if(S(O,0,C))return}}};if(h.$isMultiLine)var w=p.length,S=function(T,C,O){var R=f?T-w+1:T;if(!(R<0||R+w>d.getLength())){var _=d.getLine(R),A=_.search(p[0]);if(!(!f&&AC)&&O(R,A,R+w-1,M))return!0}}};else if(f)var S=function(C,O,R){var _=d.getLine(C),A=[],E,M=0;for(p.lastIndex=0;E=p.exec(_);){var I=E[0].length;if(M=E.index,!I){if(M>=_.length)break;p.lastIndex=M+=i.skipEmptyMatch(_,M,m)}if(E.index+I>O)break;A.push(E.index,I)}for(var N=A.length-1;N>=0;N-=2){var L=A[N-1],I=A[N];if(R(C,L,C,L+I))return!0}};else var S=function(C,O,R){var _=d.getLine(C),A,E;for(p.lastIndex=O;E=p.exec(_);){var M=E[0].length;if(A=E.index,R(C,A,C,A+M))return!0;if(!M&&(p.lastIndex=A+=i.skipEmptyMatch(_,A,m),A>=_.length))return!1}};return{forEach:k}},c}();function u(c,d){var h=i.supportsLookbehind();function p(v,y){y===void 0&&(y=!0);var b=h&&d.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return b.test(v)||d.regExp?h&&d.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var f=Array.from(c),g=f[0],m=f[f.length-1];return p(g)+c+p(m,!1)}r.Search=a}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,o){var i=this&&this.__extends||function(){var h=function(p,f){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(g[v]=m[v])},h(p,f)};return function(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");h(p,f);function g(){this.constructor=p}p.prototype=f===null?Object.create(f):(g.prototype=f.prototype,new g)}}(),s=n("../lib/keys"),l=n("../lib/useragent"),a=s.KEY_MODS,u=function(){function h(p,f){this.$init(p,f,!1)}return h.prototype.$init=function(p,f,g){this.platform=f||(l.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(p),this.$singleCommand=g},h.prototype.addCommand=function(p){this.commands[p.name]&&this.removeCommand(p),this.commands[p.name]=p,p.bindKey&&this._buildKeyHash(p)},h.prototype.removeCommand=function(p,f){var g=p&&(typeof p=="string"?p:p.name);p=this.commands[g],f||delete this.commands[g];var m=this.commandKeyBinding;for(var v in m){var y=m[v];if(y==p)delete m[v];else if(Array.isArray(y)){var b=y.indexOf(p);b!=-1&&(y.splice(b,1),y.length==1&&(m[v]=y[0]))}}},h.prototype.bindKey=function(p,f,g){if(typeof p=="object"&&p&&(g==null&&(g=p.position),p=p[this.platform]),!!p){if(typeof f=="function")return this.addCommand({exec:f,bindKey:p,name:f.name||p});p.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(k){var w=this.parseKeys(k),S=a[w.hashId]+w.key;v+=(v?" ":"")+S,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var b=this.parseKeys(m),x=a[b.hashId]+b.key;this._addCommandToBinding(v+x,f,g)},this)}},h.prototype._addCommandToBinding=function(p,f,g){var m=this.commandKeyBinding,v;if(!f)delete m[p];else if(!m[p]||this.$singleCommand)m[p]=f;else{Array.isArray(m[p])?(v=m[p].indexOf(f))!=-1&&m[p].splice(v,1):m[p]=[m[p]],typeof g!="number"&&(g=c(f));var y=m[p];for(v=0;vg)break}y.splice(v,0,f)}},h.prototype.addCommands=function(p){p&&Object.keys(p).forEach(function(f){var g=p[f];if(g){if(typeof g=="string")return this.bindKey(g,f);typeof g=="function"&&(g={exec:g}),typeof g=="object"&&(g.name||(g.name=f),this.addCommand(g))}},this)},h.prototype.removeCommands=function(p){Object.keys(p).forEach(function(f){this.removeCommand(p[f])},this)},h.prototype.bindKeys=function(p){Object.keys(p).forEach(function(f){this.bindKey(f,p[f])},this)},h.prototype._buildKeyHash=function(p){this.bindKey(p.bindKey,p)},h.prototype.parseKeys=function(p){var f=p.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(x){return x}),g=f.pop(),m=s[g];if(s.FUNCTION_KEYS[m])g=s.FUNCTION_KEYS[m].toLowerCase();else if(f.length){if(f.length==1&&f[0]=="shift")return{key:g.toUpperCase(),hashId:-1}}else return{key:g,hashId:-1};for(var v=0,y=f.length;y--;){var b=s.KEY_MODS[f[y]];if(b==null)return typeof console<"u"&&console.error("invalid modifier "+f[y]+" in "+p),!1;v|=b}return{key:g,hashId:v}},h.prototype.findKeyCommand=function(p,f){var g=a[p]+f;return this.commandKeyBinding[g]},h.prototype.handleKeyboard=function(p,f,g,m){if(!(m<0)){var v=a[f]+g,y=this.commandKeyBinding[v];return p.$keyChain&&(p.$keyChain+=" "+v,y=this.commandKeyBinding[p.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(p.$keyChain=p.$keyChain||v,{command:"null"}):(p.$keyChain&&((!f||f==4)&&g.length==1?p.$keyChain=p.$keyChain.slice(0,-v.length-1):(f==-1||m>0)&&(p.$keyChain="")),{command:y})}},h.prototype.getStatusText=function(p,f){return f.$keyChain||""},h}();function c(h){return typeof h=="object"&&h.bindKey&&h.bindKey.position||(h.isDefault?-100:0)}var d=function(h){i(p,h);function p(f,g){var m=h.call(this,f,g)||this;return m.$singleCommand=!0,m}return p}(u);d.call=function(h,p,f){u.prototype.$init.call(h,p,f,!0)},u.call=function(h,p,f){u.prototype.$init.call(h,p,f,!1)},r.HashHandler=d,r.MultiHashHandler=u}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,r,o){var i=this&&this.__extends||function(){var c=function(d,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(p[g]=f[g])},c(d,h)};return function(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");c(d,h);function p(){this.constructor=d}d.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}}(),s=n("../lib/oop"),l=n("../keyboard/hash_handler").MultiHashHandler,a=n("../lib/event_emitter").EventEmitter,u=function(c){i(d,c);function d(h,p){var f=c.call(this,p,h)||this;return f.byName=f.commands,f.setDefaultHandler("exec",function(g){return g.args?g.command.exec(g.editor,g.args,g.event,!1):g.command.exec(g.editor,{},g.event,!0)}),f}return d.prototype.exec=function(h,p,f){if(Array.isArray(h)){for(var g=h.length;g--;)if(this.exec(h[g],p,f))return!0;return!1}if(typeof h=="string"&&(h=this.commands[h]),!h||p&&p.$readOnly&&!h.readOnly||this.$checkCommandState!=!1&&h.isAvailable&&!h.isAvailable(p))return!1;var m={editor:p,command:h,args:f};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},d.prototype.toggleRecording=function(h){if(!this.$inReplay)return h&&h._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(p){this.macro.push([p.command,p.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},d.prototype.replay=function(h){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(h);try{this.$inReplay=!0,this.macro.forEach(function(p){typeof p=="string"?this.exec(p,h):this.exec(p[0],h,p[1])},this)}finally{this.$inReplay=!1}}},d.prototype.trimMacro=function(h){return h.map(function(p){return typeof p[0]!="string"&&(p[0]=p[0].name),p[1]||(p=p[0]),p})},d}(l);s.implement(u.prototype,a),r.CommandManager=u}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,r,o){var i=n("../lib/lang"),s=n("../config"),l=n("../range").Range;function a(c,d){return{win:c,mac:d}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:a("Ctrl-,","Command-,"),exec:function(c){s.loadModule("ace/ext/settings_menu",function(d){d.init(c),c.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:a("Alt-E","F4"),exec:function(c){s.loadModule("ace/ext/error_marker",function(d){d.showErrorMarker(c,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(c){s.loadModule("ace/ext/error_marker",function(d){d.showErrorMarker(c,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:a("Ctrl-A","Command-A"),exec:function(c){c.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:a(null,"Ctrl-L"),exec:function(c){c.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:a("Ctrl-L","Command-L"),exec:function(c,d){typeof d=="number"&&!isNaN(d)&&c.gotoLine(d),c.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(c){c.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(c){c.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:a("F2","F2"),exec:function(c){c.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:a("Alt-F2","Alt-F2"),exec:function(c){c.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(c){c.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(c){c.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:a("Alt-0","Command-Option-0"),exec:function(c){c.session.foldAll(),c.session.unfold(c.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(c){c.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:a("Ctrl-K","Command-G"),exec:function(c){c.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(c){c.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:a("Alt-K","Ctrl-G"),exec:function(c){c.selection.isEmpty()?c.selection.selectWord():c.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(c){c.selection.isEmpty()?c.selection.selectWord():c.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:a("Ctrl-F","Command-F"),exec:function(c){s.loadModule("ace/ext/searchbox",function(d){d.Search(c)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(c){c.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(c){c.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(c){c.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(c){c.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:a("Up","Up|Ctrl-P"),exec:function(c,d){c.navigateUp(d.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(c){c.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(c){c.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(c){c.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:a("Down","Down|Ctrl-N"),exec:function(c,d){c.navigateDown(d.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(c){c.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:a("Ctrl-Left","Option-Left"),exec:function(c){c.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(c){c.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(c){c.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(c){c.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:a("Left","Left|Ctrl-B"),exec:function(c,d){c.navigateLeft(d.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(c){c.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:a("Ctrl-Right","Option-Right"),exec:function(c){c.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(c){c.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(c){c.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:a("Shift-Right","Shift-Right"),exec:function(c){c.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:a("Right","Right|Ctrl-F"),exec:function(c,d){c.navigateRight(d.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(c){c.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:a(null,"Option-PageDown"),exec:function(c){c.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(c){c.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(c){c.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:a(null,"Option-PageUp"),exec:function(c){c.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(c){c.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:a("Ctrl-Up",null),exec:function(c){c.renderer.scrollBy(0,-2*c.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:a("Ctrl-Down",null),exec:function(c){c.renderer.scrollBy(0,2*c.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(c){c.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(c){c.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(c){c.commands.toggleRecording(c)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(c){c.commands.replay(c)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:a("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(c){c.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:a("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(c){c.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(c){c.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(c){},readOnly:!0},{name:"cut",description:"Cut",exec:function(c){var d=c.$copyWithEmptySelection&&c.selection.isEmpty(),h=d?c.selection.getLineRange():c.selection.getRange();c._emit("cut",h),h.isEmpty()||c.session.remove(h),c.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(c,d){c.$handlePaste(d)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:a("Ctrl-D","Command-D"),exec:function(c){c.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(c){c.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(c){c.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:a("Ctrl-/","Command-/"),exec:function(c){c.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(c){c.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(c){c.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(c){c.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(c){s.loadModule("ace/ext/searchbox",function(d){d.Search(c,!0)})}},{name:"undo",description:"Undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(c){c.undo()}},{name:"redo",description:"Redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(c){c.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(c){c.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:a("Alt-Up","Option-Up"),exec:function(c){c.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(c){c.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:a("Alt-Down","Option-Down"),exec:function(c){c.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(c){c.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(c){c.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:a("Shift-Delete",null),exec:function(c){if(c.selection.isEmpty())c.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(c){c.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(c){c.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(c){var d=c.selection.getRange();d.start.column=0,c.session.remove(d)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(c){var d=c.selection.getRange();d.end.column=Number.MAX_VALUE,c.session.remove(d)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(c){c.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(c){c.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(c){c.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:a("Tab","Tab"),exec:function(c){c.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(c){c.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(c){c.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(c,d){c.insert(d)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(c,d){c.insert(i.stringRepeat(d.text||"",d.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:a(null,"Ctrl-O"),exec:function(c){c.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(c){c.transposeLetters()},multiSelectAction:function(c){c.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(c){c.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(c){c.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:a(null,null),exec:function(c){c.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(c){var d=c.selection.getRange();d.start.column=d.end.column=0,d.end.row++,c.selection.setRange(d,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:a("Ctrl+F3","F3"),exec:function(c){c.openLink()}},{name:"joinlines",description:"Join lines",bindKey:a(null,null),exec:function(c){for(var d=c.selection.isBackwards(),h=d?c.selection.getSelectionLead():c.selection.getSelectionAnchor(),p=d?c.selection.getSelectionAnchor():c.selection.getSelectionLead(),f=c.session.doc.getLine(h.row).length,g=c.session.doc.getTextRange(c.selection.getRange()),m=g.replace(/\n\s*/," ").length,v=c.session.doc.getLine(h.row),y=h.row+1;y<=p.row+1;y++){var b=i.stringTrimLeft(i.stringTrimRight(c.session.doc.getLine(y)));b.length!==0&&(b=" "+b),v+=b}p.row+10?(c.selection.moveCursorTo(h.row,h.column),c.selection.selectTo(h.row,h.column+m)):(f=c.session.doc.getLine(h.row).length>f?f+1:f,c.selection.moveCursorTo(h.row,f))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(c){var d=c.session.doc.getLength()-1,h=c.session.doc.getLine(d).length,p=c.selection.rangeList.ranges,f=[];p.length<1&&(p=[c.selection.getRange()]);for(var g=0;gu[c].column&&c++,p.unshift(c,0),u.splice.apply(u,p),this.$updateRows()}}},l.prototype.$updateRows=function(){var a=this.session.lineWidgets;if(a){var u=!0;a.forEach(function(c,d){if(c)for(u=!1,c.row=d;c.$oldWidget;)c.$oldWidget.row=d,c=c.$oldWidget}),u&&(this.session.lineWidgets=null)}},l.prototype.$registerLineWidget=function(a){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var u=this.session.lineWidgets[a.row];return u&&(a.$oldWidget=u,u.el&&u.el.parentNode&&(u.el.parentNode.removeChild(u.el),u._inDocument=!1)),this.session.lineWidgets[a.row]=a,a},l.prototype.addLineWidget=function(a){if(this.$registerLineWidget(a),a.session=this.session,!this.editor)return a;var u=this.editor.renderer;a.html&&!a.el&&(a.el=i.createElement("div"),a.el.innerHTML=a.html),a.text&&!a.el&&(a.el=i.createElement("div"),a.el.textContent=a.text),a.el&&(i.addCssClass(a.el,"ace_lineWidgetContainer"),a.className&&i.addCssClass(a.el,a.className),a.el.style.position="absolute",a.el.style.zIndex="5",u.container.appendChild(a.el),a._inDocument=!0,a.coverGutter||(a.el.style.zIndex="3"),a.pixelHeight==null&&(a.pixelHeight=a.el.offsetHeight)),a.rowCount==null&&(a.rowCount=a.pixelHeight/u.layerConfig.lineHeight);var c=this.session.getFoldAt(a.row,0);if(a.$fold=c,c){var d=this.session.lineWidgets;a.row==c.end.row&&!d[c.start.row]?d[c.start.row]=a:a.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:a.row}}}),this.$updateRows(),this.renderWidgets(null,u),this.onWidgetChanged(a),a},l.prototype.removeLineWidget=function(a){if(a._inDocument=!1,a.session=null,a.el&&a.el.parentNode&&a.el.parentNode.removeChild(a.el),a.editor&&a.editor.destroy)try{a.editor.destroy()}catch{}if(this.session.lineWidgets){var u=this.session.lineWidgets[a.row];if(u==a)this.session.lineWidgets[a.row]=a.$oldWidget,a.$oldWidget&&this.onWidgetChanged(a.$oldWidget);else for(;u;){if(u.$oldWidget==a){u.$oldWidget=a.$oldWidget;break}u=u.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:a.row}}}),this.$updateRows()},l.prototype.getWidgetsAtRow=function(a){for(var u=this.session.lineWidgets,c=u&&u[a],d=[];c;)d.push(c),c=c.$oldWidget;return d},l.prototype.onWidgetChanged=function(a){this.session._changedWidgets.push(a),this.editor&&this.editor.renderer.updateFull()},l.prototype.measureWidgets=function(a,u){var c=this.session._changedWidgets,d=u.layerConfig;if(!(!c||!c.length)){for(var h=1/0,p=0;p0&&!d[h];)h--;this.firstRow=c.firstRow,this.lastRow=c.lastRow,u.$cursorLayer.config=c;for(var f=h;f<=p;f++){var g=d[f];if(!(!g||!g.el)){if(g.hidden){g.el.style.top=-100-(g.pixelHeight||0)+"px";continue}g._inDocument||(g._inDocument=!0,u.container.appendChild(g.el));var m=u.$cursorLayer.getPixelPosition({row:f,column:0},!0).top;g.coverLine||(m+=c.lineHeight*this.session.getRowLineCount(g.row)),g.el.style.top=m-c.offset+"px";var v=g.coverGutter?0:u.gutterWidth;g.fixedWidth||(v-=u.scrollLeft),g.el.style.left=v+"px",g.fullWidth&&g.screenWidth&&(g.el.style.minWidth=c.width+2*c.padding+"px"),g.fixedWidth?g.el.style.right=u.scrollBar.getWidth()+"px":g.el.style.right=""}}}},l}();r.LineWidgets=s}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,r,o){var i=n("../lib/keys"),s=n("../mouse/default_gutter_handler").GutterTooltip,l=function(){function u(c){this.editor=c,this.gutterLayer=c.renderer.$gutterLayer,this.element=c.renderer.$gutter,this.lines=c.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new s(this.editor)}return u.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},u.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},u.prototype.$onGutterKeyDown=function(c){if(this.annotationTooltip.isOpen){c.preventDefault(),c.keyCode===i.escape&&this.annotationTooltip.hideTooltip();return}if(c.target===this.element){if(c.keyCode!=i.enter)return;c.preventDefault();var d=this.editor.getCursorPosition().row;this.editor.isRowVisible(d)||this.editor.scrollToLine(d,!0,!0),setTimeout((function(){var h=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),p=this.$findNearestFoldWidget(h),f=this.$findNearestAnnotation(h);if(!(p===null&&f===null)){if(p===null&&f!==null){this.activeRowIndex=f,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(p!==null&&f===null){this.activeRowIndex=p,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(f-h)0||c+d=0&&this.$isFoldWidgetVisible(c-d))return c-d;if(c+d<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(c+d))return c+d}return null},u.prototype.$findNearestAnnotation=function(c){if(this.$isAnnotationVisible(c))return c;for(var d=0;c-d>0||c+d=0&&this.$isAnnotationVisible(c-d))return c-d;if(c+d<=this.lines.getLength()-1&&this.$isAnnotationVisible(c+d))return c+d}return null},u.prototype.$focusFoldWidget=function(c){if(c!=null){var d=this.$getFoldWidget(c);d.classList.add(this.editor.renderer.keyboardFocusClassName),d.focus()}},u.prototype.$focusAnnotation=function(c){if(c!=null){var d=this.$getAnnotation(c);d.classList.add(this.editor.renderer.keyboardFocusClassName),d.focus()}},u.prototype.$blurFoldWidget=function(c){var d=this.$getFoldWidget(c);d.classList.remove(this.editor.renderer.keyboardFocusClassName),d.blur()},u.prototype.$blurAnnotation=function(c){var d=this.$getAnnotation(c);d.classList.remove(this.editor.renderer.keyboardFocusClassName),d.blur()},u.prototype.$moveFoldWidgetUp=function(){for(var c=this.activeRowIndex;c>0;)if(c--,this.$isFoldWidgetVisible(c)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=c,this.$focusFoldWidget(this.activeRowIndex);return}},u.prototype.$moveFoldWidgetDown=function(){for(var c=this.activeRowIndex;c0;)if(c--,this.$isAnnotationVisible(c)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=c,this.$focusAnnotation(this.activeRowIndex);return}},u.prototype.$moveAnnotationDown=function(){for(var c=this.activeRowIndex;c=T.length&&(T=void 0),{value:T&&T[I++],done:!T}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")},s=n("./lib/oop"),l=n("./lib/dom"),a=n("./lib/lang"),u=n("./lib/useragent"),c=n("./keyboard/textinput").TextInput,d=n("./mouse/mouse_handler").MouseHandler,h=n("./mouse/fold_handler").FoldHandler,p=n("./keyboard/keybinding").KeyBinding,f=n("./edit_session").EditSession,g=n("./search").Search,m=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,b=n("./commands/default_commands").commands,x=n("./config"),k=n("./token_iterator").TokenIterator,w=n("./line_widgets").LineWidgets,S=n("./keyboard/gutter_handler").GutterKeyboardHandler,A=n("./config").nls,C=n("./clipboard"),O=n("./lib/keys"),R=function(){function T(E,M,I){this.session,this.$toDestroy=[];var N=E.getContainerElement();this.container=N,this.renderer=E,this.id="editor"+ ++T.$uid,this.commands=new y(u.isMac?"mac":"win",b),typeof document=="object"&&(this.textInput=new c(E.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new d(this),new h(this)),this.keyBinding=new p(this),this.$search=new g().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=a.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(L,$){$._$emitInputEvent.schedule(31)}),this.setSession(M||I&&I.session||new f("")),x.resetOptions(this),I&&this.setOptions(I),x._signal("editor",this)}return T.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=a.delayedCall(this.endOperation.bind(this,!0)),this.on("change",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}).bind(this),!0),this.on("changeSelection",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}).bind(this),!0)},T.prototype.startOperation=function(E){if(this.curOp){if(!E||this.curOp.command)return;this.prevOp=this.curOp}E||(this.previousCommand=null,E={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:E.command||{},args:E.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},T.prototype.endOperation=function(E){if(this.curOp&&this.session){if(E&&E.returnValue===!1||!this.session)return this.curOp=null;if(E==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var M=this.curOp.command,I=M&&M.scrollIntoView;if(I){switch(I){case"center-animate":I="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var N=this.selection.getRange(),L=this.renderer.layerConfig;(N.start.row>=L.lastRow||N.end.row<=L.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}I=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var $=this.selection.toJSON();this.curOp.selectionAfter=$,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection($),this.prevOp=this.curOp,this.curOp=null}},T.prototype.$historyTracker=function(E){if(this.$mergeUndoDeltas){var M=this.prevOp,I=this.$mergeableCommands,N=M.command&&E.command.name==M.command.name;if(E.command.name=="insertstring"){var L=E.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),N=N&&this.mergeNextCommand&&(!/\s/.test(L)||/\s/.test(M.args)),this.mergeNextCommand=!0}else N=N&&I.indexOf(E.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(N=!1),N?this.session.mergeUndoDeltas=!0:I.indexOf(E.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},T.prototype.setKeyboardHandler=function(E,M){if(E&&typeof E=="string"&&E!="ace"){this.$keybindingId=E;var I=this;x.loadModule(["keybinding",E],function(N){I.$keybindingId==E&&I.keyBinding.setKeyboardHandler(N&&N.handler),M&&M()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(E),M&&M()},T.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},T.prototype.setSession=function(E){if(this.session!=E){this.curOp&&this.endOperation(),this.curOp={};var M=this.session;if(M){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var I=this.session.getSelection();I.off("changeCursor",this.$onCursorChange),I.off("changeSelection",this.$onSelectionChange)}this.session=E,E?(this.$onDocumentChange=this.onDocumentChange.bind(this),E.on("change",this.$onDocumentChange),this.renderer.setSession(E),this.$onChangeMode=this.onChangeMode.bind(this),E.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),E.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),E.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),E.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),E.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),E.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=E.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(E)),this._signal("changeSession",{session:E,oldSession:M}),this.curOp=null,M&&M._signal("changeEditor",{oldEditor:this}),E&&E._signal("changeEditor",{editor:this}),E&&!E.destroyed&&E.bgTokenizer.scheduleStart()}},T.prototype.getSession=function(){return this.session},T.prototype.setValue=function(E,M){return this.session.doc.setValue(E),M?M==1?this.navigateFileEnd():M==-1&&this.navigateFileStart():this.selectAll(),E},T.prototype.getValue=function(){return this.session.getValue()},T.prototype.getSelection=function(){return this.selection},T.prototype.resize=function(E){this.renderer.onResize(E)},T.prototype.setTheme=function(E,M){this.renderer.setTheme(E,M)},T.prototype.getTheme=function(){return this.renderer.getTheme()},T.prototype.setStyle=function(E){this.renderer.setStyle(E)},T.prototype.unsetStyle=function(E){this.renderer.unsetStyle(E)},T.prototype.getFontSize=function(){return this.getOption("fontSize")||l.computedStyle(this.container).fontSize},T.prototype.setFontSize=function(E){this.setOption("fontSize",E)},T.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var E=this;this.$highlightPending=!0,setTimeout(function(){E.$highlightPending=!1;var M=E.session;if(!(!M||M.destroyed)){M.$bracketHighlight&&(M.$bracketHighlight.markerIds.forEach(function(B){M.removeMarker(B)}),M.$bracketHighlight=null);var I=E.getCursorPosition(),N=E.getKeyboardHandler(),L=N&&N.$getDirectionForHighlight&&N.$getDirectionForHighlight(E),$=M.getMatchingBracketRanges(I,L);if(!$){var P=new k(M,I.row,I.column),F=P.getCurrentToken();if(F&&/\b(?:tag-open|tag-name)/.test(F.type)){var H=M.getMatchingTags(I);H&&($=[H.openTagName,H.closeTagName])}}if(!$&&M.$mode.getMatching&&($=M.$mode.getMatching(E.session)),!$){E.getHighlightIndentGuides()&&E.renderer.$textLayer.$highlightIndentGuide();return}var W="ace_bracket";Array.isArray($)?$.length==1&&(W="ace_error_bracket"):$=[$],$.length==2&&(m.comparePoints($[0].end,$[1].start)==0?$=[m.fromPoints($[0].start,$[1].end)]:m.comparePoints($[0].start,$[1].end)==0&&($=[m.fromPoints($[1].start,$[0].end)])),M.$bracketHighlight={ranges:$,markerIds:$.map(function(B){return M.addMarker(B,W,"text")})},E.getHighlightIndentGuides()&&E.renderer.$textLayer.$highlightIndentGuide()}},50)}},T.prototype.focus=function(){this.textInput.focus()},T.prototype.isFocused=function(){return this.textInput.isFocused()},T.prototype.blur=function(){this.textInput.blur()},T.prototype.onFocus=function(E){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",E))},T.prototype.onBlur=function(E){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",E))},T.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},T.prototype.onDocumentChange=function(E){var M=this.session.$useWrapMode,I=E.start.row==E.end.row?E.end.row:1/0;this.renderer.updateLines(E.start.row,I,M),this._signal("change",E),this.$cursorChange()},T.prototype.onTokenizerUpdate=function(E){var M=E.data;this.renderer.updateLines(M.first,M.last)},T.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},T.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},T.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},T.prototype.$updateHighlightActiveLine=function(){var E=this.getSession(),M;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(M=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(M=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(M=!1)),E.$highlightLineMarker&&!M)E.removeMarker(E.$highlightLineMarker.id),E.$highlightLineMarker=null;else if(!E.$highlightLineMarker&&M){var I=new m(M.row,M.column,M.row,1/0);I.id=E.addMarker(I,"ace_active-line","screenLine"),E.$highlightLineMarker=I}else M&&(E.$highlightLineMarker.start.row=M.row,E.$highlightLineMarker.end.row=M.row,E.$highlightLineMarker.start.column=M.column,E._signal("changeBackMarker"))},T.prototype.onSelectionChange=function(E){var M=this.session;if(M.$selectionMarker&&M.removeMarker(M.$selectionMarker),M.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var I=this.selection.getRange(),N=this.getSelectionStyle();M.$selectionMarker=M.addMarker(I,"ace_selection",N)}var L=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(L),this._signal("changeSelection")},T.prototype.$getSelectionHighLightRegexp=function(){var E=this.session,M=this.getSelectionRange();if(!(M.isEmpty()||M.isMultiLine())){var I=M.start.column,N=M.end.column,L=E.getLine(M.start.row),$=L.substring(I,N);if(!($.length>5e3||!/[\w\d]/.test($))){var P=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:$}),F=L.substring(I-1,N+1);if(P.test(F))return P}}},T.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},T.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},T.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},T.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},T.prototype.onChangeMode=function(E){this.renderer.updateText(),this._emit("changeMode",E)},T.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},T.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},T.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},T.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},T.prototype.getCopyText=function(){var E=this.getSelectedText(),M=this.session.doc.getNewLineCharacter(),I=!1;if(!E&&this.$copyWithEmptySelection){I=!0;for(var N=this.selection.getAllRanges(),L=0;Lu[c].column&&c++,p.unshift(c,0),u.splice.apply(u,p),this.$updateRows()}}},l.prototype.$updateRows=function(){var a=this.session.lineWidgets;if(a){var u=!0;a.forEach(function(c,d){if(c)for(u=!1,c.row=d;c.$oldWidget;)c.$oldWidget.row=d,c=c.$oldWidget}),u&&(this.session.lineWidgets=null)}},l.prototype.$registerLineWidget=function(a){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var u=this.session.lineWidgets[a.row];return u&&(a.$oldWidget=u,u.el&&u.el.parentNode&&(u.el.parentNode.removeChild(u.el),u._inDocument=!1)),this.session.lineWidgets[a.row]=a,a},l.prototype.addLineWidget=function(a){if(this.$registerLineWidget(a),a.session=this.session,!this.editor)return a;var u=this.editor.renderer;a.html&&!a.el&&(a.el=i.createElement("div"),a.el.innerHTML=a.html),a.text&&!a.el&&(a.el=i.createElement("div"),a.el.textContent=a.text),a.el&&(i.addCssClass(a.el,"ace_lineWidgetContainer"),a.className&&i.addCssClass(a.el,a.className),a.el.style.position="absolute",a.el.style.zIndex="5",u.container.appendChild(a.el),a._inDocument=!0,a.coverGutter||(a.el.style.zIndex="3"),a.pixelHeight==null&&(a.pixelHeight=a.el.offsetHeight)),a.rowCount==null&&(a.rowCount=a.pixelHeight/u.layerConfig.lineHeight);var c=this.session.getFoldAt(a.row,0);if(a.$fold=c,c){var d=this.session.lineWidgets;a.row==c.end.row&&!d[c.start.row]?d[c.start.row]=a:a.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:a.row}}}),this.$updateRows(),this.renderWidgets(null,u),this.onWidgetChanged(a),a},l.prototype.removeLineWidget=function(a){if(a._inDocument=!1,a.session=null,a.el&&a.el.parentNode&&a.el.parentNode.removeChild(a.el),a.editor&&a.editor.destroy)try{a.editor.destroy()}catch{}if(this.session.lineWidgets){var u=this.session.lineWidgets[a.row];if(u==a)this.session.lineWidgets[a.row]=a.$oldWidget,a.$oldWidget&&this.onWidgetChanged(a.$oldWidget);else for(;u;){if(u.$oldWidget==a){u.$oldWidget=a.$oldWidget;break}u=u.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:a.row}}}),this.$updateRows()},l.prototype.getWidgetsAtRow=function(a){for(var u=this.session.lineWidgets,c=u&&u[a],d=[];c;)d.push(c),c=c.$oldWidget;return d},l.prototype.onWidgetChanged=function(a){this.session._changedWidgets.push(a),this.editor&&this.editor.renderer.updateFull()},l.prototype.measureWidgets=function(a,u){var c=this.session._changedWidgets,d=u.layerConfig;if(!(!c||!c.length)){for(var h=1/0,p=0;p0&&!d[h];)h--;this.firstRow=c.firstRow,this.lastRow=c.lastRow,u.$cursorLayer.config=c;for(var f=h;f<=p;f++){var g=d[f];if(!(!g||!g.el)){if(g.hidden){g.el.style.top=-100-(g.pixelHeight||0)+"px";continue}g._inDocument||(g._inDocument=!0,u.container.appendChild(g.el));var m=u.$cursorLayer.getPixelPosition({row:f,column:0},!0).top;g.coverLine||(m+=c.lineHeight*this.session.getRowLineCount(g.row)),g.el.style.top=m-c.offset+"px";var v=g.coverGutter?0:u.gutterWidth;g.fixedWidth||(v-=u.scrollLeft),g.el.style.left=v+"px",g.fullWidth&&g.screenWidth&&(g.el.style.minWidth=c.width+2*c.padding+"px"),g.fixedWidth?g.el.style.right=u.scrollBar.getWidth()+"px":g.el.style.right=""}}}},l}();r.LineWidgets=s}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,r,o){var i=n("../lib/keys"),s=n("../mouse/default_gutter_handler").GutterTooltip,l=function(){function u(c){this.editor=c,this.gutterLayer=c.renderer.$gutterLayer,this.element=c.renderer.$gutter,this.lines=c.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new s(this.editor)}return u.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},u.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},u.prototype.$onGutterKeyDown=function(c){if(this.annotationTooltip.isOpen){c.preventDefault(),c.keyCode===i.escape&&this.annotationTooltip.hideTooltip();return}if(c.target===this.element){if(c.keyCode!=i.enter)return;c.preventDefault();var d=this.editor.getCursorPosition().row;this.editor.isRowVisible(d)||this.editor.scrollToLine(d,!0,!0),setTimeout((function(){var h=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),p=this.$findNearestFoldWidget(h),f=this.$findNearestAnnotation(h);if(!(p===null&&f===null)){if(p===null&&f!==null){this.activeRowIndex=f,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(p!==null&&f===null){this.activeRowIndex=p,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(f-h)0||c+d=0&&this.$isFoldWidgetVisible(c-d))return c-d;if(c+d<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(c+d))return c+d}return null},u.prototype.$findNearestAnnotation=function(c){if(this.$isAnnotationVisible(c))return c;for(var d=0;c-d>0||c+d=0&&this.$isAnnotationVisible(c-d))return c-d;if(c+d<=this.lines.getLength()-1&&this.$isAnnotationVisible(c+d))return c+d}return null},u.prototype.$focusFoldWidget=function(c){if(c!=null){var d=this.$getFoldWidget(c);d.classList.add(this.editor.renderer.keyboardFocusClassName),d.focus()}},u.prototype.$focusAnnotation=function(c){if(c!=null){var d=this.$getAnnotation(c);d.classList.add(this.editor.renderer.keyboardFocusClassName),d.focus()}},u.prototype.$blurFoldWidget=function(c){var d=this.$getFoldWidget(c);d.classList.remove(this.editor.renderer.keyboardFocusClassName),d.blur()},u.prototype.$blurAnnotation=function(c){var d=this.$getAnnotation(c);d.classList.remove(this.editor.renderer.keyboardFocusClassName),d.blur()},u.prototype.$moveFoldWidgetUp=function(){for(var c=this.activeRowIndex;c>0;)if(c--,this.$isFoldWidgetVisible(c)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=c,this.$focusFoldWidget(this.activeRowIndex);return}},u.prototype.$moveFoldWidgetDown=function(){for(var c=this.activeRowIndex;c0;)if(c--,this.$isAnnotationVisible(c)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=c,this.$focusAnnotation(this.activeRowIndex);return}},u.prototype.$moveAnnotationDown=function(){for(var c=this.activeRowIndex;c=A.length&&(A=void 0),{value:A&&A[I++],done:!A}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")},s=n("./lib/oop"),l=n("./lib/dom"),a=n("./lib/lang"),u=n("./lib/useragent"),c=n("./keyboard/textinput").TextInput,d=n("./mouse/mouse_handler").MouseHandler,h=n("./mouse/fold_handler").FoldHandler,p=n("./keyboard/keybinding").KeyBinding,f=n("./edit_session").EditSession,g=n("./search").Search,m=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,b=n("./commands/default_commands").commands,x=n("./config"),k=n("./token_iterator").TokenIterator,w=n("./line_widgets").LineWidgets,S=n("./keyboard/gutter_handler").GutterKeyboardHandler,T=n("./config").nls,C=n("./clipboard"),O=n("./lib/keys"),R=function(){function A(E,M,I){this.session,this.$toDestroy=[];var N=E.getContainerElement();this.container=N,this.renderer=E,this.id="editor"+ ++A.$uid,this.commands=new y(u.isMac?"mac":"win",b),typeof document=="object"&&(this.textInput=new c(E.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new d(this),new h(this)),this.keyBinding=new p(this),this.$search=new g().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=a.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(L,$){$._$emitInputEvent.schedule(31)}),this.setSession(M||I&&I.session||new f("")),x.resetOptions(this),I&&this.setOptions(I),x._signal("editor",this)}return A.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=a.delayedCall(this.endOperation.bind(this,!0)),this.on("change",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}).bind(this),!0),this.on("changeSelection",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}).bind(this),!0)},A.prototype.startOperation=function(E){if(this.curOp){if(!E||this.curOp.command)return;this.prevOp=this.curOp}E||(this.previousCommand=null,E={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:E.command||{},args:E.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},A.prototype.endOperation=function(E){if(this.curOp&&this.session){if(E&&E.returnValue===!1||!this.session)return this.curOp=null;if(E==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var M=this.curOp.command,I=M&&M.scrollIntoView;if(I){switch(I){case"center-animate":I="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var N=this.selection.getRange(),L=this.renderer.layerConfig;(N.start.row>=L.lastRow||N.end.row<=L.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}I=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var $=this.selection.toJSON();this.curOp.selectionAfter=$,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection($),this.prevOp=this.curOp,this.curOp=null}},A.prototype.$historyTracker=function(E){if(this.$mergeUndoDeltas){var M=this.prevOp,I=this.$mergeableCommands,N=M.command&&E.command.name==M.command.name;if(E.command.name=="insertstring"){var L=E.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),N=N&&this.mergeNextCommand&&(!/\s/.test(L)||/\s/.test(M.args)),this.mergeNextCommand=!0}else N=N&&I.indexOf(E.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(N=!1),N?this.session.mergeUndoDeltas=!0:I.indexOf(E.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},A.prototype.setKeyboardHandler=function(E,M){if(E&&typeof E=="string"&&E!="ace"){this.$keybindingId=E;var I=this;x.loadModule(["keybinding",E],function(N){I.$keybindingId==E&&I.keyBinding.setKeyboardHandler(N&&N.handler),M&&M()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(E),M&&M()},A.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},A.prototype.setSession=function(E){if(this.session!=E){this.curOp&&this.endOperation(),this.curOp={};var M=this.session;if(M){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var I=this.session.getSelection();I.off("changeCursor",this.$onCursorChange),I.off("changeSelection",this.$onSelectionChange)}this.session=E,E?(this.$onDocumentChange=this.onDocumentChange.bind(this),E.on("change",this.$onDocumentChange),this.renderer.setSession(E),this.$onChangeMode=this.onChangeMode.bind(this),E.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),E.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),E.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),E.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),E.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),E.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=E.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(E)),this._signal("changeSession",{session:E,oldSession:M}),this.curOp=null,M&&M._signal("changeEditor",{oldEditor:this}),E&&E._signal("changeEditor",{editor:this}),E&&!E.destroyed&&E.bgTokenizer.scheduleStart()}},A.prototype.getSession=function(){return this.session},A.prototype.setValue=function(E,M){return this.session.doc.setValue(E),M?M==1?this.navigateFileEnd():M==-1&&this.navigateFileStart():this.selectAll(),E},A.prototype.getValue=function(){return this.session.getValue()},A.prototype.getSelection=function(){return this.selection},A.prototype.resize=function(E){this.renderer.onResize(E)},A.prototype.setTheme=function(E,M){this.renderer.setTheme(E,M)},A.prototype.getTheme=function(){return this.renderer.getTheme()},A.prototype.setStyle=function(E){this.renderer.setStyle(E)},A.prototype.unsetStyle=function(E){this.renderer.unsetStyle(E)},A.prototype.getFontSize=function(){return this.getOption("fontSize")||l.computedStyle(this.container).fontSize},A.prototype.setFontSize=function(E){this.setOption("fontSize",E)},A.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var E=this;this.$highlightPending=!0,setTimeout(function(){E.$highlightPending=!1;var M=E.session;if(!(!M||M.destroyed)){M.$bracketHighlight&&(M.$bracketHighlight.markerIds.forEach(function(B){M.removeMarker(B)}),M.$bracketHighlight=null);var I=E.getCursorPosition(),N=E.getKeyboardHandler(),L=N&&N.$getDirectionForHighlight&&N.$getDirectionForHighlight(E),$=M.getMatchingBracketRanges(I,L);if(!$){var P=new k(M,I.row,I.column),F=P.getCurrentToken();if(F&&/\b(?:tag-open|tag-name)/.test(F.type)){var H=M.getMatchingTags(I);H&&($=[H.openTagName,H.closeTagName])}}if(!$&&M.$mode.getMatching&&($=M.$mode.getMatching(E.session)),!$){E.getHighlightIndentGuides()&&E.renderer.$textLayer.$highlightIndentGuide();return}var W="ace_bracket";Array.isArray($)?$.length==1&&(W="ace_error_bracket"):$=[$],$.length==2&&(m.comparePoints($[0].end,$[1].start)==0?$=[m.fromPoints($[0].start,$[1].end)]:m.comparePoints($[0].start,$[1].end)==0&&($=[m.fromPoints($[1].start,$[0].end)])),M.$bracketHighlight={ranges:$,markerIds:$.map(function(B){return M.addMarker(B,W,"text")})},E.getHighlightIndentGuides()&&E.renderer.$textLayer.$highlightIndentGuide()}},50)}},A.prototype.focus=function(){this.textInput.focus()},A.prototype.isFocused=function(){return this.textInput.isFocused()},A.prototype.blur=function(){this.textInput.blur()},A.prototype.onFocus=function(E){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",E))},A.prototype.onBlur=function(E){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",E))},A.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},A.prototype.onDocumentChange=function(E){var M=this.session.$useWrapMode,I=E.start.row==E.end.row?E.end.row:1/0;this.renderer.updateLines(E.start.row,I,M),this._signal("change",E),this.$cursorChange()},A.prototype.onTokenizerUpdate=function(E){var M=E.data;this.renderer.updateLines(M.first,M.last)},A.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},A.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},A.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},A.prototype.$updateHighlightActiveLine=function(){var E=this.getSession(),M;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(M=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(M=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(M=!1)),E.$highlightLineMarker&&!M)E.removeMarker(E.$highlightLineMarker.id),E.$highlightLineMarker=null;else if(!E.$highlightLineMarker&&M){var I=new m(M.row,M.column,M.row,1/0);I.id=E.addMarker(I,"ace_active-line","screenLine"),E.$highlightLineMarker=I}else M&&(E.$highlightLineMarker.start.row=M.row,E.$highlightLineMarker.end.row=M.row,E.$highlightLineMarker.start.column=M.column,E._signal("changeBackMarker"))},A.prototype.onSelectionChange=function(E){var M=this.session;if(M.$selectionMarker&&M.removeMarker(M.$selectionMarker),M.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var I=this.selection.getRange(),N=this.getSelectionStyle();M.$selectionMarker=M.addMarker(I,"ace_selection",N)}var L=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(L),this._signal("changeSelection")},A.prototype.$getSelectionHighLightRegexp=function(){var E=this.session,M=this.getSelectionRange();if(!(M.isEmpty()||M.isMultiLine())){var I=M.start.column,N=M.end.column,L=E.getLine(M.start.row),$=L.substring(I,N);if(!($.length>5e3||!/[\w\d]/.test($))){var P=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:$}),F=L.substring(I-1,N+1);if(P.test(F))return P}}},A.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},A.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},A.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},A.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},A.prototype.onChangeMode=function(E){this.renderer.updateText(),this._emit("changeMode",E)},A.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},A.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},A.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},A.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},A.prototype.getCopyText=function(){var E=this.getSelectedText(),M=this.session.doc.getNewLineCharacter(),I=!1;if(!E&&this.$copyWithEmptySelection){I=!0;for(var N=this.selection.getAllRanges(),L=0;LB.search(/\S|$/)){var F=B.substr(L.column).search(/\S|$/);I.doc.removeInLine(L.row,L.column,L.column+F)}}this.clearSelection();var H=L.column,W=I.getState(L.row),B=I.getLine(L.row),U=N.checkOutdent(W,B,E);if(I.insert(L,E),$&&$.selection&&($.selection.length==2?this.selection.setSelectionRange(new m(L.row,H+$.selection[0],L.row,H+$.selection[1])):this.selection.setSelectionRange(new m(L.row+$.selection[0],$.selection[1],L.row+$.selection[2],$.selection[3]))),this.$enableAutoIndent){if(I.getDocument().isNewLine(E)){var G=N.getNextLineIndent(W,B.slice(0,L.column),I.getTabString());I.insert({row:L.row+1,column:0},G)}U&&N.autoOutdent(W,I,L.row)}},T.prototype.autoIndent=function(){for(var E=this.session,M=E.getMode(),I=this.selection.isEmpty()?[new m(0,0,E.doc.getLength()-1,0)]:this.selection.getAllRanges(),N="",L="",$="",P=E.getTabString(),F=0;F0&&(N=E.getState(B-1),L=E.getLine(B-1),$=M.getNextLineIndent(N,L,P));var U=E.getLine(B),G=M.$getIndent(U);if($!==G){if(G.length>0){var Y=new m(B,0,B,G.length);E.remove(Y)}$.length>0&&E.insert({row:B,column:0},$)}M.autoOutdent(N,E,B)}},T.prototype.onTextInput=function(E,M){if(!M)return this.keyBinding.onTextInput(E);this.startOperation({command:{name:"insertstring"}});var I=this.applyComposition.bind(this,E,M);this.selection.rangeCount?this.forEachSelection(I):I(),this.endOperation()},T.prototype.applyComposition=function(E,M){if(M.extendLeft||M.extendRight){var I=this.selection.getRange();I.start.column-=M.extendLeft,I.end.column+=M.extendRight,I.start.column<0&&(I.start.row--,I.start.column+=this.session.getLine(I.start.row).length+1),this.selection.setRange(I),!E&&!I.isEmpty()&&this.remove()}if((E||!this.selection.isEmpty())&&this.insert(E,!0),M.restoreStart||M.restoreEnd){var I=this.selection.getRange();I.start.column-=M.restoreStart,I.end.column-=M.restoreEnd,this.selection.setRange(I)}},T.prototype.onCommandKey=function(E,M,I){return this.keyBinding.onCommandKey(E,M,I)},T.prototype.setOverwrite=function(E){this.session.setOverwrite(E)},T.prototype.getOverwrite=function(){return this.session.getOverwrite()},T.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},T.prototype.setScrollSpeed=function(E){this.setOption("scrollSpeed",E)},T.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},T.prototype.setDragDelay=function(E){this.setOption("dragDelay",E)},T.prototype.getDragDelay=function(){return this.getOption("dragDelay")},T.prototype.setSelectionStyle=function(E){this.setOption("selectionStyle",E)},T.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},T.prototype.setHighlightActiveLine=function(E){this.setOption("highlightActiveLine",E)},T.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},T.prototype.setHighlightGutterLine=function(E){this.setOption("highlightGutterLine",E)},T.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},T.prototype.setHighlightSelectedWord=function(E){this.setOption("highlightSelectedWord",E)},T.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},T.prototype.setAnimatedScroll=function(E){this.renderer.setAnimatedScroll(E)},T.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},T.prototype.setShowInvisibles=function(E){this.renderer.setShowInvisibles(E)},T.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},T.prototype.setDisplayIndentGuides=function(E){this.renderer.setDisplayIndentGuides(E)},T.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},T.prototype.setHighlightIndentGuides=function(E){this.renderer.setHighlightIndentGuides(E)},T.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},T.prototype.setShowPrintMargin=function(E){this.renderer.setShowPrintMargin(E)},T.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},T.prototype.setPrintMarginColumn=function(E){this.renderer.setPrintMarginColumn(E)},T.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},T.prototype.setReadOnly=function(E){this.setOption("readOnly",E)},T.prototype.getReadOnly=function(){return this.getOption("readOnly")},T.prototype.setBehavioursEnabled=function(E){this.setOption("behavioursEnabled",E)},T.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},T.prototype.setWrapBehavioursEnabled=function(E){this.setOption("wrapBehavioursEnabled",E)},T.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},T.prototype.setShowFoldWidgets=function(E){this.setOption("showFoldWidgets",E)},T.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},T.prototype.setFadeFoldWidgets=function(E){this.setOption("fadeFoldWidgets",E)},T.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},T.prototype.remove=function(E){this.selection.isEmpty()&&(E=="left"?this.selection.selectLeft():this.selection.selectRight());var M=this.getSelectionRange();if(this.getBehavioursEnabled()){var I=this.session,N=I.getState(M.start.row),L=I.getMode().transformAction(N,"deletion",this,I,M);if(M.end.column===0){var $=I.getTextRange(M);if($[$.length-1]==` -`){var P=I.getLine(M.end.row);/^\s+$/.test(P)&&(M.end.column=P.length)}}L&&(M=L)}this.session.remove(M),this.clearSelection()},T.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},T.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},T.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},T.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var E=this.getSelectionRange();E.start.column==E.end.column&&E.start.row==E.end.row&&(E.end.column=0,E.end.row++),this.session.remove(E),this.clearSelection()},T.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var E=this.getCursorPosition();this.insert(` -`),this.moveCursorToPosition(E)},T.prototype.setGhostText=function(E,M){this.session.widgetManager||(this.session.widgetManager=new w(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(E,M)},T.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},T.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var E=this.getCursorPosition(),M=E.column;if(M!==0){var I=this.session.getLine(E.row),N,L;MF.toLowerCase()?1:0});for(var L=new m(0,0,0,0),N=E.first;N<=E.last;N++){var $=M.getLine(N);L.start.row=N,L.end.row=N,L.end.column=$.length,M.replace(L,I[N-E.first])}},T.prototype.toggleCommentLines=function(){var E=this.session.getState(this.getCursorPosition().row),M=this.$getSelectedRows();this.session.getMode().toggleCommentLines(E,this.session,M.first,M.last)},T.prototype.toggleBlockComment=function(){var E=this.getCursorPosition(),M=this.session.getState(E.row),I=this.getSelectionRange();this.session.getMode().toggleBlockComment(M,this.session,I,E)},T.prototype.getNumberAt=function(E,M){var I=/[\-]?[0-9]+(?:\.[0-9]+)?/g;I.lastIndex=0;for(var N=this.session.getLine(E);I.lastIndex=M){var $={value:L[0],start:L.index,end:L.index+L[0].length};return $}}return null},T.prototype.modifyNumber=function(E){var M=this.selection.getCursor().row,I=this.selection.getCursor().column,N=new m(M,I-1,M,I),L=this.session.getTextRange(N);if(!isNaN(parseFloat(L))&&isFinite(L)){var $=this.getNumberAt(M,I);if($){var P=$.value.indexOf(".")>=0?$.start+$.value.indexOf(".")+1:$.end,F=$.start+$.value.length-P,H=parseFloat($.value);H*=Math.pow(10,F),P!==$.end&&I=P&&$<=F&&(I=de,H.selection.clearSelection(),H.moveCursorTo(E,P+N),H.selection.selectTo(E,F+N)),P=F});for(var W=this.$toggleWordPairs,B,U=0;U=F&&P<=H&&G.match(/((?:https?|ftp):\/\/[\S]+)/)){W=G.replace(/[\s:.,'";}\]]+$/,"");break}F=H}}catch(Y){I={error:Y}}finally{try{U&&!U.done&&(N=B.return)&&N.call(B)}finally{if(I)throw I.error}}return W},T.prototype.openLink=function(){var E=this.selection.getCursor(),M=this.findLinkAt(E.row,E.column);return M&&window.open(M,"_blank"),M!=null},T.prototype.removeLines=function(){var E=this.$getSelectedRows();this.session.removeFullLines(E.first,E.last),this.clearSelection()},T.prototype.duplicateSelection=function(){var E=this.selection,M=this.session,I=E.getRange(),N=E.isBackwards();if(I.isEmpty()){var L=I.start.row;M.duplicateLines(L,L)}else{var $=N?I.start:I.end,P=M.insert($,M.getTextRange(I));I.start=$,I.end=P,E.setSelectionRange(I,N)}},T.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},T.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},T.prototype.moveText=function(E,M,I){return this.session.moveText(E,M,I)},T.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},T.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},T.prototype.$moveLines=function(E,M){var I,N,L=this.selection;if(!L.inMultiSelectMode||this.inVirtualSelectionMode){var $=L.toOrientedRange();I=this.$getSelectedRows($),N=this.session.$moveLines(I.first,I.last,M?0:E),M&&E==-1&&(N=0),$.moveBy(N,0),L.fromOrientedRange($)}else{var P=L.rangeList.ranges;L.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var F=0,H=0,W=P.length,B=0;BY+1)break;Y=X.last}for(B--,F=this.session.$moveLines(G,Y,M?0:E),M&&E==-1&&(U=B+1);U<=B;)P[U].moveBy(F,0),U++;M||(F=0),H+=F}L.fromOrientedRange(L.ranges[0]),L.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},T.prototype.$getSelectedRows=function(E){return E=(E||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(E.start.row),last:this.session.getRowFoldEnd(E.end.row)}},T.prototype.onCompositionStart=function(E){this.renderer.showComposition(E)},T.prototype.onCompositionUpdate=function(E){this.renderer.setCompositionText(E)},T.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},T.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},T.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},T.prototype.isRowVisible=function(E){return E>=this.getFirstVisibleRow()&&E<=this.getLastVisibleRow()},T.prototype.isRowFullyVisible=function(E){return E>=this.renderer.getFirstFullyVisibleRow()&&E<=this.renderer.getLastFullyVisibleRow()},T.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},T.prototype.$moveByPage=function(E,M){var I=this.renderer,N=this.renderer.layerConfig,L=E*Math.floor(N.height/N.lineHeight);M===!0?this.selection.$moveSelection(function(){this.moveCursorBy(L,0)}):M===!1&&(this.selection.moveCursorBy(L,0),this.selection.clearSelection());var $=I.scrollTop;I.scrollBy(0,L*N.lineHeight),M!=null&&I.scrollCursorIntoView(null,.5),I.animateScrolling($)},T.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},T.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},T.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},T.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},T.prototype.scrollPageDown=function(){this.$moveByPage(1)},T.prototype.scrollPageUp=function(){this.$moveByPage(-1)},T.prototype.scrollToRow=function(E){this.renderer.scrollToRow(E)},T.prototype.scrollToLine=function(E,M,I,N){this.renderer.scrollToLine(E,M,I,N)},T.prototype.centerSelection=function(){var E=this.getSelectionRange(),M={row:Math.floor(E.start.row+(E.end.row-E.start.row)/2),column:Math.floor(E.start.column+(E.end.column-E.start.column)/2)};this.renderer.alignCursor(M,.5)},T.prototype.getCursorPosition=function(){return this.selection.getCursor()},T.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},T.prototype.getSelectionRange=function(){return this.selection.getRange()},T.prototype.selectAll=function(){this.selection.selectAll()},T.prototype.clearSelection=function(){this.selection.clearSelection()},T.prototype.moveCursorTo=function(E,M){this.selection.moveCursorTo(E,M)},T.prototype.moveCursorToPosition=function(E){this.selection.moveCursorToPosition(E)},T.prototype.jumpToMatching=function(E,M){var I=this.getCursorPosition(),N=new k(this.session,I.row,I.column),L=N.getCurrentToken(),$=0;L&&L.type.indexOf("tag-name")!==-1&&(L=N.stepBackward());var P=L||N.stepForward();if(P){var F,H=!1,W={},B=I.column-P.start,U,G={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(P.value.match(/[{}()\[\]]/g)){for(;B1?W[P.value]++:L.value==="=0;--$)this.$tryReplace(I[$],E)&&N++;return this.selection.setSelectionRange(L),N},T.prototype.$tryReplace=function(E,M){var I=this.session.getTextRange(E);return M=this.$search.replace(I,M),M!==null?(E.end=this.session.replace(E,M),E):null},T.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},T.prototype.find=function(E,M,I){M||(M={}),typeof E=="string"||E instanceof RegExp?M.needle=E:typeof E=="object"&&s.mixin(M,E);var N=this.selection.getRange();M.needle==null&&(E=this.session.getTextRange(N)||this.$search.$options.needle,E||(N=this.session.getWordRange(N.start.row,N.start.column),E=this.session.getTextRange(N)),this.$search.set({needle:E})),this.$search.set(M),M.start||this.$search.set({start:N});var L=this.$search.find(this.session);if(M.preventScroll)return L;if(L)return this.revealRange(L,I),L;M.backwards?N.start=N.end:N.end=N.start,this.selection.setRange(N)},T.prototype.findNext=function(E,M){this.find({skipCurrent:!0,backwards:!1},E,M)},T.prototype.findPrevious=function(E,M){this.find(E,{skipCurrent:!0,backwards:!0},M)},T.prototype.revealRange=function(E,M){this.session.unfold(E),this.selection.setSelectionRange(E);var I=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(E.start,E.end,.5),M!==!1&&this.renderer.animateScrolling(I)},T.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},T.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},T.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(E){E.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},T.prototype.setAutoScrollEditorIntoView=function(E){if(E){var M,I=this,N=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var L=this.$scrollAnchor;L.style.cssText="position:absolute",this.container.insertBefore(L,this.container.firstChild);var $=this.on("changeSelection",function(){N=!0}),P=this.renderer.on("beforeRender",function(){N&&(M=I.renderer.container.getBoundingClientRect())}),F=this.renderer.on("afterRender",function(){if(N&&M&&(I.isFocused()||I.searchBox&&I.searchBox.isFocused())){var H=I.renderer,W=H.$cursorLayer.$pixelPos,B=H.layerConfig,U=W.top-B.offset;W.top>=0&&U+M.top<0?N=!0:W.topwindow.innerHeight?N=!1:N=null,N!=null&&(L.style.top=U+"px",L.style.left=W.left+"px",L.style.height=B.lineHeight+"px",L.scrollIntoView(N)),N=M=null}});this.setAutoScrollEditorIntoView=function(H){H||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",$),this.renderer.off("afterRender",F),this.renderer.off("beforeRender",P))}}},T.prototype.$resetCursorStyle=function(){var E=this.$cursorStyle||"ace",M=this.renderer.$cursorLayer;M&&(M.setSmoothBlinking(/smooth/.test(E)),M.isBlinking=!this.$readOnly&&E!="wide",l.setCssClass(M.element,"ace_slim-cursors",/slim/.test(E)))},T.prototype.prompt=function(E,M,I){var N=this;x.loadModule("ace/ext/prompt",function(L){L.prompt(N,E,M,I)})},T}();R.$uid=0,R.prototype.curOp=null,R.prototype.prevOp={},R.prototype.$mergeableCommands=["backspace","del","insertstring"],R.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],s.implement(R.prototype,v),x.defineOptions(R.prototype,"editor",{selectionStyle:{set:function(T){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:T})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(T){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(T){this.textInput.setReadOnly(T),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(T){this.textInput.setCopyWithEmptySelection(T)},initialValue:!1},cursorStyle:{set:function(T){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(T){this.setAutoScrollEditorIntoView(T)}},keyboardHandler:{set:function(T){this.setKeyboardHandler(T)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(T){this.session.setValue(T)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(T){this.setSession(T)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(T){this.renderer.$gutterLayer.setShowLineNumbers(T),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),T&&this.$relativeLineNumbers?_.attach(this):_.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(T){this.$showLineNumbers&&T?_.attach(this):_.detach(this)}},placeholder:{set:function(T){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var E=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(E&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),l.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!E&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),l.addCssClass(this.container,"ace_hasPlaceholder");var M=l.createElement("div");M.className="ace_placeholder",M.textContent=this.$placeholder||"",this.renderer.placeholderNode=M,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!E&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(T){var E={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(N){N.blur(),N.renderer.scroller.focus()},readOnly:!0},M=function(N){if(N.target==this.renderer.scroller&&N.keyCode===O.enter){N.preventDefault();var L=this.getCursorPosition().row;this.isRowVisible(L)||this.scrollToLine(L,!0,!0),this.focus()}},I;T?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(u.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",A("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",A("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",M.bind(this)),this.commands.addCommand(E),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",A("editor")),this.renderer.$gutter.setAttribute("aria-label",A("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),I||(I=new S(this)),I.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",M.bind(this)),this.commands.removeCommand(E),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),I&&I.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var _={getText:function(T,E){return(Math.abs(T.selection.lead.row-E)||E+1+(E<9?"·":""))+""},getWidth:function(T,E,M){return Math.max(E.toString().length,(M.lastRow+1).toString().length,2)*M.characterWidth},update:function(T,E){E.renderer.$loop.schedule(E.renderer.CHANGE_GUTTER)},attach:function(T){T.renderer.$gutterLayer.$renderer=this,T.on("changeSelection",this.update),this.update(null,T)},detach:function(T){T.renderer.$gutterLayer.$renderer==this&&(T.renderer.$gutterLayer.$renderer=null),T.off("changeSelection",this.update),this.update(null,T)}};r.Editor=R}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,r,o){var i=n("../lib/dom"),s=function(){function l(a,u){this.element=a,this.canvasHeight=u||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return l.prototype.moveContainer=function(a){i.translate(this.element,0,-(a.firstRowScreen*a.lineHeight%this.canvasHeight)-a.offset*this.$offsetCoefficient)},l.prototype.pageChanged=function(a,u){return Math.floor(a.firstRowScreen*a.lineHeight/this.canvasHeight)!==Math.floor(u.firstRowScreen*u.lineHeight/this.canvasHeight)},l.prototype.computeLineTop=function(a,u,c){var d=u.firstRowScreen*u.lineHeight,h=Math.floor(d/this.canvasHeight),p=c.documentToScreenRow(a,0)*u.lineHeight;return p-h*this.canvasHeight},l.prototype.computeLineHeight=function(a,u,c){return u.lineHeight*c.getRowLineCount(a)},l.prototype.getLength=function(){return this.cells.length},l.prototype.get=function(a){return this.cells[a]},l.prototype.shift=function(){this.$cacheCell(this.cells.shift())},l.prototype.pop=function(){this.$cacheCell(this.cells.pop())},l.prototype.push=function(a){if(Array.isArray(a)){this.cells.push.apply(this.cells,a);for(var u=i.createFragment(this.element),c=0;cb&&(w=y.end.row+1,y=g.getNextFoldLine(w,y),b=y?y.start.row:1/0),w>v){for(;this.$lines.getLength()>k+1;)this.$lines.pop();break}x=this.$lines.get(++k),x?x.row=w:(x=this.$lines.createCell(w,f,this.session,h),this.$lines.push(x)),this.$renderCell(x,f,y,w),w++}this._signal("afterRender"),this.$updateGutterWidth(f)},p.prototype.$updateGutterWidth=function(f){var g=this.session,m=g.gutterRenderer||this.$renderer,v=g.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||g.$useWrapMode)&&(y=g.getLength()+v-1);var b=m?m.getWidth(g,y,f):y.toString().length*f.characterWidth,x=this.$padding||this.$computePadding();b+=x.left+x.right,b!==this.gutterWidth&&!isNaN(b)&&(this.gutterWidth=b,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",b))},p.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var f=this.session.selection.getCursor();this.$cursorRow!==f.row&&(this.$cursorRow=f.row)}},p.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var f=this.session.selection.cursor.row;if(this.$cursorRow=f,!(this.$cursorCell&&this.$cursorCell.row==f)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var g=this.$lines.cells;this.$cursorCell=null;for(var m=0;m=this.$cursorRow){if(v.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(m>0&&y&&y.start.row==g[m-1].row)v=g[m-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},p.prototype.scrollLines=function(f){var g=this.config;if(this.config=f,this.$updateCursorRow(),this.$lines.pageChanged(g,f))return this.update(f);this.$lines.moveContainer(f);var m=Math.min(f.lastRow+f.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!g||v0;y--)this.$lines.shift();if(v>m)for(var y=this.session.getFoldedRowCount(m+1,v);y>0;y--)this.$lines.pop();f.firstRowv&&this.$lines.push(this.$renderLines(f,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(f)},p.prototype.$renderLines=function(f,g,m){for(var v=[],y=g,b=this.session.getNextFoldLine(y),x=b?b.start.row:1/0;y>x&&(y=b.end.row+1,b=this.session.getNextFoldLine(y,b),x=b?b.start.row:1/0),!(y>m);){var k=this.$lines.createCell(y,f,this.session,h);this.$renderCell(k,f,b,y),v.push(k),y++}return v},p.prototype.$renderCell=function(f,g,m,v){var y=f.element,b=this.session,x=y.childNodes[0],k=y.childNodes[1],w=y.childNodes[2],S=w.firstChild,A=b.$firstLineNumber,C=b.$breakpoints,O=b.$decorations,R=b.gutterRenderer||this.$renderer,_=this.$showFoldWidgets&&b.foldWidgets,T=m?m.start.row:Number.MAX_VALUE,E=g.lineHeight+"px",M=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",I=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",N=(R?R.getText(b,v):v+A).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v=T&&this.$cursorRow<=m.end.row)&&(M+="ace_gutter-active-line ",this.$cursorCell!=f&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=f)),C[v]&&(M+=C[v]),O[v]&&(M+=O[v]),this.$annotations[v]&&v!==T&&(M+=this.$annotations[v].className),_){var L=_[v];L==null&&(L=_[v]=b.getFoldWidget(v))}if(L){var $="ace_fold-widget ace_"+L,P=L=="start"&&v==T&&vm.right-g.right)return"foldWidgets"},p}();d.prototype.$fixedWidth=!1,d.prototype.$highlightGutterLine=!0,d.prototype.$renderer="",d.prototype.$showLineNumbers=!0,d.prototype.$showFoldWidgets=!0,s.implement(d.prototype,a);function h(p){var f=document.createTextNode("");p.appendChild(f);var g=i.createElement("span");p.appendChild(g);var m=i.createElement("span");p.appendChild(m);var v=i.createElement("span");return m.appendChild(v),p}r.Gutter=d}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,r,o){var i=n("../range").Range,s=n("../lib/dom"),l=function(){function u(c){this.element=s.createElement("div"),this.element.className="ace_layer ace_marker-layer",c.appendChild(this.element)}return u.prototype.setPadding=function(c){this.$padding=c},u.prototype.setSession=function(c){this.session=c},u.prototype.setMarkers=function(c){this.markers=c},u.prototype.elt=function(c,d){var h=this.i!=-1&&this.element.childNodes[this.i];h?this.i++:(h=document.createElement("div"),this.element.appendChild(h),this.i=-1),h.style.cssText=d,h.className=c},u.prototype.update=function(c){if(c){this.config=c,this.i=0;var d;for(var h in this.markers){var p=this.markers[h];if(!p.range){p.update(d,this,this.session,c);continue}var f=p.range.clipRows(c.firstRow,c.lastRow);if(!f.isEmpty())if(f=f.toScreenRange(this.session),p.renderer){var g=this.$getTop(f.start.row,c),m=this.$padding+f.start.column*c.characterWidth;p.renderer(d,f,m,g,c)}else p.type=="fullLine"?this.drawFullLineMarker(d,f,p.clazz,c):p.type=="screenLine"?this.drawScreenLineMarker(d,f,p.clazz,c):f.isMultiLine()?p.type=="text"?this.drawTextMarker(d,f,p.clazz,c):this.drawMultiLineMarker(d,f,p.clazz,c):this.drawSingleLineMarker(d,f,p.clazz+" ace_start ace_br15",c)}if(this.i!=-1)for(;this.ik,y==v),p,y==v?0:1,f)},u.prototype.drawMultiLineMarker=function(c,d,h,p,f){var g=this.$padding,m=p.lineHeight,v=this.$getTop(d.start.row,p),y=g+d.start.column*p.characterWidth;if(f=f||"",this.session.$bidiHandler.isBidiRow(d.start.row)){var b=d.clone();b.end.row=b.start.row,b.end.column=this.session.getLine(b.start.row).length,this.drawBidiSingleLineMarker(c,b,h+" ace_br1 ace_start",p,null,f)}else this.elt(h+" ace_br1 ace_start","height:"+m+"px;right:0;top:"+v+"px;left:"+y+"px;"+(f||""));if(this.session.$bidiHandler.isBidiRow(d.end.row)){var b=d.clone();b.start.row=b.end.row,b.start.column=0,this.drawBidiSingleLineMarker(c,b,h+" ace_br12",p,null,f)}else{v=this.$getTop(d.end.row,p);var x=d.end.column*p.characterWidth;this.elt(h+" ace_br12","height:"+m+"px;width:"+x+"px;top:"+v+"px;left:"+g+"px;"+(f||""))}if(m=(d.end.row-d.start.row-1)*p.lineHeight,!(m<=0)){v=this.$getTop(d.start.row+1,p);var k=(d.start.column?1:0)|(d.end.column?0:8);this.elt(h+(k?" ace_br"+k:""),"height:"+m+"px;right:0;top:"+v+"px;left:"+g+"px;"+(f||""))}},u.prototype.drawSingleLineMarker=function(c,d,h,p,f,g){if(this.session.$bidiHandler.isBidiRow(d.start.row))return this.drawBidiSingleLineMarker(c,d,h,p,f,g);var m=p.lineHeight,v=(d.end.column+(f||0)-d.start.column)*p.characterWidth,y=this.$getTop(d.start.row,p),b=this.$padding+d.start.column*p.characterWidth;this.elt(h,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+b+"px;"+(g||""))},u.prototype.drawBidiSingleLineMarker=function(c,d,h,p,f,g){var m=p.lineHeight,v=this.$getTop(d.start.row,p),y=this.$padding,b=this.session.$bidiHandler.getSelections(d.start.column,d.end.column);b.forEach(function(x){this.elt(h,"height:"+m+"px;width:"+(x.width+(f||0))+"px;top:"+v+"px;left:"+(y+x.left)+"px;"+(g||""))},this)},u.prototype.drawFullLineMarker=function(c,d,h,p,f){var g=this.$getTop(d.start.row,p),m=p.lineHeight;d.start.row!=d.end.row&&(m+=this.$getTop(d.end.row,p)-g),this.elt(h,"height:"+m+"px;top:"+g+"px;left:0;right:0;"+(f||""))},u.prototype.drawScreenLineMarker=function(c,d,h,p,f){var g=this.$getTop(d.start.row,p),m=p.lineHeight;this.elt(h,"height:"+m+"px;top:"+g+"px;left:0;right:0;"+(f||""))},u}();l.prototype.$padding=0;function a(u,c,d,h){return(u?1:0)|(c?2:0)|(d?4:0)|(h?8:0)}r.Marker=l}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,r,o){var i=new Set(["text","rparen","lparen"]);r.isTextToken=function(s){return i.has(s)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(n,r,o){var i=n("../lib/oop"),s=n("../lib/dom"),l=n("../lib/lang"),a=n("./lines").Lines,u=n("../lib/event_emitter").EventEmitter,c=n("../config").nls,d=n("./text_util").isTextToken,h=function(){function p(f){this.dom=s,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",f.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)}return p.prototype.$updateEolChar=function(){var f=this.session.doc,g=f.getNewLineCharacter()==` -`&&f.getNewLineMode()!="windows",m=g?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},p.prototype.setPadding=function(f){this.$padding=f,this.element.style.margin="0 "+f+"px"},p.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},p.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},p.prototype.$setFontMetrics=function(f){this.$fontMetrics=f,this.$fontMetrics.on("changeCharacterSize",(function(g){this._signal("changeCharacterSize",g)}).bind(this)),this.$pollSizeChanges()},p.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},p.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},p.prototype.setSession=function(f){this.session=f,f&&this.$computeTabString()},p.prototype.setShowInvisibles=function(f){return this.showInvisibles==f?!1:(this.showInvisibles=f,typeof f=="string"?(this.showSpaces=/tab/i.test(f),this.showTabs=/space/i.test(f),this.showEOL=/eol/i.test(f)):this.showSpaces=this.showTabs=this.showEOL=f,this.$computeTabString(),!0)},p.prototype.setDisplayIndentGuides=function(f){return this.displayIndentGuides==f?!1:(this.displayIndentGuides=f,this.$computeTabString(),!0)},p.prototype.setHighlightIndentGuides=function(f){return this.$highlightIndentGuides===f?!1:(this.$highlightIndentGuides=f,f)},p.prototype.$computeTabString=function(){var f=this.session.getTabSize();this.tabSize=f;for(var g=this.$tabStrings=[0],m=1;mA&&(w=S.end.row+1,S=this.session.getNextFoldLine(w,S),A=S?S.start.row:1/0),!(w>y);){var C=b[x++];if(C){this.dom.removeChildren(C),this.$renderLine(C,w,w==A?S:!1),k&&(C.style.top=this.$lines.computeLineTop(w,f,this.session)+"px");var O=f.lineHeight*this.session.getRowLength(w)+"px";C.style.height!=O&&(k=!0,C.style.height=O)}w++}if(k)for(;x0;y--)this.$lines.shift();if(g.lastRow>f.lastRow)for(var y=this.session.getFoldedRowCount(f.lastRow+1,g.lastRow);y>0;y--)this.$lines.pop();f.firstRowg.lastRow&&this.$lines.push(this.$renderLinesFragment(f,g.lastRow+1,f.lastRow)),this.$highlightIndentGuide()},p.prototype.$renderLinesFragment=function(f,g,m){for(var v=[],y=g,b=this.session.getNextFoldLine(y),x=b?b.start.row:1/0;y>x&&(y=b.end.row+1,b=this.session.getNextFoldLine(y,b),x=b?b.start.row:1/0),!(y>m);){var k=this.$lines.createCell(y,f,this.session),w=k.element;this.dom.removeChildren(w),s.setStyle(w.style,"height",this.$lines.computeLineHeight(y,f,this.session)+"px"),s.setStyle(w.style,"top",this.$lines.computeLineTop(y,f,this.session)+"px"),this.$renderLine(w,y,y==x?b:!1),this.$useLineGroups()?w.className="ace_line_group":w.className="ace_line",v.push(k),y++}return v},p.prototype.update=function(f){this.$lines.moveContainer(f),this.config=f;for(var g=f.firstRow,m=f.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(f,g,m))},p.prototype.$renderToken=function(f,g,m,v){for(var y=this,b=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,x=this.dom.createFragment(this.element),k,w=0;k=b.exec(v);){var S=k[1],A=k[2],C=k[3],O=k[4],R=k[5];if(!(!y.showSpaces&&A)){var _=w!=k.index?v.slice(w,k.index):"";if(w=k.index+k[0].length,_&&x.appendChild(this.dom.createTextNode(_,this.element)),S){var T=y.session.getScreenTabSize(g+k.index);x.appendChild(y.$tabStrings[T].cloneNode(!0)),g+=T-1}else if(A)if(y.showSpaces){var E=this.dom.createElement("span");E.className="ace_invisible ace_invisible_space",E.textContent=l.stringRepeat(y.SPACE_CHAR,A.length),x.appendChild(E)}else x.appendChild(this.dom.createTextNode(A,this.element));else if(C){var E=this.dom.createElement("span");E.className="ace_invisible ace_invisible_space ace_invalid",E.textContent=l.stringRepeat(y.SPACE_CHAR,C.length),x.appendChild(E)}else if(O){g+=1;var E=this.dom.createElement("span");E.style.width=y.config.characterWidth*2+"px",E.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",E.textContent=y.showSpaces?y.SPACE_CHAR:O,x.appendChild(E)}else if(R){g+=1;var E=this.dom.createElement("span");E.style.width=y.config.characterWidth*2+"px",E.className="ace_cjk",E.textContent=R,x.appendChild(E)}}}if(x.appendChild(this.dom.createTextNode(w?v.slice(w):v,this.element)),d(m.type))f.appendChild(x);else{var M="ace_"+m.type.replace(/\./g," ace_"),E=this.dom.createElement("span");m.type=="fold"&&(E.style.width=m.value.length*this.config.characterWidth+"px",E.setAttribute("title",c("Unfold code"))),E.className=M,E.appendChild(x),f.appendChild(E)}return g+v.length},p.prototype.renderIndentGuide=function(f,g,m){var v=g.search(this.$indentGuideRe);if(v<=0||v>=m)return g;if(g[0]==" "){v-=v%this.tabSize;for(var y=v/this.tabSize,b=0;bb[x].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&f[g.row]!==""&&g.column===f[g.row].length){this.$highlightIndentGuideMarker.dir=1;for(var x=g.row+1;x0){for(var y=0;y=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,g)}}else for(var m=f.length-1;m>=0;m--){var v=f[m];if(this.$highlightIndentGuideMarker.end&&v.row=b;)x=this.$renderToken(k,x,S,A.substring(0,b-v)),A=A.substring(b-v),v=b,k=this.$createLineElement(),f.appendChild(k),k.appendChild(this.dom.createTextNode(l.stringRepeat(" ",m.indent),this.element)),y++,x=0,b=m[y]||Number.MAX_VALUE;A.length!=0&&(v+=A.length,x=this.$renderToken(k,x,S,A))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(k,x,null,"",!0)},p.prototype.$renderSimpleLine=function(f,g){for(var m=0,v=0;vthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(f,m,y,b);m=this.$renderToken(f,m,y,b)}}},p.prototype.$renderOverflowMessage=function(f,g,m,v,y){m&&this.$renderToken(f,g,m,v.slice(0,this.MAX_LINE_LENGTH-g));var b=this.dom.createElement("span");b.className="ace_inline_button ace_keyword ace_toggle_wrap",b.textContent=y?"":"",f.appendChild(b)},p.prototype.$renderLine=function(f,g,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(g)),m)var v=this.$getFoldLineTokens(g,m);else var v=this.session.getTokens(g);var y=f;if(v.length){var b=this.session.getRowSplitData(g);if(b&&b.length){this.$renderWrappedLine(f,v,b);var y=f.lastChild}else{var y=f;this.$useLineGroups()&&(y=this.$createLineElement(),f.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),f.appendChild(y));if(this.showEOL&&y){m&&(g=m.end.row);var x=this.dom.createElement("span");x.className="ace_invisible ace_invisible_eol",x.textContent=g==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(x)}},p.prototype.$getFoldLineTokens=function(f,g){var m=this.session,v=[];function y(x,k,w){for(var S=0,A=0;A+x[S].value.lengthw-k&&(C=C.substring(0,w-k)),v.push({type:x[S].type,value:C}),A=k+C.length,S+=1}for(;Aw?v.push({type:x[S].type,value:C.substring(0,w-A)}):v.push(x[S]),A+=C.length,S+=1}}var b=m.getTokens(f);return g.walk(function(x,k,w,S,A){x!=null?v.push({type:"fold",value:x}):(A&&(b=m.getTokens(k)),b.length&&y(b,S,w))},g.end.row,this.session.getLine(g.end.row).length),v},p.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},p}();h.prototype.EOF_CHAR="¶",h.prototype.EOL_CHAR_LF="¬",h.prototype.EOL_CHAR_CRLF="¤",h.prototype.EOL_CHAR=h.prototype.EOL_CHAR_LF,h.prototype.TAB_CHAR="—",h.prototype.SPACE_CHAR="·",h.prototype.$padding=0,h.prototype.MAX_LINE_LENGTH=1e4,h.prototype.showInvisibles=!1,h.prototype.showSpaces=!1,h.prototype.showTabs=!1,h.prototype.showEOL=!1,h.prototype.displayIndentGuides=!0,h.prototype.$highlightIndentGuides=!0,h.prototype.$tabStrings=[],h.prototype.destroy={},h.prototype.onChangeTabSize=h.prototype.$computeTabString,i.implement(h.prototype,u),r.Text=h}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,r,o){var i=n("../lib/dom"),s=function(){function l(a){this.element=i.createElement("div"),this.element.className="ace_layer ace_cursor-layer",a.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),i.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return l.prototype.$updateOpacity=function(a){for(var u=this.cursors,c=u.length;c--;)i.setStyle(u[c].style,"opacity",a?"":"0")},l.prototype.$startCssAnimation=function(){for(var a=this.cursors,u=a.length;u--;)a[u].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&i.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},l.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,i.removeCssClass(this.element,"ace_animate-blinking")},l.prototype.setPadding=function(a){this.$padding=a},l.prototype.setSession=function(a){this.session=a},l.prototype.setBlinking=function(a){a!=this.isBlinking&&(this.isBlinking=a,this.restartTimer())},l.prototype.setBlinkInterval=function(a){a!=this.blinkInterval&&(this.blinkInterval=a,this.restartTimer())},l.prototype.setSmoothBlinking=function(a){a!=this.smoothBlinking&&(this.smoothBlinking=a,i.setCssClass(this.element,"ace_smooth-blinking",a),this.$updateCursors(!0),this.restartTimer())},l.prototype.addCursor=function(){var a=i.createElement("div");return a.className="ace_cursor",this.element.appendChild(a),this.cursors.push(a),a},l.prototype.removeCursor=function(){if(this.cursors.length>1){var a=this.cursors.pop();return a.parentNode.removeChild(a),a}},l.prototype.hideCursor=function(){this.isVisible=!1,i.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},l.prototype.showCursor=function(){this.isVisible=!0,i.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},l.prototype.restartTimer=function(){var a=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,i.removeCssClass(this.element,"ace_smooth-blinking")),a(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&i.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),i.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var u=(function(){this.timeoutId=setTimeout(function(){a(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){a(!0),u()},this.blinkInterval),u()}},l.prototype.getPixelPosition=function(a,u){if(!this.config||!this.session)return{left:0,top:0};a||(a=this.session.selection.getCursor());var c=this.session.documentToScreenPosition(a),d=this.$padding+(this.session.$bidiHandler.isBidiRow(c.row,a.row)?this.session.$bidiHandler.getPosLeft(c.column):c.column*this.config.characterWidth),h=(c.row-(u?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:d,top:h}},l.prototype.isCursorInView=function(a,u){return a.top>=0&&a.topa.height+a.offset||p.top<0)&&c>1)){var f=this.cursors[d++]||this.addCursor(),g=f.style;this.drawCursor?this.drawCursor(f,p,a,u[c],this.session):this.isCursorInView(p,a)?(i.setStyle(g,"display","block"),i.translate(f,p.left,p.top),i.setStyle(g,"width",Math.round(a.characterWidth)+"px"),i.setStyle(g,"height",a.lineHeight+"px")):i.setStyle(g,"display","none")}}for(;this.cursors.length>d;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=p,this.restartTimer()},l.prototype.$setOverwrite=function(a){a!=this.overwrite&&(this.overwrite=a,a?i.addCssClass(this.element,"ace_overwrite-cursors"):i.removeCssClass(this.element,"ace_overwrite-cursors"))},l.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},l}();s.prototype.$padding=0,s.prototype.drawCursor=null,r.Cursor=s}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,o){var i=this&&this.__extends||function(){var f=function(g,m){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(v[b]=y[b])},f(g,m)};return function(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");f(g,m);function v(){this.constructor=g}g.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),s=n("./lib/oop"),l=n("./lib/dom"),a=n("./lib/event"),u=n("./lib/event_emitter").EventEmitter,c=32768,d=function(){function f(g,m){this.element=l.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+m,this.inner=l.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),g.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addListener(this.element,"scroll",this.onScroll.bind(this)),a.addListener(this.element,"mousedown",a.preventDefault)}return f.prototype.setVisible=function(g){this.element.style.display=g?"":"none",this.isVisible=g,this.coeff=1},f}();s.implement(d.prototype,u);var h=function(f){i(g,f);function g(m,v){var y=f.call(this,m,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,v.$scrollbarWidth=y.width=l.scrollbarWidth(m.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return g.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},g.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},g.prototype.setHeight=function(m){this.element.style.height=m+"px"},g.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>c?(this.coeff=c/m,m=c):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},g.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},g}(d);h.prototype.setInnerHeight=h.prototype.setScrollHeight;var p=function(f){i(g,f);function g(m,v){var y=f.call(this,m,"-h")||this;return y.scrollLeft=0,y.height=v.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return g.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},g.prototype.getHeight=function(){return this.isVisible?this.height:0},g.prototype.setWidth=function(m){this.element.style.width=m+"px"},g.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},g.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},g.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},g}(d);r.ScrollBar=h,r.ScrollBarV=h,r.ScrollBarH=p,r.VScrollBar=h,r.HScrollBar=p}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,o){var i=this&&this.__extends||function(){var p=function(f,g){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(m[y]=v[y])},p(f,g)};return function(f,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");p(f,g);function m(){this.constructor=f}f.prototype=g===null?Object.create(g):(m.prototype=g.prototype,new m)}}(),s=n("./lib/oop"),l=n("./lib/dom"),a=n("./lib/event"),u=n("./lib/event_emitter").EventEmitter;l.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{ +`){var B=I.getLine(L.row);if(L.column>B.search(/\S|$/)){var F=B.substr(L.column).search(/\S|$/);I.doc.removeInLine(L.row,L.column,L.column+F)}}this.clearSelection();var H=L.column,W=I.getState(L.row),B=I.getLine(L.row),U=N.checkOutdent(W,B,E);if(I.insert(L,E),$&&$.selection&&($.selection.length==2?this.selection.setSelectionRange(new m(L.row,H+$.selection[0],L.row,H+$.selection[1])):this.selection.setSelectionRange(new m(L.row+$.selection[0],$.selection[1],L.row+$.selection[2],$.selection[3]))),this.$enableAutoIndent){if(I.getDocument().isNewLine(E)){var G=N.getNextLineIndent(W,B.slice(0,L.column),I.getTabString());I.insert({row:L.row+1,column:0},G)}U&&N.autoOutdent(W,I,L.row)}},A.prototype.autoIndent=function(){for(var E=this.session,M=E.getMode(),I=this.selection.isEmpty()?[new m(0,0,E.doc.getLength()-1,0)]:this.selection.getAllRanges(),N="",L="",$="",P=E.getTabString(),F=0;F0&&(N=E.getState(B-1),L=E.getLine(B-1),$=M.getNextLineIndent(N,L,P));var U=E.getLine(B),G=M.$getIndent(U);if($!==G){if(G.length>0){var Y=new m(B,0,B,G.length);E.remove(Y)}$.length>0&&E.insert({row:B,column:0},$)}M.autoOutdent(N,E,B)}},A.prototype.onTextInput=function(E,M){if(!M)return this.keyBinding.onTextInput(E);this.startOperation({command:{name:"insertstring"}});var I=this.applyComposition.bind(this,E,M);this.selection.rangeCount?this.forEachSelection(I):I(),this.endOperation()},A.prototype.applyComposition=function(E,M){if(M.extendLeft||M.extendRight){var I=this.selection.getRange();I.start.column-=M.extendLeft,I.end.column+=M.extendRight,I.start.column<0&&(I.start.row--,I.start.column+=this.session.getLine(I.start.row).length+1),this.selection.setRange(I),!E&&!I.isEmpty()&&this.remove()}if((E||!this.selection.isEmpty())&&this.insert(E,!0),M.restoreStart||M.restoreEnd){var I=this.selection.getRange();I.start.column-=M.restoreStart,I.end.column-=M.restoreEnd,this.selection.setRange(I)}},A.prototype.onCommandKey=function(E,M,I){return this.keyBinding.onCommandKey(E,M,I)},A.prototype.setOverwrite=function(E){this.session.setOverwrite(E)},A.prototype.getOverwrite=function(){return this.session.getOverwrite()},A.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},A.prototype.setScrollSpeed=function(E){this.setOption("scrollSpeed",E)},A.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},A.prototype.setDragDelay=function(E){this.setOption("dragDelay",E)},A.prototype.getDragDelay=function(){return this.getOption("dragDelay")},A.prototype.setSelectionStyle=function(E){this.setOption("selectionStyle",E)},A.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},A.prototype.setHighlightActiveLine=function(E){this.setOption("highlightActiveLine",E)},A.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},A.prototype.setHighlightGutterLine=function(E){this.setOption("highlightGutterLine",E)},A.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},A.prototype.setHighlightSelectedWord=function(E){this.setOption("highlightSelectedWord",E)},A.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},A.prototype.setAnimatedScroll=function(E){this.renderer.setAnimatedScroll(E)},A.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},A.prototype.setShowInvisibles=function(E){this.renderer.setShowInvisibles(E)},A.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},A.prototype.setDisplayIndentGuides=function(E){this.renderer.setDisplayIndentGuides(E)},A.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},A.prototype.setHighlightIndentGuides=function(E){this.renderer.setHighlightIndentGuides(E)},A.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},A.prototype.setShowPrintMargin=function(E){this.renderer.setShowPrintMargin(E)},A.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},A.prototype.setPrintMarginColumn=function(E){this.renderer.setPrintMarginColumn(E)},A.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},A.prototype.setReadOnly=function(E){this.setOption("readOnly",E)},A.prototype.getReadOnly=function(){return this.getOption("readOnly")},A.prototype.setBehavioursEnabled=function(E){this.setOption("behavioursEnabled",E)},A.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},A.prototype.setWrapBehavioursEnabled=function(E){this.setOption("wrapBehavioursEnabled",E)},A.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},A.prototype.setShowFoldWidgets=function(E){this.setOption("showFoldWidgets",E)},A.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},A.prototype.setFadeFoldWidgets=function(E){this.setOption("fadeFoldWidgets",E)},A.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},A.prototype.remove=function(E){this.selection.isEmpty()&&(E=="left"?this.selection.selectLeft():this.selection.selectRight());var M=this.getSelectionRange();if(this.getBehavioursEnabled()){var I=this.session,N=I.getState(M.start.row),L=I.getMode().transformAction(N,"deletion",this,I,M);if(M.end.column===0){var $=I.getTextRange(M);if($[$.length-1]==` +`){var P=I.getLine(M.end.row);/^\s+$/.test(P)&&(M.end.column=P.length)}}L&&(M=L)}this.session.remove(M),this.clearSelection()},A.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},A.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},A.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},A.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var E=this.getSelectionRange();E.start.column==E.end.column&&E.start.row==E.end.row&&(E.end.column=0,E.end.row++),this.session.remove(E),this.clearSelection()},A.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var E=this.getCursorPosition();this.insert(` +`),this.moveCursorToPosition(E)},A.prototype.setGhostText=function(E,M){this.session.widgetManager||(this.session.widgetManager=new w(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(E,M)},A.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},A.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var E=this.getCursorPosition(),M=E.column;if(M!==0){var I=this.session.getLine(E.row),N,L;MF.toLowerCase()?1:0});for(var L=new m(0,0,0,0),N=E.first;N<=E.last;N++){var $=M.getLine(N);L.start.row=N,L.end.row=N,L.end.column=$.length,M.replace(L,I[N-E.first])}},A.prototype.toggleCommentLines=function(){var E=this.session.getState(this.getCursorPosition().row),M=this.$getSelectedRows();this.session.getMode().toggleCommentLines(E,this.session,M.first,M.last)},A.prototype.toggleBlockComment=function(){var E=this.getCursorPosition(),M=this.session.getState(E.row),I=this.getSelectionRange();this.session.getMode().toggleBlockComment(M,this.session,I,E)},A.prototype.getNumberAt=function(E,M){var I=/[\-]?[0-9]+(?:\.[0-9]+)?/g;I.lastIndex=0;for(var N=this.session.getLine(E);I.lastIndex=M){var $={value:L[0],start:L.index,end:L.index+L[0].length};return $}}return null},A.prototype.modifyNumber=function(E){var M=this.selection.getCursor().row,I=this.selection.getCursor().column,N=new m(M,I-1,M,I),L=this.session.getTextRange(N);if(!isNaN(parseFloat(L))&&isFinite(L)){var $=this.getNumberAt(M,I);if($){var P=$.value.indexOf(".")>=0?$.start+$.value.indexOf(".")+1:$.end,F=$.start+$.value.length-P,H=parseFloat($.value);H*=Math.pow(10,F),P!==$.end&&I=P&&$<=F&&(I=de,H.selection.clearSelection(),H.moveCursorTo(E,P+N),H.selection.selectTo(E,F+N)),P=F});for(var W=this.$toggleWordPairs,B,U=0;U=F&&P<=H&&G.match(/((?:https?|ftp):\/\/[\S]+)/)){W=G.replace(/[\s:.,'";}\]]+$/,"");break}F=H}}catch(Y){I={error:Y}}finally{try{U&&!U.done&&(N=B.return)&&N.call(B)}finally{if(I)throw I.error}}return W},A.prototype.openLink=function(){var E=this.selection.getCursor(),M=this.findLinkAt(E.row,E.column);return M&&window.open(M,"_blank"),M!=null},A.prototype.removeLines=function(){var E=this.$getSelectedRows();this.session.removeFullLines(E.first,E.last),this.clearSelection()},A.prototype.duplicateSelection=function(){var E=this.selection,M=this.session,I=E.getRange(),N=E.isBackwards();if(I.isEmpty()){var L=I.start.row;M.duplicateLines(L,L)}else{var $=N?I.start:I.end,P=M.insert($,M.getTextRange(I));I.start=$,I.end=P,E.setSelectionRange(I,N)}},A.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},A.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},A.prototype.moveText=function(E,M,I){return this.session.moveText(E,M,I)},A.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},A.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},A.prototype.$moveLines=function(E,M){var I,N,L=this.selection;if(!L.inMultiSelectMode||this.inVirtualSelectionMode){var $=L.toOrientedRange();I=this.$getSelectedRows($),N=this.session.$moveLines(I.first,I.last,M?0:E),M&&E==-1&&(N=0),$.moveBy(N,0),L.fromOrientedRange($)}else{var P=L.rangeList.ranges;L.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var F=0,H=0,W=P.length,B=0;BY+1)break;Y=X.last}for(B--,F=this.session.$moveLines(G,Y,M?0:E),M&&E==-1&&(U=B+1);U<=B;)P[U].moveBy(F,0),U++;M||(F=0),H+=F}L.fromOrientedRange(L.ranges[0]),L.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},A.prototype.$getSelectedRows=function(E){return E=(E||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(E.start.row),last:this.session.getRowFoldEnd(E.end.row)}},A.prototype.onCompositionStart=function(E){this.renderer.showComposition(E)},A.prototype.onCompositionUpdate=function(E){this.renderer.setCompositionText(E)},A.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},A.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},A.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},A.prototype.isRowVisible=function(E){return E>=this.getFirstVisibleRow()&&E<=this.getLastVisibleRow()},A.prototype.isRowFullyVisible=function(E){return E>=this.renderer.getFirstFullyVisibleRow()&&E<=this.renderer.getLastFullyVisibleRow()},A.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},A.prototype.$moveByPage=function(E,M){var I=this.renderer,N=this.renderer.layerConfig,L=E*Math.floor(N.height/N.lineHeight);M===!0?this.selection.$moveSelection(function(){this.moveCursorBy(L,0)}):M===!1&&(this.selection.moveCursorBy(L,0),this.selection.clearSelection());var $=I.scrollTop;I.scrollBy(0,L*N.lineHeight),M!=null&&I.scrollCursorIntoView(null,.5),I.animateScrolling($)},A.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},A.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},A.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},A.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},A.prototype.scrollPageDown=function(){this.$moveByPage(1)},A.prototype.scrollPageUp=function(){this.$moveByPage(-1)},A.prototype.scrollToRow=function(E){this.renderer.scrollToRow(E)},A.prototype.scrollToLine=function(E,M,I,N){this.renderer.scrollToLine(E,M,I,N)},A.prototype.centerSelection=function(){var E=this.getSelectionRange(),M={row:Math.floor(E.start.row+(E.end.row-E.start.row)/2),column:Math.floor(E.start.column+(E.end.column-E.start.column)/2)};this.renderer.alignCursor(M,.5)},A.prototype.getCursorPosition=function(){return this.selection.getCursor()},A.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},A.prototype.getSelectionRange=function(){return this.selection.getRange()},A.prototype.selectAll=function(){this.selection.selectAll()},A.prototype.clearSelection=function(){this.selection.clearSelection()},A.prototype.moveCursorTo=function(E,M){this.selection.moveCursorTo(E,M)},A.prototype.moveCursorToPosition=function(E){this.selection.moveCursorToPosition(E)},A.prototype.jumpToMatching=function(E,M){var I=this.getCursorPosition(),N=new k(this.session,I.row,I.column),L=N.getCurrentToken(),$=0;L&&L.type.indexOf("tag-name")!==-1&&(L=N.stepBackward());var P=L||N.stepForward();if(P){var F,H=!1,W={},B=I.column-P.start,U,G={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(P.value.match(/[{}()\[\]]/g)){for(;B1?W[P.value]++:L.value==="=0;--$)this.$tryReplace(I[$],E)&&N++;return this.selection.setSelectionRange(L),N},A.prototype.$tryReplace=function(E,M){var I=this.session.getTextRange(E);return M=this.$search.replace(I,M),M!==null?(E.end=this.session.replace(E,M),E):null},A.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},A.prototype.find=function(E,M,I){M||(M={}),typeof E=="string"||E instanceof RegExp?M.needle=E:typeof E=="object"&&s.mixin(M,E);var N=this.selection.getRange();M.needle==null&&(E=this.session.getTextRange(N)||this.$search.$options.needle,E||(N=this.session.getWordRange(N.start.row,N.start.column),E=this.session.getTextRange(N)),this.$search.set({needle:E})),this.$search.set(M),M.start||this.$search.set({start:N});var L=this.$search.find(this.session);if(M.preventScroll)return L;if(L)return this.revealRange(L,I),L;M.backwards?N.start=N.end:N.end=N.start,this.selection.setRange(N)},A.prototype.findNext=function(E,M){this.find({skipCurrent:!0,backwards:!1},E,M)},A.prototype.findPrevious=function(E,M){this.find(E,{skipCurrent:!0,backwards:!0},M)},A.prototype.revealRange=function(E,M){this.session.unfold(E),this.selection.setSelectionRange(E);var I=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(E.start,E.end,.5),M!==!1&&this.renderer.animateScrolling(I)},A.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},A.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},A.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(E){E.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},A.prototype.setAutoScrollEditorIntoView=function(E){if(E){var M,I=this,N=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var L=this.$scrollAnchor;L.style.cssText="position:absolute",this.container.insertBefore(L,this.container.firstChild);var $=this.on("changeSelection",function(){N=!0}),P=this.renderer.on("beforeRender",function(){N&&(M=I.renderer.container.getBoundingClientRect())}),F=this.renderer.on("afterRender",function(){if(N&&M&&(I.isFocused()||I.searchBox&&I.searchBox.isFocused())){var H=I.renderer,W=H.$cursorLayer.$pixelPos,B=H.layerConfig,U=W.top-B.offset;W.top>=0&&U+M.top<0?N=!0:W.topwindow.innerHeight?N=!1:N=null,N!=null&&(L.style.top=U+"px",L.style.left=W.left+"px",L.style.height=B.lineHeight+"px",L.scrollIntoView(N)),N=M=null}});this.setAutoScrollEditorIntoView=function(H){H||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",$),this.renderer.off("afterRender",F),this.renderer.off("beforeRender",P))}}},A.prototype.$resetCursorStyle=function(){var E=this.$cursorStyle||"ace",M=this.renderer.$cursorLayer;M&&(M.setSmoothBlinking(/smooth/.test(E)),M.isBlinking=!this.$readOnly&&E!="wide",l.setCssClass(M.element,"ace_slim-cursors",/slim/.test(E)))},A.prototype.prompt=function(E,M,I){var N=this;x.loadModule("ace/ext/prompt",function(L){L.prompt(N,E,M,I)})},A}();R.$uid=0,R.prototype.curOp=null,R.prototype.prevOp={},R.prototype.$mergeableCommands=["backspace","del","insertstring"],R.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],s.implement(R.prototype,v),x.defineOptions(R.prototype,"editor",{selectionStyle:{set:function(A){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:A})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(A){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(A){this.textInput.setReadOnly(A),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(A){this.textInput.setCopyWithEmptySelection(A)},initialValue:!1},cursorStyle:{set:function(A){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(A){this.setAutoScrollEditorIntoView(A)}},keyboardHandler:{set:function(A){this.setKeyboardHandler(A)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(A){this.session.setValue(A)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(A){this.setSession(A)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(A){this.renderer.$gutterLayer.setShowLineNumbers(A),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),A&&this.$relativeLineNumbers?_.attach(this):_.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(A){this.$showLineNumbers&&A?_.attach(this):_.detach(this)}},placeholder:{set:function(A){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var E=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(E&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),l.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!E&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),l.addCssClass(this.container,"ace_hasPlaceholder");var M=l.createElement("div");M.className="ace_placeholder",M.textContent=this.$placeholder||"",this.renderer.placeholderNode=M,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!E&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(A){var E={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(N){N.blur(),N.renderer.scroller.focus()},readOnly:!0},M=function(N){if(N.target==this.renderer.scroller&&N.keyCode===O.enter){N.preventDefault();var L=this.getCursorPosition().row;this.isRowVisible(L)||this.scrollToLine(L,!0,!0),this.focus()}},I;A?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(u.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",T("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",T("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",M.bind(this)),this.commands.addCommand(E),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",T("editor")),this.renderer.$gutter.setAttribute("aria-label",T("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),I||(I=new S(this)),I.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",M.bind(this)),this.commands.removeCommand(E),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),I&&I.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var _={getText:function(A,E){return(Math.abs(A.selection.lead.row-E)||E+1+(E<9?"·":""))+""},getWidth:function(A,E,M){return Math.max(E.toString().length,(M.lastRow+1).toString().length,2)*M.characterWidth},update:function(A,E){E.renderer.$loop.schedule(E.renderer.CHANGE_GUTTER)},attach:function(A){A.renderer.$gutterLayer.$renderer=this,A.on("changeSelection",this.update),this.update(null,A)},detach:function(A){A.renderer.$gutterLayer.$renderer==this&&(A.renderer.$gutterLayer.$renderer=null),A.off("changeSelection",this.update),this.update(null,A)}};r.Editor=R}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,r,o){var i=n("../lib/dom"),s=function(){function l(a,u){this.element=a,this.canvasHeight=u||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return l.prototype.moveContainer=function(a){i.translate(this.element,0,-(a.firstRowScreen*a.lineHeight%this.canvasHeight)-a.offset*this.$offsetCoefficient)},l.prototype.pageChanged=function(a,u){return Math.floor(a.firstRowScreen*a.lineHeight/this.canvasHeight)!==Math.floor(u.firstRowScreen*u.lineHeight/this.canvasHeight)},l.prototype.computeLineTop=function(a,u,c){var d=u.firstRowScreen*u.lineHeight,h=Math.floor(d/this.canvasHeight),p=c.documentToScreenRow(a,0)*u.lineHeight;return p-h*this.canvasHeight},l.prototype.computeLineHeight=function(a,u,c){return u.lineHeight*c.getRowLineCount(a)},l.prototype.getLength=function(){return this.cells.length},l.prototype.get=function(a){return this.cells[a]},l.prototype.shift=function(){this.$cacheCell(this.cells.shift())},l.prototype.pop=function(){this.$cacheCell(this.cells.pop())},l.prototype.push=function(a){if(Array.isArray(a)){this.cells.push.apply(this.cells,a);for(var u=i.createFragment(this.element),c=0;cb&&(w=y.end.row+1,y=g.getNextFoldLine(w,y),b=y?y.start.row:1/0),w>v){for(;this.$lines.getLength()>k+1;)this.$lines.pop();break}x=this.$lines.get(++k),x?x.row=w:(x=this.$lines.createCell(w,f,this.session,h),this.$lines.push(x)),this.$renderCell(x,f,y,w),w++}this._signal("afterRender"),this.$updateGutterWidth(f)},p.prototype.$updateGutterWidth=function(f){var g=this.session,m=g.gutterRenderer||this.$renderer,v=g.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||g.$useWrapMode)&&(y=g.getLength()+v-1);var b=m?m.getWidth(g,y,f):y.toString().length*f.characterWidth,x=this.$padding||this.$computePadding();b+=x.left+x.right,b!==this.gutterWidth&&!isNaN(b)&&(this.gutterWidth=b,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",b))},p.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var f=this.session.selection.getCursor();this.$cursorRow!==f.row&&(this.$cursorRow=f.row)}},p.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var f=this.session.selection.cursor.row;if(this.$cursorRow=f,!(this.$cursorCell&&this.$cursorCell.row==f)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var g=this.$lines.cells;this.$cursorCell=null;for(var m=0;m=this.$cursorRow){if(v.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(m>0&&y&&y.start.row==g[m-1].row)v=g[m-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},p.prototype.scrollLines=function(f){var g=this.config;if(this.config=f,this.$updateCursorRow(),this.$lines.pageChanged(g,f))return this.update(f);this.$lines.moveContainer(f);var m=Math.min(f.lastRow+f.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!g||v0;y--)this.$lines.shift();if(v>m)for(var y=this.session.getFoldedRowCount(m+1,v);y>0;y--)this.$lines.pop();f.firstRowv&&this.$lines.push(this.$renderLines(f,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(f)},p.prototype.$renderLines=function(f,g,m){for(var v=[],y=g,b=this.session.getNextFoldLine(y),x=b?b.start.row:1/0;y>x&&(y=b.end.row+1,b=this.session.getNextFoldLine(y,b),x=b?b.start.row:1/0),!(y>m);){var k=this.$lines.createCell(y,f,this.session,h);this.$renderCell(k,f,b,y),v.push(k),y++}return v},p.prototype.$renderCell=function(f,g,m,v){var y=f.element,b=this.session,x=y.childNodes[0],k=y.childNodes[1],w=y.childNodes[2],S=w.firstChild,T=b.$firstLineNumber,C=b.$breakpoints,O=b.$decorations,R=b.gutterRenderer||this.$renderer,_=this.$showFoldWidgets&&b.foldWidgets,A=m?m.start.row:Number.MAX_VALUE,E=g.lineHeight+"px",M=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",I=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",N=(R?R.getText(b,v):v+T).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v=A&&this.$cursorRow<=m.end.row)&&(M+="ace_gutter-active-line ",this.$cursorCell!=f&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=f)),C[v]&&(M+=C[v]),O[v]&&(M+=O[v]),this.$annotations[v]&&v!==A&&(M+=this.$annotations[v].className),_){var L=_[v];L==null&&(L=_[v]=b.getFoldWidget(v))}if(L){var $="ace_fold-widget ace_"+L,P=L=="start"&&v==A&&vm.right-g.right)return"foldWidgets"},p}();d.prototype.$fixedWidth=!1,d.prototype.$highlightGutterLine=!0,d.prototype.$renderer="",d.prototype.$showLineNumbers=!0,d.prototype.$showFoldWidgets=!0,s.implement(d.prototype,a);function h(p){var f=document.createTextNode("");p.appendChild(f);var g=i.createElement("span");p.appendChild(g);var m=i.createElement("span");p.appendChild(m);var v=i.createElement("span");return m.appendChild(v),p}r.Gutter=d}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,r,o){var i=n("../range").Range,s=n("../lib/dom"),l=function(){function u(c){this.element=s.createElement("div"),this.element.className="ace_layer ace_marker-layer",c.appendChild(this.element)}return u.prototype.setPadding=function(c){this.$padding=c},u.prototype.setSession=function(c){this.session=c},u.prototype.setMarkers=function(c){this.markers=c},u.prototype.elt=function(c,d){var h=this.i!=-1&&this.element.childNodes[this.i];h?this.i++:(h=document.createElement("div"),this.element.appendChild(h),this.i=-1),h.style.cssText=d,h.className=c},u.prototype.update=function(c){if(c){this.config=c,this.i=0;var d;for(var h in this.markers){var p=this.markers[h];if(!p.range){p.update(d,this,this.session,c);continue}var f=p.range.clipRows(c.firstRow,c.lastRow);if(!f.isEmpty())if(f=f.toScreenRange(this.session),p.renderer){var g=this.$getTop(f.start.row,c),m=this.$padding+f.start.column*c.characterWidth;p.renderer(d,f,m,g,c)}else p.type=="fullLine"?this.drawFullLineMarker(d,f,p.clazz,c):p.type=="screenLine"?this.drawScreenLineMarker(d,f,p.clazz,c):f.isMultiLine()?p.type=="text"?this.drawTextMarker(d,f,p.clazz,c):this.drawMultiLineMarker(d,f,p.clazz,c):this.drawSingleLineMarker(d,f,p.clazz+" ace_start ace_br15",c)}if(this.i!=-1)for(;this.ik,y==v),p,y==v?0:1,f)},u.prototype.drawMultiLineMarker=function(c,d,h,p,f){var g=this.$padding,m=p.lineHeight,v=this.$getTop(d.start.row,p),y=g+d.start.column*p.characterWidth;if(f=f||"",this.session.$bidiHandler.isBidiRow(d.start.row)){var b=d.clone();b.end.row=b.start.row,b.end.column=this.session.getLine(b.start.row).length,this.drawBidiSingleLineMarker(c,b,h+" ace_br1 ace_start",p,null,f)}else this.elt(h+" ace_br1 ace_start","height:"+m+"px;right:0;top:"+v+"px;left:"+y+"px;"+(f||""));if(this.session.$bidiHandler.isBidiRow(d.end.row)){var b=d.clone();b.start.row=b.end.row,b.start.column=0,this.drawBidiSingleLineMarker(c,b,h+" ace_br12",p,null,f)}else{v=this.$getTop(d.end.row,p);var x=d.end.column*p.characterWidth;this.elt(h+" ace_br12","height:"+m+"px;width:"+x+"px;top:"+v+"px;left:"+g+"px;"+(f||""))}if(m=(d.end.row-d.start.row-1)*p.lineHeight,!(m<=0)){v=this.$getTop(d.start.row+1,p);var k=(d.start.column?1:0)|(d.end.column?0:8);this.elt(h+(k?" ace_br"+k:""),"height:"+m+"px;right:0;top:"+v+"px;left:"+g+"px;"+(f||""))}},u.prototype.drawSingleLineMarker=function(c,d,h,p,f,g){if(this.session.$bidiHandler.isBidiRow(d.start.row))return this.drawBidiSingleLineMarker(c,d,h,p,f,g);var m=p.lineHeight,v=(d.end.column+(f||0)-d.start.column)*p.characterWidth,y=this.$getTop(d.start.row,p),b=this.$padding+d.start.column*p.characterWidth;this.elt(h,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+b+"px;"+(g||""))},u.prototype.drawBidiSingleLineMarker=function(c,d,h,p,f,g){var m=p.lineHeight,v=this.$getTop(d.start.row,p),y=this.$padding,b=this.session.$bidiHandler.getSelections(d.start.column,d.end.column);b.forEach(function(x){this.elt(h,"height:"+m+"px;width:"+(x.width+(f||0))+"px;top:"+v+"px;left:"+(y+x.left)+"px;"+(g||""))},this)},u.prototype.drawFullLineMarker=function(c,d,h,p,f){var g=this.$getTop(d.start.row,p),m=p.lineHeight;d.start.row!=d.end.row&&(m+=this.$getTop(d.end.row,p)-g),this.elt(h,"height:"+m+"px;top:"+g+"px;left:0;right:0;"+(f||""))},u.prototype.drawScreenLineMarker=function(c,d,h,p,f){var g=this.$getTop(d.start.row,p),m=p.lineHeight;this.elt(h,"height:"+m+"px;top:"+g+"px;left:0;right:0;"+(f||""))},u}();l.prototype.$padding=0;function a(u,c,d,h){return(u?1:0)|(c?2:0)|(d?4:0)|(h?8:0)}r.Marker=l}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,r,o){var i=new Set(["text","rparen","lparen"]);r.isTextToken=function(s){return i.has(s)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(n,r,o){var i=n("../lib/oop"),s=n("../lib/dom"),l=n("../lib/lang"),a=n("./lines").Lines,u=n("../lib/event_emitter").EventEmitter,c=n("../config").nls,d=n("./text_util").isTextToken,h=function(){function p(f){this.dom=s,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",f.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)}return p.prototype.$updateEolChar=function(){var f=this.session.doc,g=f.getNewLineCharacter()==` +`&&f.getNewLineMode()!="windows",m=g?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},p.prototype.setPadding=function(f){this.$padding=f,this.element.style.margin="0 "+f+"px"},p.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},p.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},p.prototype.$setFontMetrics=function(f){this.$fontMetrics=f,this.$fontMetrics.on("changeCharacterSize",(function(g){this._signal("changeCharacterSize",g)}).bind(this)),this.$pollSizeChanges()},p.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},p.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},p.prototype.setSession=function(f){this.session=f,f&&this.$computeTabString()},p.prototype.setShowInvisibles=function(f){return this.showInvisibles==f?!1:(this.showInvisibles=f,typeof f=="string"?(this.showSpaces=/tab/i.test(f),this.showTabs=/space/i.test(f),this.showEOL=/eol/i.test(f)):this.showSpaces=this.showTabs=this.showEOL=f,this.$computeTabString(),!0)},p.prototype.setDisplayIndentGuides=function(f){return this.displayIndentGuides==f?!1:(this.displayIndentGuides=f,this.$computeTabString(),!0)},p.prototype.setHighlightIndentGuides=function(f){return this.$highlightIndentGuides===f?!1:(this.$highlightIndentGuides=f,f)},p.prototype.$computeTabString=function(){var f=this.session.getTabSize();this.tabSize=f;for(var g=this.$tabStrings=[0],m=1;mT&&(w=S.end.row+1,S=this.session.getNextFoldLine(w,S),T=S?S.start.row:1/0),!(w>y);){var C=b[x++];if(C){this.dom.removeChildren(C),this.$renderLine(C,w,w==T?S:!1),k&&(C.style.top=this.$lines.computeLineTop(w,f,this.session)+"px");var O=f.lineHeight*this.session.getRowLength(w)+"px";C.style.height!=O&&(k=!0,C.style.height=O)}w++}if(k)for(;x0;y--)this.$lines.shift();if(g.lastRow>f.lastRow)for(var y=this.session.getFoldedRowCount(f.lastRow+1,g.lastRow);y>0;y--)this.$lines.pop();f.firstRowg.lastRow&&this.$lines.push(this.$renderLinesFragment(f,g.lastRow+1,f.lastRow)),this.$highlightIndentGuide()},p.prototype.$renderLinesFragment=function(f,g,m){for(var v=[],y=g,b=this.session.getNextFoldLine(y),x=b?b.start.row:1/0;y>x&&(y=b.end.row+1,b=this.session.getNextFoldLine(y,b),x=b?b.start.row:1/0),!(y>m);){var k=this.$lines.createCell(y,f,this.session),w=k.element;this.dom.removeChildren(w),s.setStyle(w.style,"height",this.$lines.computeLineHeight(y,f,this.session)+"px"),s.setStyle(w.style,"top",this.$lines.computeLineTop(y,f,this.session)+"px"),this.$renderLine(w,y,y==x?b:!1),this.$useLineGroups()?w.className="ace_line_group":w.className="ace_line",v.push(k),y++}return v},p.prototype.update=function(f){this.$lines.moveContainer(f),this.config=f;for(var g=f.firstRow,m=f.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(f,g,m))},p.prototype.$renderToken=function(f,g,m,v){for(var y=this,b=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,x=this.dom.createFragment(this.element),k,w=0;k=b.exec(v);){var S=k[1],T=k[2],C=k[3],O=k[4],R=k[5];if(!(!y.showSpaces&&T)){var _=w!=k.index?v.slice(w,k.index):"";if(w=k.index+k[0].length,_&&x.appendChild(this.dom.createTextNode(_,this.element)),S){var A=y.session.getScreenTabSize(g+k.index);x.appendChild(y.$tabStrings[A].cloneNode(!0)),g+=A-1}else if(T)if(y.showSpaces){var E=this.dom.createElement("span");E.className="ace_invisible ace_invisible_space",E.textContent=l.stringRepeat(y.SPACE_CHAR,T.length),x.appendChild(E)}else x.appendChild(this.dom.createTextNode(T,this.element));else if(C){var E=this.dom.createElement("span");E.className="ace_invisible ace_invisible_space ace_invalid",E.textContent=l.stringRepeat(y.SPACE_CHAR,C.length),x.appendChild(E)}else if(O){g+=1;var E=this.dom.createElement("span");E.style.width=y.config.characterWidth*2+"px",E.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",E.textContent=y.showSpaces?y.SPACE_CHAR:O,x.appendChild(E)}else if(R){g+=1;var E=this.dom.createElement("span");E.style.width=y.config.characterWidth*2+"px",E.className="ace_cjk",E.textContent=R,x.appendChild(E)}}}if(x.appendChild(this.dom.createTextNode(w?v.slice(w):v,this.element)),d(m.type))f.appendChild(x);else{var M="ace_"+m.type.replace(/\./g," ace_"),E=this.dom.createElement("span");m.type=="fold"&&(E.style.width=m.value.length*this.config.characterWidth+"px",E.setAttribute("title",c("Unfold code"))),E.className=M,E.appendChild(x),f.appendChild(E)}return g+v.length},p.prototype.renderIndentGuide=function(f,g,m){var v=g.search(this.$indentGuideRe);if(v<=0||v>=m)return g;if(g[0]==" "){v-=v%this.tabSize;for(var y=v/this.tabSize,b=0;bb[x].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&f[g.row]!==""&&g.column===f[g.row].length){this.$highlightIndentGuideMarker.dir=1;for(var x=g.row+1;x0){for(var y=0;y=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,g)}}else for(var m=f.length-1;m>=0;m--){var v=f[m];if(this.$highlightIndentGuideMarker.end&&v.row=b;)x=this.$renderToken(k,x,S,T.substring(0,b-v)),T=T.substring(b-v),v=b,k=this.$createLineElement(),f.appendChild(k),k.appendChild(this.dom.createTextNode(l.stringRepeat(" ",m.indent),this.element)),y++,x=0,b=m[y]||Number.MAX_VALUE;T.length!=0&&(v+=T.length,x=this.$renderToken(k,x,S,T))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(k,x,null,"",!0)},p.prototype.$renderSimpleLine=function(f,g){for(var m=0,v=0;vthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(f,m,y,b);m=this.$renderToken(f,m,y,b)}}},p.prototype.$renderOverflowMessage=function(f,g,m,v,y){m&&this.$renderToken(f,g,m,v.slice(0,this.MAX_LINE_LENGTH-g));var b=this.dom.createElement("span");b.className="ace_inline_button ace_keyword ace_toggle_wrap",b.textContent=y?"":"",f.appendChild(b)},p.prototype.$renderLine=function(f,g,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(g)),m)var v=this.$getFoldLineTokens(g,m);else var v=this.session.getTokens(g);var y=f;if(v.length){var b=this.session.getRowSplitData(g);if(b&&b.length){this.$renderWrappedLine(f,v,b);var y=f.lastChild}else{var y=f;this.$useLineGroups()&&(y=this.$createLineElement(),f.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),f.appendChild(y));if(this.showEOL&&y){m&&(g=m.end.row);var x=this.dom.createElement("span");x.className="ace_invisible ace_invisible_eol",x.textContent=g==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(x)}},p.prototype.$getFoldLineTokens=function(f,g){var m=this.session,v=[];function y(x,k,w){for(var S=0,T=0;T+x[S].value.lengthw-k&&(C=C.substring(0,w-k)),v.push({type:x[S].type,value:C}),T=k+C.length,S+=1}for(;Tw?v.push({type:x[S].type,value:C.substring(0,w-T)}):v.push(x[S]),T+=C.length,S+=1}}var b=m.getTokens(f);return g.walk(function(x,k,w,S,T){x!=null?v.push({type:"fold",value:x}):(T&&(b=m.getTokens(k)),b.length&&y(b,S,w))},g.end.row,this.session.getLine(g.end.row).length),v},p.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},p}();h.prototype.EOF_CHAR="¶",h.prototype.EOL_CHAR_LF="¬",h.prototype.EOL_CHAR_CRLF="¤",h.prototype.EOL_CHAR=h.prototype.EOL_CHAR_LF,h.prototype.TAB_CHAR="—",h.prototype.SPACE_CHAR="·",h.prototype.$padding=0,h.prototype.MAX_LINE_LENGTH=1e4,h.prototype.showInvisibles=!1,h.prototype.showSpaces=!1,h.prototype.showTabs=!1,h.prototype.showEOL=!1,h.prototype.displayIndentGuides=!0,h.prototype.$highlightIndentGuides=!0,h.prototype.$tabStrings=[],h.prototype.destroy={},h.prototype.onChangeTabSize=h.prototype.$computeTabString,i.implement(h.prototype,u),r.Text=h}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,r,o){var i=n("../lib/dom"),s=function(){function l(a){this.element=i.createElement("div"),this.element.className="ace_layer ace_cursor-layer",a.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),i.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return l.prototype.$updateOpacity=function(a){for(var u=this.cursors,c=u.length;c--;)i.setStyle(u[c].style,"opacity",a?"":"0")},l.prototype.$startCssAnimation=function(){for(var a=this.cursors,u=a.length;u--;)a[u].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&i.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},l.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,i.removeCssClass(this.element,"ace_animate-blinking")},l.prototype.setPadding=function(a){this.$padding=a},l.prototype.setSession=function(a){this.session=a},l.prototype.setBlinking=function(a){a!=this.isBlinking&&(this.isBlinking=a,this.restartTimer())},l.prototype.setBlinkInterval=function(a){a!=this.blinkInterval&&(this.blinkInterval=a,this.restartTimer())},l.prototype.setSmoothBlinking=function(a){a!=this.smoothBlinking&&(this.smoothBlinking=a,i.setCssClass(this.element,"ace_smooth-blinking",a),this.$updateCursors(!0),this.restartTimer())},l.prototype.addCursor=function(){var a=i.createElement("div");return a.className="ace_cursor",this.element.appendChild(a),this.cursors.push(a),a},l.prototype.removeCursor=function(){if(this.cursors.length>1){var a=this.cursors.pop();return a.parentNode.removeChild(a),a}},l.prototype.hideCursor=function(){this.isVisible=!1,i.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},l.prototype.showCursor=function(){this.isVisible=!0,i.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},l.prototype.restartTimer=function(){var a=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,i.removeCssClass(this.element,"ace_smooth-blinking")),a(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&i.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),i.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var u=(function(){this.timeoutId=setTimeout(function(){a(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){a(!0),u()},this.blinkInterval),u()}},l.prototype.getPixelPosition=function(a,u){if(!this.config||!this.session)return{left:0,top:0};a||(a=this.session.selection.getCursor());var c=this.session.documentToScreenPosition(a),d=this.$padding+(this.session.$bidiHandler.isBidiRow(c.row,a.row)?this.session.$bidiHandler.getPosLeft(c.column):c.column*this.config.characterWidth),h=(c.row-(u?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:d,top:h}},l.prototype.isCursorInView=function(a,u){return a.top>=0&&a.topa.height+a.offset||p.top<0)&&c>1)){var f=this.cursors[d++]||this.addCursor(),g=f.style;this.drawCursor?this.drawCursor(f,p,a,u[c],this.session):this.isCursorInView(p,a)?(i.setStyle(g,"display","block"),i.translate(f,p.left,p.top),i.setStyle(g,"width",Math.round(a.characterWidth)+"px"),i.setStyle(g,"height",a.lineHeight+"px")):i.setStyle(g,"display","none")}}for(;this.cursors.length>d;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=p,this.restartTimer()},l.prototype.$setOverwrite=function(a){a!=this.overwrite&&(this.overwrite=a,a?i.addCssClass(this.element,"ace_overwrite-cursors"):i.removeCssClass(this.element,"ace_overwrite-cursors"))},l.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},l}();s.prototype.$padding=0,s.prototype.drawCursor=null,r.Cursor=s}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,o){var i=this&&this.__extends||function(){var f=function(g,m){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(v[b]=y[b])},f(g,m)};return function(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");f(g,m);function v(){this.constructor=g}g.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),s=n("./lib/oop"),l=n("./lib/dom"),a=n("./lib/event"),u=n("./lib/event_emitter").EventEmitter,c=32768,d=function(){function f(g,m){this.element=l.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+m,this.inner=l.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),g.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addListener(this.element,"scroll",this.onScroll.bind(this)),a.addListener(this.element,"mousedown",a.preventDefault)}return f.prototype.setVisible=function(g){this.element.style.display=g?"":"none",this.isVisible=g,this.coeff=1},f}();s.implement(d.prototype,u);var h=function(f){i(g,f);function g(m,v){var y=f.call(this,m,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,v.$scrollbarWidth=y.width=l.scrollbarWidth(m.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return g.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},g.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},g.prototype.setHeight=function(m){this.element.style.height=m+"px"},g.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>c?(this.coeff=c/m,m=c):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},g.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},g}(d);h.prototype.setInnerHeight=h.prototype.setScrollHeight;var p=function(f){i(g,f);function g(m,v){var y=f.call(this,m,"-h")||this;return y.scrollLeft=0,y.height=v.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return g.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},g.prototype.getHeight=function(){return this.isVisible?this.height:0},g.prototype.setWidth=function(m){this.element.style.width=m+"px"},g.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},g.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},g.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},g}(d);r.ScrollBar=h,r.ScrollBarV=h,r.ScrollBarH=p,r.VScrollBar=h,r.HScrollBar=p}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,o){var i=this&&this.__extends||function(){var p=function(f,g){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(m[y]=v[y])},p(f,g)};return function(f,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");p(f,g);function m(){this.constructor=f}f.prototype=g===null?Object.create(g):(m.prototype=g.prototype,new m)}}(),s=n("./lib/oop"),l=n("./lib/dom"),a=n("./lib/event"),u=n("./lib/event_emitter").EventEmitter;l.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{ position: absolute; background: rgba(128, 128, 128, 0.6); -moz-box-sizing: border-box; @@ -5397,7 +5403,7 @@ ${u} .ace_editor>.ace_sb_grabbed { z-index: 8; background: #000; -}`,"ace_scrollbar.css",!1);var c=function(){function p(f,g){this.element=l.createElement("div"),this.element.className="ace_sb"+g,this.inner=l.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,f.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return p.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},p}();s.implement(c.prototype,u);var d=function(p){i(f,p);function f(g,m){var v=p.call(this,g,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=g,v.width=v.VScrollWidth,v.renderer=m,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return f.prototype.onMouseDown=function(g,m){if(g==="mousedown"&&!(a.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientY,b=function(O){y=O.clientY},x=function(){clearInterval(A)},k=m.clientY,w=this.thumbTop,S=function(){if(y!==void 0){var O=v.scrollTopFromThumbTop(w+y-k);O!==v.scrollTop&&v._emit("scroll",{data:O})}};a.capture(this.inner,b,x);var A=setInterval(S,20);return a.preventDefault(m)}var C=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(C)}),a.preventDefault(m)}},f.prototype.getHeight=function(){return this.height},f.prototype.scrollTopFromThumbTop=function(g){var m=g*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return m=m>>0,m<0?m=0:m>this.pageHeight-this.viewHeight&&(m=this.pageHeight-this.viewHeight),m},f.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},f.prototype.setHeight=function(g){this.height=Math.max(0,g),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},f.prototype.setScrollHeight=function(g,m){this.pageHeight===g&&!m||(this.pageHeight=g,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},f.prototype.setScrollTop=function(g){this.scrollTop=g,g<0&&(g=0),this.thumbTop=g*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},f}(c);d.prototype.setInnerHeight=d.prototype.setScrollHeight;var h=function(p){i(f,p);function f(g,m){var v=p.call(this,g,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=m,v}return f.prototype.onMouseDown=function(g,m){if(g==="mousedown"&&!(a.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientX,b=function(O){y=O.clientX},x=function(){clearInterval(A)},k=m.clientX,w=this.thumbLeft,S=function(){if(y!==void 0){var O=v.scrollLeftFromThumbLeft(w+y-k);O!==v.scrollLeft&&v._emit("scroll",{data:O})}};a.capture(this.inner,b,x);var A=setInterval(S,20);return a.preventDefault(m)}var C=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(C)}),a.preventDefault(m)}},f.prototype.getHeight=function(){return this.isVisible?this.height:0},f.prototype.scrollLeftFromThumbLeft=function(g){var m=g*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return m=m>>0,m<0?m=0:m>this.pageWidth-this.viewWidth&&(m=this.pageWidth-this.viewWidth),m},f.prototype.setWidth=function(g){this.width=Math.max(0,g),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},f.prototype.setScrollWidth=function(g,m){this.pageWidth===g&&!m||(this.pageWidth=g,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},f.prototype.setScrollLeft=function(g){this.scrollLeft=g,g<0&&(g=0),this.thumbLeft=g*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},f}(c);h.prototype.setInnerWidth=h.prototype.setScrollWidth,r.ScrollBar=d,r.ScrollBarV=d,r.ScrollBarH=h,r.VScrollBar=d,r.HScrollBar=h}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,r,o){var i=n("./lib/event"),s=function(){function l(a,u){this.onRender=a,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=u||window;var c=this;this._flush=function(d){c.pending=!1;var h=c.changes;if(h&&(i.blockIdle(100),c.changes=0,c.onRender(h)),c.changes){if(c.$recursionLimit--<0)return;c.schedule()}else c.$recursionLimit=2}}return l.prototype.schedule=function(a){this.changes=this.changes|a,this.changes&&!this.pending&&(i.nextFrame(this._flush),this.pending=!0)},l.prototype.clear=function(a){var u=this.changes;return this.changes=0,u},l}();r.RenderLoop=s}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,r,o){var i=n("../lib/oop"),s=n("../lib/dom"),l=n("../lib/lang"),a=n("../lib/event"),u=n("../lib/useragent"),c=n("../lib/event_emitter").EventEmitter,d=512,h=typeof ResizeObserver=="function",p=200,f=function(){function g(m){this.el=s.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=s.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=s.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=l.stringRepeat("X",d),this.$characterSize={width:0,height:0},h?this.$addObserver():this.checkForSizeChanges()}return g.prototype.$setMeasureNodeStyles=function(m,v){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",u.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=v?"hidden":"visible"},g.prototype.checkForSizeChanges=function(m){if(m===void 0&&(m=this.$measureSizes()),m&&(this.$characterSize.width!==m.width||this.$characterSize.height!==m.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===m.width&&v.height===m.height,this._emit("changeCharacterSize",{data:m})}},g.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(v){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},g.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=a.onIdle(function v(){m.checkForSizeChanges(),a.onIdle(v,500)},500)},g.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},g.prototype.$measureSizes=function(m){var v={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/d};return v.width===0||v.height===0?null:v},g.prototype.$measureCharWidth=function(m){this.$main.textContent=l.stringRepeat(m,d);var v=this.$main.getBoundingClientRect();return v.width/d},g.prototype.getCharacterWidth=function(m){var v=this.charSizes[m];return v===void 0&&(v=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),v},g.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},g.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(window.getComputedStyle(m).zoom||1)*this.$getZoom(m.parentElement)},g.prototype.$initTransformMeasureNodes=function(){var m=function(v,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"px;"}]};this.els=s.buildDom([m(0,0),m(p,0),m(0,p),m(p,p)],this.el)},g.prototype.transformCoordinates=function(m,v){if(m){var y=this.$getZoom(this.el);m=w(1/y,m)}function b(P,F,H){var W=P[1]*F[0]-P[0]*F[1];return[(-F[1]*H[0]+F[0]*H[1])/W,(+P[1]*H[0]-P[0]*H[1])/W]}function x(P,F){return[P[0]-F[0],P[1]-F[1]]}function k(P,F){return[P[0]+F[0],P[1]+F[1]]}function w(P,F){return[P*F[0],P*F[1]]}this.els||this.$initTransformMeasureNodes();function S(P){var F=P.getBoundingClientRect();return[F.left,F.top]}var A=S(this.els[0]),C=S(this.els[1]),O=S(this.els[2]),R=S(this.els[3]),_=b(x(R,C),x(R,O),x(k(C,O),k(R,A))),T=w(1+_[0],x(C,A)),E=w(1+_[1],x(O,A));if(v){var M=v,I=_[0]*M[0]/p+_[1]*M[1]/p+1,N=k(w(M[0],T),w(M[1],E));return k(w(1/I/p,N),A)}var L=x(m,A),$=b(x(T,w(_[0],L)),x(E,w(_[1],L)),L);return w(p,$)},g}();f.prototype.$characterSize={width:0,height:0},i.implement(f.prototype,c),r.FontMetrics=f}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,r,o){o.exports=` +}`,"ace_scrollbar.css",!1);var c=function(){function p(f,g){this.element=l.createElement("div"),this.element.className="ace_sb"+g,this.inner=l.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,f.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,a.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return p.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},p}();s.implement(c.prototype,u);var d=function(p){i(f,p);function f(g,m){var v=p.call(this,g,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=g,v.width=v.VScrollWidth,v.renderer=m,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return f.prototype.onMouseDown=function(g,m){if(g==="mousedown"&&!(a.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientY,b=function(O){y=O.clientY},x=function(){clearInterval(T)},k=m.clientY,w=this.thumbTop,S=function(){if(y!==void 0){var O=v.scrollTopFromThumbTop(w+y-k);O!==v.scrollTop&&v._emit("scroll",{data:O})}};a.capture(this.inner,b,x);var T=setInterval(S,20);return a.preventDefault(m)}var C=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(C)}),a.preventDefault(m)}},f.prototype.getHeight=function(){return this.height},f.prototype.scrollTopFromThumbTop=function(g){var m=g*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return m=m>>0,m<0?m=0:m>this.pageHeight-this.viewHeight&&(m=this.pageHeight-this.viewHeight),m},f.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},f.prototype.setHeight=function(g){this.height=Math.max(0,g),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},f.prototype.setScrollHeight=function(g,m){this.pageHeight===g&&!m||(this.pageHeight=g,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},f.prototype.setScrollTop=function(g){this.scrollTop=g,g<0&&(g=0),this.thumbTop=g*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},f}(c);d.prototype.setInnerHeight=d.prototype.setScrollHeight;var h=function(p){i(f,p);function f(g,m){var v=p.call(this,g,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=m,v}return f.prototype.onMouseDown=function(g,m){if(g==="mousedown"&&!(a.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientX,b=function(O){y=O.clientX},x=function(){clearInterval(T)},k=m.clientX,w=this.thumbLeft,S=function(){if(y!==void 0){var O=v.scrollLeftFromThumbLeft(w+y-k);O!==v.scrollLeft&&v._emit("scroll",{data:O})}};a.capture(this.inner,b,x);var T=setInterval(S,20);return a.preventDefault(m)}var C=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(C)}),a.preventDefault(m)}},f.prototype.getHeight=function(){return this.isVisible?this.height:0},f.prototype.scrollLeftFromThumbLeft=function(g){var m=g*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return m=m>>0,m<0?m=0:m>this.pageWidth-this.viewWidth&&(m=this.pageWidth-this.viewWidth),m},f.prototype.setWidth=function(g){this.width=Math.max(0,g),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},f.prototype.setScrollWidth=function(g,m){this.pageWidth===g&&!m||(this.pageWidth=g,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},f.prototype.setScrollLeft=function(g){this.scrollLeft=g,g<0&&(g=0),this.thumbLeft=g*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},f}(c);h.prototype.setInnerWidth=h.prototype.setScrollWidth,r.ScrollBar=d,r.ScrollBarV=d,r.ScrollBarH=h,r.VScrollBar=d,r.HScrollBar=h}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,r,o){var i=n("./lib/event"),s=function(){function l(a,u){this.onRender=a,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=u||window;var c=this;this._flush=function(d){c.pending=!1;var h=c.changes;if(h&&(i.blockIdle(100),c.changes=0,c.onRender(h)),c.changes){if(c.$recursionLimit--<0)return;c.schedule()}else c.$recursionLimit=2}}return l.prototype.schedule=function(a){this.changes=this.changes|a,this.changes&&!this.pending&&(i.nextFrame(this._flush),this.pending=!0)},l.prototype.clear=function(a){var u=this.changes;return this.changes=0,u},l}();r.RenderLoop=s}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,r,o){var i=n("../lib/oop"),s=n("../lib/dom"),l=n("../lib/lang"),a=n("../lib/event"),u=n("../lib/useragent"),c=n("../lib/event_emitter").EventEmitter,d=512,h=typeof ResizeObserver=="function",p=200,f=function(){function g(m){this.el=s.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=s.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=s.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=l.stringRepeat("X",d),this.$characterSize={width:0,height:0},h?this.$addObserver():this.checkForSizeChanges()}return g.prototype.$setMeasureNodeStyles=function(m,v){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",u.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=v?"hidden":"visible"},g.prototype.checkForSizeChanges=function(m){if(m===void 0&&(m=this.$measureSizes()),m&&(this.$characterSize.width!==m.width||this.$characterSize.height!==m.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===m.width&&v.height===m.height,this._emit("changeCharacterSize",{data:m})}},g.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(v){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},g.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=a.onIdle(function v(){m.checkForSizeChanges(),a.onIdle(v,500)},500)},g.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},g.prototype.$measureSizes=function(m){var v={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/d};return v.width===0||v.height===0?null:v},g.prototype.$measureCharWidth=function(m){this.$main.textContent=l.stringRepeat(m,d);var v=this.$main.getBoundingClientRect();return v.width/d},g.prototype.getCharacterWidth=function(m){var v=this.charSizes[m];return v===void 0&&(v=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),v},g.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},g.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(window.getComputedStyle(m).zoom||1)*this.$getZoom(m.parentElement)},g.prototype.$initTransformMeasureNodes=function(){var m=function(v,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"px;"}]};this.els=s.buildDom([m(0,0),m(p,0),m(0,p),m(p,p)],this.el)},g.prototype.transformCoordinates=function(m,v){if(m){var y=this.$getZoom(this.el);m=w(1/y,m)}function b(P,F,H){var W=P[1]*F[0]-P[0]*F[1];return[(-F[1]*H[0]+F[0]*H[1])/W,(+P[1]*H[0]-P[0]*H[1])/W]}function x(P,F){return[P[0]-F[0],P[1]-F[1]]}function k(P,F){return[P[0]+F[0],P[1]+F[1]]}function w(P,F){return[P*F[0],P*F[1]]}this.els||this.$initTransformMeasureNodes();function S(P){var F=P.getBoundingClientRect();return[F.left,F.top]}var T=S(this.els[0]),C=S(this.els[1]),O=S(this.els[2]),R=S(this.els[3]),_=b(x(R,C),x(R,O),x(k(C,O),k(R,T))),A=w(1+_[0],x(C,T)),E=w(1+_[1],x(O,T));if(v){var M=v,I=_[0]*M[0]/p+_[1]*M[1]/p+1,N=k(w(M[0],A),w(M[1],E));return k(w(1/I/p,N),T)}var L=x(m,T),$=b(x(A,w(_[0],L)),x(E,w(_[1],L)),L);return w(p,$)},g}();f.prototype.$characterSize={width:0,height:0},i.implement(f.prototype,c),r.FontMetrics=f}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,r,o){o.exports=` .ace_br1 {border-top-left-radius : 3px;} .ace_br2 {border-top-right-radius : 3px;} .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;} @@ -6054,11 +6060,11 @@ ${u} width:1px; height:1px; overflow:hidden; -}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,r,o){var i=n("../lib/dom"),s=n("../lib/oop"),l=n("../lib/event_emitter").EventEmitter,a=function(){function u(c,d){this.canvas=i.createElement("canvas"),this.renderer=d,this.pixelRatio=1,this.maxHeight=d.layerConfig.maxHeight,this.lineHeight=d.layerConfig.lineHeight,this.canvasHeight=c.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=c.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},c.element.appendChild(this.canvas)}return u.prototype.$updateDecorators=function(c){var d=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(c){this.maxHeight=c.maxHeight,this.lineHeight=c.lineHeight,this.canvasHeight=c.height;var h=(c.lastRow+1)*this.lineHeight;h_.priority?1:0}var g=this.renderer.session.$annotations;if(p.clearRect(0,0,this.canvas.width,this.canvas.height),g){var m={info:1,warning:2,error:3};g.forEach(function(R){R.priority=m[R.type]||null}),g=g.sort(f);for(var v=this.renderer.session.$foldData,y=0;ythis.canvasHeight&&(C=this.canvasHeight-this.halfMinDecorationHeight),w=Math.round(C-this.halfMinDecorationHeight),S=Math.round(C+this.halfMinDecorationHeight)}p.fillStyle=d[g[y].type]||null,p.fillRect(0,k,this.canvasWidth,S-w)}}var O=this.renderer.session.selection.getCursor();if(O){var x=this.compensateFoldRows(O.row,v),k=Math.round((O.row-x)*this.lineHeight*this.heightRatio);p.fillStyle="rgba(0, 0, 0, 0.5)",p.fillRect(0,k,this.canvasWidth,2)}},u.prototype.compensateFoldRows=function(c,d){var h=0;if(d&&d.length>0)for(var p=0;pd[p].start.row&&c=d[p].end.row&&(h+=d[p].end.row-d[p].start.row);return h},u}();s.implement(a.prototype,l),r.Decorator=a}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(n,r,o){var i=n("./lib/oop"),s=n("./lib/dom"),l=n("./lib/lang"),a=n("./config"),u=n("./layer/gutter").Gutter,c=n("./layer/marker").Marker,d=n("./layer/text").Text,h=n("./layer/cursor").Cursor,p=n("./scrollbar").HScrollBar,f=n("./scrollbar").VScrollBar,g=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,b=n("./lib/event_emitter").EventEmitter,x=n("./css/editor-css"),k=n("./layer/decorators").Decorator,w=n("./lib/useragent");s.importCssString(x,"ace_editor.css",!1);var S=function(){function A(C,O){var R=this;this.container=C||s.createElement("div"),s.addCssClass(this.container,"ace_editor"),s.HI_DPI&&s.addCssClass(this.container,"ace_hidpi"),this.setTheme(O),a.get("useStrictCSP")==null&&a.set("useStrictCSP",!1),this.$gutter=s.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=s.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=s.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new u(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new c(this.content);var _=this.$textLayer=new d(this.content);this.canvas=_.element,this.$markerFront=new c(this.content),this.$cursorLayer=new h(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new f(this.container,this),this.scrollBarH=new p(this.container,this),this.scrollBarV.on("scroll",function(T){R.$scrollAnimation||R.session.setScrollTop(T.data-R.scrollMargin.top)}),this.scrollBarH.on("scroll",function(T){R.$scrollAnimation||R.session.setScrollLeft(T.data-R.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(T){R.updateCharacterSize(),R.onResize(!0,R.gutterWidth,R.$size.width,R.$size.height),R._signal("changeCharacterSize",T)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!w.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),a.resetOptions(this),a._signal("renderer",this)}return A.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),s.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},A.prototype.setSession=function(C){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=C,C&&this.scrollMargin.top&&C.getScrollTop()<=0&&C.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(C),this.$markerBack.setSession(C),this.$markerFront.setSession(C),this.$gutterLayer.setSession(C),this.$textLayer.setSession(C),C&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},A.prototype.updateLines=function(C,O,R){if(O===void 0&&(O=1/0),this.$changedLines?(this.$changedLines.firstRow>C&&(this.$changedLines.firstRow=C),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},A.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},A.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},A.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},A.prototype.updateFull=function(C){C?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},A.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},A.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},A.prototype.onResize=function(C,O,R,_){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=C?1:0;var T=this.container;_||(_=T.clientHeight||T.scrollHeight),R||(R=T.clientWidth||T.scrollWidth);var E=this.$updateCachedSize(C,O,R,_);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!R&&!_)return this.resizing=0;C&&(this.$gutterLayer.$padding=null),C?this.$renderChanges(E|this.$changes,!0):this.$loop.schedule(E|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},A.prototype.$updateCachedSize=function(C,O,R,_){_-=this.$extraHeight||0;var T=0,E=this.$size,M={width:E.width,height:E.height,scrollerHeight:E.scrollerHeight,scrollerWidth:E.scrollerWidth};if(_&&(C||E.height!=_)&&(E.height=_,T|=this.CHANGE_SIZE,E.scrollerHeight=E.height,this.$horizScroll&&(E.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(E.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",T=T|this.CHANGE_SCROLL),R&&(C||E.width!=R)){T|=this.CHANGE_SIZE,E.width=R,O==null&&(O=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=O,s.setStyle(this.scrollBarH.element.style,"left",O+"px"),s.setStyle(this.scroller.style,"left",O+this.margin.left+"px"),E.scrollerWidth=Math.max(0,R-O-this.scrollBarV.getWidth()-this.margin.h),s.setStyle(this.$gutter.style,"left",this.margin.left+"px");var I=this.scrollBarV.getWidth()+"px";s.setStyle(this.scrollBarH.element.style,"right",I),s.setStyle(this.scroller.style,"right",I),s.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(E.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||C)&&(T|=this.CHANGE_FULL)}return E.$dirty=!R||!_,T&&this._signal("resize",M),T},A.prototype.onGutterResize=function(C){var O=this.$showGutter?C:0;O!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,O,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},A.prototype.adjustWrapLimit=function(){var C=this.$size.scrollerWidth-this.$padding*2,O=Math.floor(C/this.characterWidth);return this.session.adjustWrapLimit(O,this.$showPrintMargin&&this.$printMarginColumn)},A.prototype.setAnimatedScroll=function(C){this.setOption("animatedScroll",C)},A.prototype.getAnimatedScroll=function(){return this.$animatedScroll},A.prototype.setShowInvisibles=function(C){this.setOption("showInvisibles",C),this.session.$bidiHandler.setShowInvisibles(C)},A.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},A.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},A.prototype.setDisplayIndentGuides=function(C){this.setOption("displayIndentGuides",C)},A.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},A.prototype.setHighlightIndentGuides=function(C){this.setOption("highlightIndentGuides",C)},A.prototype.setShowPrintMargin=function(C){this.setOption("showPrintMargin",C)},A.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},A.prototype.setPrintMarginColumn=function(C){this.setOption("printMarginColumn",C)},A.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},A.prototype.getShowGutter=function(){return this.getOption("showGutter")},A.prototype.setShowGutter=function(C){return this.setOption("showGutter",C)},A.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},A.prototype.setFadeFoldWidgets=function(C){this.setOption("fadeFoldWidgets",C)},A.prototype.setHighlightGutterLine=function(C){this.setOption("highlightGutterLine",C)},A.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},A.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var C=s.createElement("div");C.className="ace_layer ace_print-margin-layer",this.$printMarginEl=s.createElement("div"),this.$printMarginEl.className="ace_print-margin",C.appendChild(this.$printMarginEl),this.content.insertBefore(C,this.content.firstChild)}var O=this.$printMarginEl.style;O.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",O.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},A.prototype.getContainerElement=function(){return this.container},A.prototype.getMouseEventTarget=function(){return this.scroller},A.prototype.getTextAreaContainer=function(){return this.container},A.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var C=this.textarea.style,O=this.$composition;if(!this.$keepTextAreaAtCursor&&!O){s.translate(this.textarea,-100,0);return}var R=this.$cursorLayer.$pixelPos;if(R){O&&O.markerRange&&(R=this.$cursorLayer.getPixelPosition(O.markerRange.start,!0));var _=this.layerConfig,T=R.top,E=R.left;T-=_.offset;var M=O&&O.useTextareaForIME||w.isMobile?this.lineHeight:1;if(T<0||T>_.height-M){s.translate(this.textarea,0,0);return}var I=1,N=this.$size.height-M;if(!O)T+=this.lineHeight;else if(O.useTextareaForIME){var L=this.textarea.value;I=this.characterWidth*this.session.$getStringScreenWidth(L)[0]}else T+=this.lineHeight+2;E-=this.scrollLeft,E>this.$size.scrollerWidth-I&&(E=this.$size.scrollerWidth-I),E+=this.gutterWidth+this.margin.left,s.setStyle(C,"height",M+"px"),s.setStyle(C,"width",I+"px"),s.translate(this.textarea,Math.min(E,this.$size.scrollerWidth-I),Math.min(T,N))}}},A.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},A.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},A.prototype.getLastFullyVisibleRow=function(){var C=this.layerConfig,O=C.lastRow,R=this.session.documentToScreenRow(O,0)*C.lineHeight;return R-this.session.getScrollTop()>C.height-C.lineHeight?O-1:O},A.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},A.prototype.setPadding=function(C){this.$padding=C,this.$textLayer.setPadding(C),this.$cursorLayer.setPadding(C),this.$markerFront.setPadding(C),this.$markerBack.setPadding(C),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},A.prototype.setScrollMargin=function(C,O,R,_){var T=this.scrollMargin;T.top=C|0,T.bottom=O|0,T.right=_|0,T.left=R|0,T.v=T.top+T.bottom,T.h=T.left+T.right,T.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-T.top),this.updateFull()},A.prototype.setMargin=function(C,O,R,_){var T=this.margin;T.top=C|0,T.bottom=O|0,T.right=_|0,T.left=R|0,T.v=T.top+T.bottom,T.h=T.left+T.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},A.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},A.prototype.setHScrollBarAlwaysVisible=function(C){this.setOption("hScrollBarAlwaysVisible",C)},A.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},A.prototype.setVScrollBarAlwaysVisible=function(C){this.setOption("vScrollBarAlwaysVisible",C)},A.prototype.$updateScrollBarV=function(){var C=this.layerConfig.maxHeight,O=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(C-=(O-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>C-O&&(C=this.scrollTop+O,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(C+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},A.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},A.prototype.freeze=function(){this.$frozen=!0},A.prototype.unfreeze=function(){this.$frozen=!1},A.prototype.$renderChanges=function(C,O){if(this.$changes&&(C|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!C&&!O){this.$changes|=C;return}if(this.$size.$dirty)return this.$changes|=C,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",C),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var R=this.layerConfig;if(C&this.CHANGE_FULL||C&this.CHANGE_SIZE||C&this.CHANGE_TEXT||C&this.CHANGE_LINES||C&this.CHANGE_SCROLL||C&this.CHANGE_H_SCROLL){if(C|=this.$computeLayerConfig()|this.$loop.clear(),R.firstRow!=this.layerConfig.firstRow&&R.firstRowScreen==this.layerConfig.firstRowScreen){var _=this.scrollTop+(R.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;_>0&&(this.scrollTop=_,C=C|this.CHANGE_SCROLL,C|=this.$computeLayerConfig()|this.$loop.clear())}R=this.layerConfig,this.$updateScrollBarV(),C&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),s.translate(this.content,-this.scrollLeft,-R.offset);var T=R.width+2*this.$padding+"px",E=R.minHeight+"px";s.setStyle(this.content.style,"width",T),s.setStyle(this.content.style,"height",E)}if(C&this.CHANGE_H_SCROLL&&(s.translate(this.content,-this.scrollLeft,-R.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),C&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(R),this.$showGutter&&this.$gutterLayer.update(R),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(R),this.$markerBack.update(R),this.$markerFront.update(R),this.$cursorLayer.update(R),this.$moveTextAreaToCursor(),this._signal("afterRender",C);return}if(C&this.CHANGE_SCROLL){this.$changedLines=null,C&this.CHANGE_TEXT||C&this.CHANGE_LINES?this.$textLayer.update(R):this.$textLayer.scrollLines(R),this.$showGutter&&(C&this.CHANGE_GUTTER||C&this.CHANGE_LINES?this.$gutterLayer.update(R):this.$gutterLayer.scrollLines(R)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(R),this.$markerBack.update(R),this.$markerFront.update(R),this.$cursorLayer.update(R),this.$moveTextAreaToCursor(),this._signal("afterRender",C);return}C&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(R),this.$showGutter&&this.$gutterLayer.update(R),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(R)):C&this.CHANGE_LINES?((this.$updateLines()||C&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(R),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(R)):C&this.CHANGE_TEXT||C&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(R),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(R)):C&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(R),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(R)),C&this.CHANGE_CURSOR&&(this.$cursorLayer.update(R),this.$moveTextAreaToCursor()),C&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(R),C&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(R),this._signal("afterRender",C)},A.prototype.$autosize=function(){var C=this.session.getScreenLength()*this.lineHeight,O=this.$maxLines*this.lineHeight,R=Math.min(O,Math.max((this.$minLines||1)*this.lineHeight,C))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(R+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&R>this.$maxPixelHeight&&(R=this.$maxPixelHeight);var _=R<=2*this.lineHeight,T=!_&&C>O;if(R!=this.desiredHeight||this.$size.height!=this.desiredHeight||T!=this.$vScroll){T!=this.$vScroll&&(this.$vScroll=T,this.scrollBarV.setVisible(T));var E=this.container.clientWidth;this.container.style.height=R+"px",this.$updateCachedSize(!0,this.$gutterWidth,E,R),this.desiredHeight=R,this._signal("autosize")}},A.prototype.$computeLayerConfig=function(){var C=this.session,O=this.$size,R=O.height<=2*this.lineHeight,_=this.session.getScreenLength(),T=_*this.lineHeight,E=this.$getLongestLine(),M=!R&&(this.$hScrollBarAlwaysVisible||O.scrollerWidth-E-2*this.$padding<0),I=this.$horizScroll!==M;I&&(this.$horizScroll=M,this.scrollBarH.setVisible(M));var N=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var L=O.scrollerHeight+this.lineHeight,$=!this.$maxLines&&this.$scrollPastEnd?(O.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;T+=$;var P=this.scrollMargin;this.session.setScrollTop(Math.max(-P.top,Math.min(this.scrollTop,T-O.scrollerHeight+P.bottom))),this.session.setScrollLeft(Math.max(-P.left,Math.min(this.scrollLeft,E+2*this.$padding-O.scrollerWidth+P.right)));var F=!R&&(this.$vScrollBarAlwaysVisible||O.scrollerHeight-T+$<0||this.scrollTop>P.top),H=N!==F;H&&(this.$vScroll=F,this.scrollBarV.setVisible(F));var W=this.scrollTop%this.lineHeight,B=Math.ceil(L/this.lineHeight)-1,U=Math.max(0,Math.round((this.scrollTop-W)/this.lineHeight)),G=U+B,Y,X,Z=this.lineHeight;U=C.screenToDocumentRow(U,0);var ne=C.getFoldLine(U);ne&&(U=ne.start.row),Y=C.documentToScreenRow(U,0),X=C.getRowLength(U)*Z,G=Math.min(C.screenToDocumentRow(G,0),C.getLength()-1),L=O.scrollerHeight+C.getRowLength(G)*Z+X,W=this.scrollTop-Y*Z;var de=0;return(this.layerConfig.width!=E||I)&&(de=this.CHANGE_H_SCROLL),(I||H)&&(de|=this.$updateCachedSize(!0,this.gutterWidth,O.width,O.height),this._signal("scrollbarVisibilityChanged"),H&&(E=this.$getLongestLine())),this.layerConfig={width:E,padding:this.$padding,firstRow:U,firstRowScreen:Y,lastRow:G,lineHeight:Z,characterWidth:this.characterWidth,minHeight:L,maxHeight:T,offset:W,gutterOffset:Z?Math.max(0,Math.ceil((W+O.height-O.scrollerHeight)/Z)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(E-this.$padding),de},A.prototype.$updateLines=function(){if(this.$changedLines){var C=this.$changedLines.firstRow,O=this.$changedLines.lastRow;this.$changedLines=null;var R=this.layerConfig;if(!(C>R.lastRow+1)&&!(Othis.$textLayer.MAX_LINE_LENGTH&&(C=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(C*this.characterWidth))},A.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},A.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},A.prototype.addGutterDecoration=function(C,O){this.$gutterLayer.addGutterDecoration(C,O)},A.prototype.removeGutterDecoration=function(C,O){this.$gutterLayer.removeGutterDecoration(C,O)},A.prototype.updateBreakpoints=function(C){this._rows=C,this.$loop.schedule(this.CHANGE_GUTTER)},A.prototype.setAnnotations=function(C){this.$gutterLayer.setAnnotations(C),this.$loop.schedule(this.CHANGE_GUTTER)},A.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},A.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},A.prototype.showCursor=function(){this.$cursorLayer.showCursor()},A.prototype.scrollSelectionIntoView=function(C,O,R){this.scrollCursorIntoView(C,R),this.scrollCursorIntoView(O,R)},A.prototype.scrollCursorIntoView=function(C,O,R){if(this.$size.scrollerHeight!==0){var _=this.$cursorLayer.getPixelPosition(C),T=_.left,E=_.top,M=R&&R.top||0,I=R&&R.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var N=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;N+M>E?(O&&N+M>E+this.lineHeight&&(E-=O*this.$size.scrollerHeight),E===0&&(E=-this.scrollMargin.top),this.session.setScrollTop(E)):N+this.$size.scrollerHeight-I=1-this.scrollMargin.top||O>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||C<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||C>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},A.prototype.pixelToScreenCoordinates=function(C,O){var R;if(this.$hasCssTransforms){R={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([C,O]);C=_[1]-this.gutterWidth-this.margin.left,O=_[0]}else R=this.scroller.getBoundingClientRect();var T=C+this.scrollLeft-R.left-this.$padding,E=T/this.characterWidth,M=Math.floor((O+this.scrollTop-R.top)/this.lineHeight),I=this.$blockCursor?Math.floor(E):Math.round(E);return{row:M,column:I,side:E-I>0?1:-1,offsetX:T}},A.prototype.screenToTextCoordinates=function(C,O){var R;if(this.$hasCssTransforms){R={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([C,O]);C=_[1]-this.gutterWidth-this.margin.left,O=_[0]}else R=this.scroller.getBoundingClientRect();var T=C+this.scrollLeft-R.left-this.$padding,E=T/this.characterWidth,M=this.$blockCursor?Math.floor(E):Math.round(E),I=Math.floor((O+this.scrollTop-R.top)/this.lineHeight);return this.session.screenToDocumentPosition(I,Math.max(M,0),T)},A.prototype.textToScreenCoordinates=function(C,O){var R=this.scroller.getBoundingClientRect(),_=this.session.documentToScreenPosition(C,O),T=this.$padding+(this.session.$bidiHandler.isBidiRow(_.row,C)?this.session.$bidiHandler.getPosLeft(_.column):Math.round(_.column*this.characterWidth)),E=_.row*this.lineHeight;return{pageX:R.left+T-this.scrollLeft,pageY:R.top+E-this.scrollTop}},A.prototype.visualizeFocus=function(){s.addCssClass(this.container,"ace_focus")},A.prototype.visualizeBlur=function(){s.removeCssClass(this.container,"ace_focus")},A.prototype.showComposition=function(C){this.$composition=C,C.cssText||(C.cssText=this.textarea.style.cssText),C.useTextareaForIME==null&&(C.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(s.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):C.markerId=this.session.addMarker(C.markerRange,"ace_composition_marker","text")},A.prototype.setCompositionText=function(C){var O=this.session.selection.cursor;this.addToken(C,"composition_placeholder",O.row,O.column),this.$moveTextAreaToCursor()},A.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),s.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var C=this.session.selection.cursor;this.removeExtraToken(C.row,C.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},A.prototype.setGhostText=function(C,O){var R=this.session.selection.cursor,_=O||{row:R.row,column:R.column};this.removeGhostText();var T=C.split(` -`);if(this.addToken(T[0],"ghost_text",_.row,_.column),this.$ghostText={text:C,position:{row:_.row,column:_.column}},T.length>1){this.$ghostTextWidget={text:T.slice(1).join(` -`),row:_.row,column:_.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var E=this.$cursorLayer.getPixelPosition(_,!0),M=this.container,I=M.getBoundingClientRect().height,N=T.length*this.lineHeight,L=N1||Math.abs(C.$size.height-_)>1?C.$resizeTimer.delay():C.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},A}();S.prototype.CHANGE_CURSOR=1,S.prototype.CHANGE_MARKER=2,S.prototype.CHANGE_GUTTER=4,S.prototype.CHANGE_SCROLL=8,S.prototype.CHANGE_LINES=16,S.prototype.CHANGE_TEXT=32,S.prototype.CHANGE_SIZE=64,S.prototype.CHANGE_MARKER_BACK=128,S.prototype.CHANGE_MARKER_FRONT=256,S.prototype.CHANGE_FULL=512,S.prototype.CHANGE_H_SCROLL=1024,S.prototype.$changes=0,S.prototype.$padding=null,S.prototype.$frozen=!1,S.prototype.STEPS=8,i.implement(S.prototype,b),a.defineOptions(S.prototype,"renderer",{useResizeObserver:{set:function(A){!A&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):A&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(A){this.$textLayer.setShowInvisibles(A)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(A){typeof A=="number"&&(this.$printMarginColumn=A),this.$showPrintMargin=!!A,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(A){this.$gutter.style.display=A?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(A){this.$gutterLayer.$useSvgGutterIcons=A},initialValue:!1},showFoldedAnnotations:{set:function(A){this.$gutterLayer.$showFoldedAnnotations=A},initialValue:!1},fadeFoldWidgets:{set:function(A){s.setCssClass(this.$gutter,"ace_fade-fold-widgets",A)},initialValue:!1},showFoldWidgets:{set:function(A){this.$gutterLayer.setShowFoldWidgets(A),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(A){this.$textLayer.setDisplayIndentGuides(A)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(A){this.$textLayer.setHighlightIndentGuides(A)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(A){this.$gutterLayer.setHighlightGutterLine(A),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(A){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(A){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(A){typeof A=="number"&&(A=A+"px"),this.container.style.fontSize=A,this.updateFontSize()},initialValue:12},fontFamily:{set:function(A){this.container.style.fontFamily=A,this.updateFontSize()}},maxLines:{set:function(A){this.updateFull()}},minLines:{set:function(A){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(A){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(A){A=+A||0,this.$scrollPastEnd!=A&&(this.$scrollPastEnd=A,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(A){this.$gutterLayer.$fixedWidth=!!A,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(A){this.$updateCustomScrollbar(A)},initialValue:!1},theme:{set:function(A){this.setTheme(A)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!w.isMobile&&!w.isIE}}),r.VirtualRenderer=S}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,r,o){var i=n("../lib/oop"),s=n("../lib/net"),l=n("../lib/event_emitter").EventEmitter,a=n("../config");function u(p){var f="importScripts('"+s.qualifyURL(p)+"');";try{return new Blob([f],{type:"application/javascript"})}catch{var g=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new g;return m.append(f),m.getBlob("application/javascript")}}function c(p){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(a.get("loadWorkerFromBlob")){var f=u(p),g=window.URL||window.webkitURL,m=g.createObjectURL(f);return new Worker(m)}return new Worker(p)}var d=function(p){p.postMessage||(p=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=p,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){i.implement(this,l),this.$createWorkerFromOldConfig=function(p,f,g,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),a.get("packaged")||!n.toUrl)m=m||a.moduleUrl(f,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var b={};p.forEach(function(x){b[x]=y(n.toUrl(x,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=c(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:b,module:f,classname:g}),this.$worker},this.onMessage=function(p){var f=p.data;switch(f.type){case"event":this._signal(f.name,{data:f.data});break;case"call":var g=this.callbacks[f.id];g&&(g(f.data),delete this.callbacks[f.id]);break;case"error":this.reportError(f.data);break;case"log":window.console&&console.log&&console.log.apply(console,f.data);break}},this.reportError=function(p){window.console&&console.error&&console.error(p)},this.$normalizePath=function(p){return s.qualifyURL(p)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(p){p.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(p,f){this.$worker.postMessage({command:p,args:f})},this.call=function(p,f,g){if(g){var m=this.callbackId++;this.callbacks[m]=g,f.push(m)}this.send(p,f)},this.emit=function(p,f){try{f.data&&f.data.err&&(f.data.err={message:f.data.err.message,stack:f.data.err.stack,code:f.data.err.code}),this.$worker&&this.$worker.postMessage({event:p,data:{data:f.data}})}catch(g){console.error(g.stack)}},this.attachToDocument=function(p){this.$doc&&this.terminate(),this.$doc=p,this.call("setValue",[p.getValue()]),p.on("change",this.changeListener,!0)},this.changeListener=function(p){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),p.action=="insert"?this.deltaQueue.push(p.start,p.lines):this.deltaQueue.push(p.start,p.end)},this.$sendDeltaQueue=function(){var p=this.deltaQueue;p&&(this.deltaQueue=null,p.length>50&&p.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:p}))}}).call(d.prototype);var h=function(p,f,g){var m=null,v=!1,y=Object.create(l),b=[],x=new d({messageBuffer:b,terminate:function(){},postMessage:function(w){b.push(w),m&&(v?setTimeout(k):k())}});x.setEmitSync=function(w){v=w};var k=function(){var w=b.shift();w.command?m[w.command].apply(m,w.args):w.event&&y._signal(w.event,w.data)};return y.postMessage=function(w){x.onMessage({data:w})},y.callback=function(w,S){this.postMessage({type:"call",id:S,data:w})},y.emit=function(w,S){this.postMessage({type:"event",name:w,data:S})},a.loadModule(["worker",f],function(w){for(m=new w[g](y);b.length;)k()}),x};r.UIWorkerClient=h,r.WorkerClient=d,r.createWorker=c}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,r,o){var i=n("./range").Range,s=n("./lib/event_emitter").EventEmitter,l=n("./lib/oop"),a=function(){function u(c,d,h,p,f,g){var m=this;this.length=d,this.session=c,this.doc=c.getDocument(),this.mainClass=f,this.othersClass=g,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=p,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=h;var v=c.getUndoManager().$undoStack||c.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),c.selection.on("changeCursor",this.$onCursorChange)}return u.prototype.setup=function(){var c=this,d=this.doc,h=this.session;this.selectionBefore=h.selection.toJSON(),h.selection.inMultiSelectMode&&h.selection.toSingleRange(),this.pos=d.createAnchor(this.$pos.row,this.$pos.column);var p=this.pos;p.$insertRight=!0,p.detach(),p.markerId=h.addMarker(new i(p.row,p.column,p.row,p.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(f){var g=d.createAnchor(f.row,f.column);g.$insertRight=!0,g.detach(),c.others.push(g)}),h.setUndoSelect(!1)},u.prototype.showOtherMarkers=function(){if(!this.othersActive){var c=this.session,d=this;this.othersActive=!0,this.others.forEach(function(h){h.markerId=c.addMarker(new i(h.row,h.column,h.row,h.column+d.length),d.othersClass,null,!1)})}},u.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var c=0;c=this.pos.column&&d.start.column<=this.pos.column+this.length+1,f=d.start.column-this.pos.column;if(this.updateAnchors(c),p&&(this.length+=h),p&&!this.session.$fromUndo){if(c.action==="insert")for(var g=this.others.length-1;g>=0;g--){var m=this.others[g],v={row:m.row,column:m.column+f};this.doc.insertMergedLines(v,c.lines)}else if(c.action==="remove")for(var g=this.others.length-1;g>=0;g--){var m=this.others[g],v={row:m.row,column:m.column+f};this.doc.remove(new i(v.row,v.column,v.row,v.column-h))}}this.$updating=!1,this.updateMarkers()}},u.prototype.updateAnchors=function(c){this.pos.onChange(c);for(var d=this.others.length;d--;)this.others[d].onChange(c);this.updateMarkers()},u.prototype.updateMarkers=function(){if(!this.$updating){var c=this,d=this.session,h=function(f,g){d.removeMarker(f.markerId),f.markerId=d.addMarker(new i(f.row,f.column,f.row,f.column+c.length),g,null,!1)};h(this.pos,this.mainClass);for(var p=this.others.length;p--;)h(this.others[p],this.othersClass)}},u.prototype.onCursorChange=function(c){if(!(this.$updating||!this.session)){var d=this.session.selection.getCursor();d.row===this.pos.row&&d.column>=this.pos.column&&d.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",c)):(this.hideOtherMarkers(),this._emit("cursorLeave",c))}},u.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},u.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var c=this.session.getUndoManager(),d=(c.$undoStack||c.$undostack).length-this.$undoStackDepth,h=0;h1?s.multiSelect.joinSelections():s.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(s){s.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(s){s.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(s){s.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(s){s.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(s){return s&&s.inMultiSelectMode}}];var i=n("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new i(r.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(n,r,o){var i=n("./range_list").RangeList,s=n("./range").Range,l=n("./selection").Selection,a=n("./mouse/multi_select_handler").onMouseDown,u=n("./lib/event"),c=n("./lib/lang"),d=n("./commands/multi_select_commands");r.commands=d.defaultCommands.concat(d.multiSelectCommands);var h=n("./search").Search,p=new h;function f(x,k,w){return p.$options.wrap=!0,p.$options.needle=k,p.$options.backwards=w==-1,p.find(x)}var g=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(g.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(x,k){if(x){if(!this.inMultiSelectMode&&this.rangeCount===0){var w=this.toOrientedRange();if(this.rangeList.add(w),this.rangeList.add(x),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),k||this.fromOrientedRange(x);this.rangeList.removeAll(),this.rangeList.add(w),this.$onAddRange(w)}x.cursor||(x.cursor=x.end);var S=this.rangeList.add(x);return this.$onAddRange(x),S.length&&this.$onRemoveRange(S),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),k||this.fromOrientedRange(x)}},this.toSingleRange=function(x){x=x||this.ranges[0];var k=this.rangeList.removeAll();k.length&&this.$onRemoveRange(k),x&&this.fromOrientedRange(x)},this.substractPoint=function(x){var k=this.rangeList.substractPoint(x);if(k)return this.$onRemoveRange(k),k[0]},this.mergeOverlappingRanges=function(){var x=this.rangeList.merge();x.length&&this.$onRemoveRange(x)},this.$onAddRange=function(x){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(x),this._signal("addRange",{range:x})},this.$onRemoveRange=function(x){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var k=this.rangeList.ranges.pop();x.push(k),this.rangeCount=0}for(var w=x.length;w--;){var S=this.ranges.indexOf(x[w]);this.ranges.splice(S,1)}this._signal("removeRange",{ranges:x}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),k=k||this.ranges[0],k&&!k.isEqual(this.getRange())&&this.fromOrientedRange(k)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new i,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var x=this.ranges.length?this.ranges:[this.getRange()],k=[],w=0;w1){var x=this.rangeList.ranges,k=x[x.length-1],w=s.fromPoints(x[0].start,k.end);this.toSingleRange(),this.setSelectionRange(w,k.cursor==k.start)}else{var S=this.session.documentToScreenPosition(this.cursor),A=this.session.documentToScreenPosition(this.anchor),C=this.rectangularRangeBlock(S,A);C.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(x,k,w){var S=[],A=x.column0;)$--;if($>0)for(var P=0;S[P].isEmpty();)P++;for(var F=$;F>=P;F--)S[F].isEmpty()&&S.splice(F,1)}return S}}).call(l.prototype);var m=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(x){x.cursor||(x.cursor=x.end);var k=this.getSelectionStyle();return x.marker=this.session.addMarker(x,"ace_selection",k),this.session.$selectionMarkers.push(x),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,x},this.removeSelectionMarker=function(x){if(x.marker){this.session.removeMarker(x.marker);var k=this.session.$selectionMarkers.indexOf(x);k!=-1&&this.session.$selectionMarkers.splice(k,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(x){for(var k=this.session.$selectionMarkers,w=x.length;w--;){var S=x[w];if(S.marker){this.session.removeMarker(S.marker);var A=k.indexOf(S);A!=-1&&k.splice(A,1)}}this.session.selectionMarkerCount=k.length},this.$onAddRange=function(x){this.addSelectionMarker(x.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(x){this.removeSelectionMarkers(x.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(x){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(d.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(x){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(d.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(x){var k=x.command,w=x.editor;if(w.multiSelect){if(k.multiSelectAction)k.multiSelectAction=="forEach"?S=w.forEachSelection(k,x.args):k.multiSelectAction=="forEachLine"?S=w.forEachSelection(k,x.args,!0):k.multiSelectAction=="single"?(w.exitMultiSelectMode(),S=k.exec(w,x.args||{})):S=k.multiSelectAction(w,x.args||{});else{var S=k.exec(w,x.args||{});w.multiSelect.addRange(w.multiSelect.toOrientedRange()),w.multiSelect.mergeOverlappingRanges()}return S}},this.forEachSelection=function(x,k,w){if(!this.inVirtualSelectionMode){var S=w&&w.keepOrder,A=w==!0||w&&w.$byLines,C=this.session,O=this.selection,R=O.rangeList,_=(S?O:R).ranges,T;if(!_.length)return x.exec?x.exec(this,k||{}):x(this,k||{});var E=O._eventRegistry;O._eventRegistry={};var M=new l(C);this.inVirtualSelectionMode=!0;for(var I=_.length;I--;){if(A)for(;I>0&&_[I].start.row==_[I-1].end.row;)I--;M.fromOrientedRange(_[I]),M.index=I,this.selection=C.selection=M;var N=x.exec?x.exec(this,k||{}):x(this,k||{});!T&&N!==void 0&&(T=N),M.toOrientedRange(_[I])}M.detach(),this.selection=C.selection=O,this.inVirtualSelectionMode=!1,O._eventRegistry=E,O.mergeOverlappingRanges(),O.ranges[0]&&O.fromOrientedRange(O.ranges[0]);var L=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),L&&L.from==L.to&&this.renderer.animateScrolling(L.from),T}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var x="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var k=this.multiSelect.rangeList.ranges,w=[],S=0;S0);O<0&&(O=0),R>=T&&(R=T-1)}var M=this.session.removeFullLines(O,R);M=this.$reAlignText(M,_),this.session.insert({row:O,column:0},M.join(` +}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,r,o){var i=n("../lib/dom"),s=n("../lib/oop"),l=n("../lib/event_emitter").EventEmitter,a=function(){function u(c,d){this.canvas=i.createElement("canvas"),this.renderer=d,this.pixelRatio=1,this.maxHeight=d.layerConfig.maxHeight,this.lineHeight=d.layerConfig.lineHeight,this.canvasHeight=c.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=c.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},c.element.appendChild(this.canvas)}return u.prototype.$updateDecorators=function(c){var d=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(c){this.maxHeight=c.maxHeight,this.lineHeight=c.lineHeight,this.canvasHeight=c.height;var h=(c.lastRow+1)*this.lineHeight;h_.priority?1:0}var g=this.renderer.session.$annotations;if(p.clearRect(0,0,this.canvas.width,this.canvas.height),g){var m={info:1,warning:2,error:3};g.forEach(function(R){R.priority=m[R.type]||null}),g=g.sort(f);for(var v=this.renderer.session.$foldData,y=0;ythis.canvasHeight&&(C=this.canvasHeight-this.halfMinDecorationHeight),w=Math.round(C-this.halfMinDecorationHeight),S=Math.round(C+this.halfMinDecorationHeight)}p.fillStyle=d[g[y].type]||null,p.fillRect(0,k,this.canvasWidth,S-w)}}var O=this.renderer.session.selection.getCursor();if(O){var x=this.compensateFoldRows(O.row,v),k=Math.round((O.row-x)*this.lineHeight*this.heightRatio);p.fillStyle="rgba(0, 0, 0, 0.5)",p.fillRect(0,k,this.canvasWidth,2)}},u.prototype.compensateFoldRows=function(c,d){var h=0;if(d&&d.length>0)for(var p=0;pd[p].start.row&&c=d[p].end.row&&(h+=d[p].end.row-d[p].start.row);return h},u}();s.implement(a.prototype,l),r.Decorator=a}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(n,r,o){var i=n("./lib/oop"),s=n("./lib/dom"),l=n("./lib/lang"),a=n("./config"),u=n("./layer/gutter").Gutter,c=n("./layer/marker").Marker,d=n("./layer/text").Text,h=n("./layer/cursor").Cursor,p=n("./scrollbar").HScrollBar,f=n("./scrollbar").VScrollBar,g=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,b=n("./lib/event_emitter").EventEmitter,x=n("./css/editor-css"),k=n("./layer/decorators").Decorator,w=n("./lib/useragent");s.importCssString(x,"ace_editor.css",!1);var S=function(){function T(C,O){var R=this;this.container=C||s.createElement("div"),s.addCssClass(this.container,"ace_editor"),s.HI_DPI&&s.addCssClass(this.container,"ace_hidpi"),this.setTheme(O),a.get("useStrictCSP")==null&&a.set("useStrictCSP",!1),this.$gutter=s.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=s.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=s.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new u(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new c(this.content);var _=this.$textLayer=new d(this.content);this.canvas=_.element,this.$markerFront=new c(this.content),this.$cursorLayer=new h(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new f(this.container,this),this.scrollBarH=new p(this.container,this),this.scrollBarV.on("scroll",function(A){R.$scrollAnimation||R.session.setScrollTop(A.data-R.scrollMargin.top)}),this.scrollBarH.on("scroll",function(A){R.$scrollAnimation||R.session.setScrollLeft(A.data-R.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(A){R.updateCharacterSize(),R.onResize(!0,R.gutterWidth,R.$size.width,R.$size.height),R._signal("changeCharacterSize",A)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!w.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),a.resetOptions(this),a._signal("renderer",this)}return T.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),s.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},T.prototype.setSession=function(C){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=C,C&&this.scrollMargin.top&&C.getScrollTop()<=0&&C.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(C),this.$markerBack.setSession(C),this.$markerFront.setSession(C),this.$gutterLayer.setSession(C),this.$textLayer.setSession(C),C&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},T.prototype.updateLines=function(C,O,R){if(O===void 0&&(O=1/0),this.$changedLines?(this.$changedLines.firstRow>C&&(this.$changedLines.firstRow=C),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},T.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},T.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},T.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},T.prototype.updateFull=function(C){C?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},T.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},T.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},T.prototype.onResize=function(C,O,R,_){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=C?1:0;var A=this.container;_||(_=A.clientHeight||A.scrollHeight),R||(R=A.clientWidth||A.scrollWidth);var E=this.$updateCachedSize(C,O,R,_);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!R&&!_)return this.resizing=0;C&&(this.$gutterLayer.$padding=null),C?this.$renderChanges(E|this.$changes,!0):this.$loop.schedule(E|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},T.prototype.$updateCachedSize=function(C,O,R,_){_-=this.$extraHeight||0;var A=0,E=this.$size,M={width:E.width,height:E.height,scrollerHeight:E.scrollerHeight,scrollerWidth:E.scrollerWidth};if(_&&(C||E.height!=_)&&(E.height=_,A|=this.CHANGE_SIZE,E.scrollerHeight=E.height,this.$horizScroll&&(E.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(E.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",A=A|this.CHANGE_SCROLL),R&&(C||E.width!=R)){A|=this.CHANGE_SIZE,E.width=R,O==null&&(O=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=O,s.setStyle(this.scrollBarH.element.style,"left",O+"px"),s.setStyle(this.scroller.style,"left",O+this.margin.left+"px"),E.scrollerWidth=Math.max(0,R-O-this.scrollBarV.getWidth()-this.margin.h),s.setStyle(this.$gutter.style,"left",this.margin.left+"px");var I=this.scrollBarV.getWidth()+"px";s.setStyle(this.scrollBarH.element.style,"right",I),s.setStyle(this.scroller.style,"right",I),s.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(E.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||C)&&(A|=this.CHANGE_FULL)}return E.$dirty=!R||!_,A&&this._signal("resize",M),A},T.prototype.onGutterResize=function(C){var O=this.$showGutter?C:0;O!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,O,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},T.prototype.adjustWrapLimit=function(){var C=this.$size.scrollerWidth-this.$padding*2,O=Math.floor(C/this.characterWidth);return this.session.adjustWrapLimit(O,this.$showPrintMargin&&this.$printMarginColumn)},T.prototype.setAnimatedScroll=function(C){this.setOption("animatedScroll",C)},T.prototype.getAnimatedScroll=function(){return this.$animatedScroll},T.prototype.setShowInvisibles=function(C){this.setOption("showInvisibles",C),this.session.$bidiHandler.setShowInvisibles(C)},T.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},T.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},T.prototype.setDisplayIndentGuides=function(C){this.setOption("displayIndentGuides",C)},T.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},T.prototype.setHighlightIndentGuides=function(C){this.setOption("highlightIndentGuides",C)},T.prototype.setShowPrintMargin=function(C){this.setOption("showPrintMargin",C)},T.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},T.prototype.setPrintMarginColumn=function(C){this.setOption("printMarginColumn",C)},T.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},T.prototype.getShowGutter=function(){return this.getOption("showGutter")},T.prototype.setShowGutter=function(C){return this.setOption("showGutter",C)},T.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},T.prototype.setFadeFoldWidgets=function(C){this.setOption("fadeFoldWidgets",C)},T.prototype.setHighlightGutterLine=function(C){this.setOption("highlightGutterLine",C)},T.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},T.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var C=s.createElement("div");C.className="ace_layer ace_print-margin-layer",this.$printMarginEl=s.createElement("div"),this.$printMarginEl.className="ace_print-margin",C.appendChild(this.$printMarginEl),this.content.insertBefore(C,this.content.firstChild)}var O=this.$printMarginEl.style;O.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",O.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},T.prototype.getContainerElement=function(){return this.container},T.prototype.getMouseEventTarget=function(){return this.scroller},T.prototype.getTextAreaContainer=function(){return this.container},T.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var C=this.textarea.style,O=this.$composition;if(!this.$keepTextAreaAtCursor&&!O){s.translate(this.textarea,-100,0);return}var R=this.$cursorLayer.$pixelPos;if(R){O&&O.markerRange&&(R=this.$cursorLayer.getPixelPosition(O.markerRange.start,!0));var _=this.layerConfig,A=R.top,E=R.left;A-=_.offset;var M=O&&O.useTextareaForIME||w.isMobile?this.lineHeight:1;if(A<0||A>_.height-M){s.translate(this.textarea,0,0);return}var I=1,N=this.$size.height-M;if(!O)A+=this.lineHeight;else if(O.useTextareaForIME){var L=this.textarea.value;I=this.characterWidth*this.session.$getStringScreenWidth(L)[0]}else A+=this.lineHeight+2;E-=this.scrollLeft,E>this.$size.scrollerWidth-I&&(E=this.$size.scrollerWidth-I),E+=this.gutterWidth+this.margin.left,s.setStyle(C,"height",M+"px"),s.setStyle(C,"width",I+"px"),s.translate(this.textarea,Math.min(E,this.$size.scrollerWidth-I),Math.min(A,N))}}},T.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},T.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},T.prototype.getLastFullyVisibleRow=function(){var C=this.layerConfig,O=C.lastRow,R=this.session.documentToScreenRow(O,0)*C.lineHeight;return R-this.session.getScrollTop()>C.height-C.lineHeight?O-1:O},T.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},T.prototype.setPadding=function(C){this.$padding=C,this.$textLayer.setPadding(C),this.$cursorLayer.setPadding(C),this.$markerFront.setPadding(C),this.$markerBack.setPadding(C),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},T.prototype.setScrollMargin=function(C,O,R,_){var A=this.scrollMargin;A.top=C|0,A.bottom=O|0,A.right=_|0,A.left=R|0,A.v=A.top+A.bottom,A.h=A.left+A.right,A.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-A.top),this.updateFull()},T.prototype.setMargin=function(C,O,R,_){var A=this.margin;A.top=C|0,A.bottom=O|0,A.right=_|0,A.left=R|0,A.v=A.top+A.bottom,A.h=A.left+A.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},T.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},T.prototype.setHScrollBarAlwaysVisible=function(C){this.setOption("hScrollBarAlwaysVisible",C)},T.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},T.prototype.setVScrollBarAlwaysVisible=function(C){this.setOption("vScrollBarAlwaysVisible",C)},T.prototype.$updateScrollBarV=function(){var C=this.layerConfig.maxHeight,O=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(C-=(O-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>C-O&&(C=this.scrollTop+O,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(C+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},T.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},T.prototype.freeze=function(){this.$frozen=!0},T.prototype.unfreeze=function(){this.$frozen=!1},T.prototype.$renderChanges=function(C,O){if(this.$changes&&(C|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!C&&!O){this.$changes|=C;return}if(this.$size.$dirty)return this.$changes|=C,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",C),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var R=this.layerConfig;if(C&this.CHANGE_FULL||C&this.CHANGE_SIZE||C&this.CHANGE_TEXT||C&this.CHANGE_LINES||C&this.CHANGE_SCROLL||C&this.CHANGE_H_SCROLL){if(C|=this.$computeLayerConfig()|this.$loop.clear(),R.firstRow!=this.layerConfig.firstRow&&R.firstRowScreen==this.layerConfig.firstRowScreen){var _=this.scrollTop+(R.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;_>0&&(this.scrollTop=_,C=C|this.CHANGE_SCROLL,C|=this.$computeLayerConfig()|this.$loop.clear())}R=this.layerConfig,this.$updateScrollBarV(),C&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),s.translate(this.content,-this.scrollLeft,-R.offset);var A=R.width+2*this.$padding+"px",E=R.minHeight+"px";s.setStyle(this.content.style,"width",A),s.setStyle(this.content.style,"height",E)}if(C&this.CHANGE_H_SCROLL&&(s.translate(this.content,-this.scrollLeft,-R.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),C&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(R),this.$showGutter&&this.$gutterLayer.update(R),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(R),this.$markerBack.update(R),this.$markerFront.update(R),this.$cursorLayer.update(R),this.$moveTextAreaToCursor(),this._signal("afterRender",C);return}if(C&this.CHANGE_SCROLL){this.$changedLines=null,C&this.CHANGE_TEXT||C&this.CHANGE_LINES?this.$textLayer.update(R):this.$textLayer.scrollLines(R),this.$showGutter&&(C&this.CHANGE_GUTTER||C&this.CHANGE_LINES?this.$gutterLayer.update(R):this.$gutterLayer.scrollLines(R)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(R),this.$markerBack.update(R),this.$markerFront.update(R),this.$cursorLayer.update(R),this.$moveTextAreaToCursor(),this._signal("afterRender",C);return}C&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(R),this.$showGutter&&this.$gutterLayer.update(R),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(R)):C&this.CHANGE_LINES?((this.$updateLines()||C&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(R),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(R)):C&this.CHANGE_TEXT||C&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(R),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(R)):C&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(R),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(R)),C&this.CHANGE_CURSOR&&(this.$cursorLayer.update(R),this.$moveTextAreaToCursor()),C&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(R),C&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(R),this._signal("afterRender",C)},T.prototype.$autosize=function(){var C=this.session.getScreenLength()*this.lineHeight,O=this.$maxLines*this.lineHeight,R=Math.min(O,Math.max((this.$minLines||1)*this.lineHeight,C))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(R+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&R>this.$maxPixelHeight&&(R=this.$maxPixelHeight);var _=R<=2*this.lineHeight,A=!_&&C>O;if(R!=this.desiredHeight||this.$size.height!=this.desiredHeight||A!=this.$vScroll){A!=this.$vScroll&&(this.$vScroll=A,this.scrollBarV.setVisible(A));var E=this.container.clientWidth;this.container.style.height=R+"px",this.$updateCachedSize(!0,this.$gutterWidth,E,R),this.desiredHeight=R,this._signal("autosize")}},T.prototype.$computeLayerConfig=function(){var C=this.session,O=this.$size,R=O.height<=2*this.lineHeight,_=this.session.getScreenLength(),A=_*this.lineHeight,E=this.$getLongestLine(),M=!R&&(this.$hScrollBarAlwaysVisible||O.scrollerWidth-E-2*this.$padding<0),I=this.$horizScroll!==M;I&&(this.$horizScroll=M,this.scrollBarH.setVisible(M));var N=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var L=O.scrollerHeight+this.lineHeight,$=!this.$maxLines&&this.$scrollPastEnd?(O.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;A+=$;var P=this.scrollMargin;this.session.setScrollTop(Math.max(-P.top,Math.min(this.scrollTop,A-O.scrollerHeight+P.bottom))),this.session.setScrollLeft(Math.max(-P.left,Math.min(this.scrollLeft,E+2*this.$padding-O.scrollerWidth+P.right)));var F=!R&&(this.$vScrollBarAlwaysVisible||O.scrollerHeight-A+$<0||this.scrollTop>P.top),H=N!==F;H&&(this.$vScroll=F,this.scrollBarV.setVisible(F));var W=this.scrollTop%this.lineHeight,B=Math.ceil(L/this.lineHeight)-1,U=Math.max(0,Math.round((this.scrollTop-W)/this.lineHeight)),G=U+B,Y,X,Z=this.lineHeight;U=C.screenToDocumentRow(U,0);var ne=C.getFoldLine(U);ne&&(U=ne.start.row),Y=C.documentToScreenRow(U,0),X=C.getRowLength(U)*Z,G=Math.min(C.screenToDocumentRow(G,0),C.getLength()-1),L=O.scrollerHeight+C.getRowLength(G)*Z+X,W=this.scrollTop-Y*Z;var de=0;return(this.layerConfig.width!=E||I)&&(de=this.CHANGE_H_SCROLL),(I||H)&&(de|=this.$updateCachedSize(!0,this.gutterWidth,O.width,O.height),this._signal("scrollbarVisibilityChanged"),H&&(E=this.$getLongestLine())),this.layerConfig={width:E,padding:this.$padding,firstRow:U,firstRowScreen:Y,lastRow:G,lineHeight:Z,characterWidth:this.characterWidth,minHeight:L,maxHeight:A,offset:W,gutterOffset:Z?Math.max(0,Math.ceil((W+O.height-O.scrollerHeight)/Z)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(E-this.$padding),de},T.prototype.$updateLines=function(){if(this.$changedLines){var C=this.$changedLines.firstRow,O=this.$changedLines.lastRow;this.$changedLines=null;var R=this.layerConfig;if(!(C>R.lastRow+1)&&!(Othis.$textLayer.MAX_LINE_LENGTH&&(C=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(C*this.characterWidth))},T.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},T.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},T.prototype.addGutterDecoration=function(C,O){this.$gutterLayer.addGutterDecoration(C,O)},T.prototype.removeGutterDecoration=function(C,O){this.$gutterLayer.removeGutterDecoration(C,O)},T.prototype.updateBreakpoints=function(C){this._rows=C,this.$loop.schedule(this.CHANGE_GUTTER)},T.prototype.setAnnotations=function(C){this.$gutterLayer.setAnnotations(C),this.$loop.schedule(this.CHANGE_GUTTER)},T.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},T.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},T.prototype.showCursor=function(){this.$cursorLayer.showCursor()},T.prototype.scrollSelectionIntoView=function(C,O,R){this.scrollCursorIntoView(C,R),this.scrollCursorIntoView(O,R)},T.prototype.scrollCursorIntoView=function(C,O,R){if(this.$size.scrollerHeight!==0){var _=this.$cursorLayer.getPixelPosition(C),A=_.left,E=_.top,M=R&&R.top||0,I=R&&R.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var N=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;N+M>E?(O&&N+M>E+this.lineHeight&&(E-=O*this.$size.scrollerHeight),E===0&&(E=-this.scrollMargin.top),this.session.setScrollTop(E)):N+this.$size.scrollerHeight-I=1-this.scrollMargin.top||O>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||C<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||C>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},T.prototype.pixelToScreenCoordinates=function(C,O){var R;if(this.$hasCssTransforms){R={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([C,O]);C=_[1]-this.gutterWidth-this.margin.left,O=_[0]}else R=this.scroller.getBoundingClientRect();var A=C+this.scrollLeft-R.left-this.$padding,E=A/this.characterWidth,M=Math.floor((O+this.scrollTop-R.top)/this.lineHeight),I=this.$blockCursor?Math.floor(E):Math.round(E);return{row:M,column:I,side:E-I>0?1:-1,offsetX:A}},T.prototype.screenToTextCoordinates=function(C,O){var R;if(this.$hasCssTransforms){R={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([C,O]);C=_[1]-this.gutterWidth-this.margin.left,O=_[0]}else R=this.scroller.getBoundingClientRect();var A=C+this.scrollLeft-R.left-this.$padding,E=A/this.characterWidth,M=this.$blockCursor?Math.floor(E):Math.round(E),I=Math.floor((O+this.scrollTop-R.top)/this.lineHeight);return this.session.screenToDocumentPosition(I,Math.max(M,0),A)},T.prototype.textToScreenCoordinates=function(C,O){var R=this.scroller.getBoundingClientRect(),_=this.session.documentToScreenPosition(C,O),A=this.$padding+(this.session.$bidiHandler.isBidiRow(_.row,C)?this.session.$bidiHandler.getPosLeft(_.column):Math.round(_.column*this.characterWidth)),E=_.row*this.lineHeight;return{pageX:R.left+A-this.scrollLeft,pageY:R.top+E-this.scrollTop}},T.prototype.visualizeFocus=function(){s.addCssClass(this.container,"ace_focus")},T.prototype.visualizeBlur=function(){s.removeCssClass(this.container,"ace_focus")},T.prototype.showComposition=function(C){this.$composition=C,C.cssText||(C.cssText=this.textarea.style.cssText),C.useTextareaForIME==null&&(C.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(s.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):C.markerId=this.session.addMarker(C.markerRange,"ace_composition_marker","text")},T.prototype.setCompositionText=function(C){var O=this.session.selection.cursor;this.addToken(C,"composition_placeholder",O.row,O.column),this.$moveTextAreaToCursor()},T.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),s.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var C=this.session.selection.cursor;this.removeExtraToken(C.row,C.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},T.prototype.setGhostText=function(C,O){var R=this.session.selection.cursor,_=O||{row:R.row,column:R.column};this.removeGhostText();var A=C.split(` +`);if(this.addToken(A[0],"ghost_text",_.row,_.column),this.$ghostText={text:C,position:{row:_.row,column:_.column}},A.length>1){this.$ghostTextWidget={text:A.slice(1).join(` +`),row:_.row,column:_.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var E=this.$cursorLayer.getPixelPosition(_,!0),M=this.container,I=M.getBoundingClientRect().height,N=A.length*this.lineHeight,L=N1||Math.abs(C.$size.height-_)>1?C.$resizeTimer.delay():C.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},T}();S.prototype.CHANGE_CURSOR=1,S.prototype.CHANGE_MARKER=2,S.prototype.CHANGE_GUTTER=4,S.prototype.CHANGE_SCROLL=8,S.prototype.CHANGE_LINES=16,S.prototype.CHANGE_TEXT=32,S.prototype.CHANGE_SIZE=64,S.prototype.CHANGE_MARKER_BACK=128,S.prototype.CHANGE_MARKER_FRONT=256,S.prototype.CHANGE_FULL=512,S.prototype.CHANGE_H_SCROLL=1024,S.prototype.$changes=0,S.prototype.$padding=null,S.prototype.$frozen=!1,S.prototype.STEPS=8,i.implement(S.prototype,b),a.defineOptions(S.prototype,"renderer",{useResizeObserver:{set:function(T){!T&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):T&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(T){this.$textLayer.setShowInvisibles(T)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(T){typeof T=="number"&&(this.$printMarginColumn=T),this.$showPrintMargin=!!T,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(T){this.$gutter.style.display=T?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(T){this.$gutterLayer.$useSvgGutterIcons=T},initialValue:!1},showFoldedAnnotations:{set:function(T){this.$gutterLayer.$showFoldedAnnotations=T},initialValue:!1},fadeFoldWidgets:{set:function(T){s.setCssClass(this.$gutter,"ace_fade-fold-widgets",T)},initialValue:!1},showFoldWidgets:{set:function(T){this.$gutterLayer.setShowFoldWidgets(T),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(T){this.$textLayer.setDisplayIndentGuides(T)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(T){this.$textLayer.setHighlightIndentGuides(T)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(T){this.$gutterLayer.setHighlightGutterLine(T),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(T){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(T){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(T){typeof T=="number"&&(T=T+"px"),this.container.style.fontSize=T,this.updateFontSize()},initialValue:12},fontFamily:{set:function(T){this.container.style.fontFamily=T,this.updateFontSize()}},maxLines:{set:function(T){this.updateFull()}},minLines:{set:function(T){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(T){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(T){T=+T||0,this.$scrollPastEnd!=T&&(this.$scrollPastEnd=T,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(T){this.$gutterLayer.$fixedWidth=!!T,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(T){this.$updateCustomScrollbar(T)},initialValue:!1},theme:{set:function(T){this.setTheme(T)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!w.isMobile&&!w.isIE}}),r.VirtualRenderer=S}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,r,o){var i=n("../lib/oop"),s=n("../lib/net"),l=n("../lib/event_emitter").EventEmitter,a=n("../config");function u(p){var f="importScripts('"+s.qualifyURL(p)+"');";try{return new Blob([f],{type:"application/javascript"})}catch{var g=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new g;return m.append(f),m.getBlob("application/javascript")}}function c(p){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(a.get("loadWorkerFromBlob")){var f=u(p),g=window.URL||window.webkitURL,m=g.createObjectURL(f);return new Worker(m)}return new Worker(p)}var d=function(p){p.postMessage||(p=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=p,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){i.implement(this,l),this.$createWorkerFromOldConfig=function(p,f,g,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),a.get("packaged")||!n.toUrl)m=m||a.moduleUrl(f,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var b={};p.forEach(function(x){b[x]=y(n.toUrl(x,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=c(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:b,module:f,classname:g}),this.$worker},this.onMessage=function(p){var f=p.data;switch(f.type){case"event":this._signal(f.name,{data:f.data});break;case"call":var g=this.callbacks[f.id];g&&(g(f.data),delete this.callbacks[f.id]);break;case"error":this.reportError(f.data);break;case"log":window.console&&console.log&&console.log.apply(console,f.data);break}},this.reportError=function(p){window.console&&console.error&&console.error(p)},this.$normalizePath=function(p){return s.qualifyURL(p)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(p){p.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(p,f){this.$worker.postMessage({command:p,args:f})},this.call=function(p,f,g){if(g){var m=this.callbackId++;this.callbacks[m]=g,f.push(m)}this.send(p,f)},this.emit=function(p,f){try{f.data&&f.data.err&&(f.data.err={message:f.data.err.message,stack:f.data.err.stack,code:f.data.err.code}),this.$worker&&this.$worker.postMessage({event:p,data:{data:f.data}})}catch(g){console.error(g.stack)}},this.attachToDocument=function(p){this.$doc&&this.terminate(),this.$doc=p,this.call("setValue",[p.getValue()]),p.on("change",this.changeListener,!0)},this.changeListener=function(p){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),p.action=="insert"?this.deltaQueue.push(p.start,p.lines):this.deltaQueue.push(p.start,p.end)},this.$sendDeltaQueue=function(){var p=this.deltaQueue;p&&(this.deltaQueue=null,p.length>50&&p.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:p}))}}).call(d.prototype);var h=function(p,f,g){var m=null,v=!1,y=Object.create(l),b=[],x=new d({messageBuffer:b,terminate:function(){},postMessage:function(w){b.push(w),m&&(v?setTimeout(k):k())}});x.setEmitSync=function(w){v=w};var k=function(){var w=b.shift();w.command?m[w.command].apply(m,w.args):w.event&&y._signal(w.event,w.data)};return y.postMessage=function(w){x.onMessage({data:w})},y.callback=function(w,S){this.postMessage({type:"call",id:S,data:w})},y.emit=function(w,S){this.postMessage({type:"event",name:w,data:S})},a.loadModule(["worker",f],function(w){for(m=new w[g](y);b.length;)k()}),x};r.UIWorkerClient=h,r.WorkerClient=d,r.createWorker=c}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,r,o){var i=n("./range").Range,s=n("./lib/event_emitter").EventEmitter,l=n("./lib/oop"),a=function(){function u(c,d,h,p,f,g){var m=this;this.length=d,this.session=c,this.doc=c.getDocument(),this.mainClass=f,this.othersClass=g,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=p,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=h;var v=c.getUndoManager().$undoStack||c.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),c.selection.on("changeCursor",this.$onCursorChange)}return u.prototype.setup=function(){var c=this,d=this.doc,h=this.session;this.selectionBefore=h.selection.toJSON(),h.selection.inMultiSelectMode&&h.selection.toSingleRange(),this.pos=d.createAnchor(this.$pos.row,this.$pos.column);var p=this.pos;p.$insertRight=!0,p.detach(),p.markerId=h.addMarker(new i(p.row,p.column,p.row,p.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(f){var g=d.createAnchor(f.row,f.column);g.$insertRight=!0,g.detach(),c.others.push(g)}),h.setUndoSelect(!1)},u.prototype.showOtherMarkers=function(){if(!this.othersActive){var c=this.session,d=this;this.othersActive=!0,this.others.forEach(function(h){h.markerId=c.addMarker(new i(h.row,h.column,h.row,h.column+d.length),d.othersClass,null,!1)})}},u.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var c=0;c=this.pos.column&&d.start.column<=this.pos.column+this.length+1,f=d.start.column-this.pos.column;if(this.updateAnchors(c),p&&(this.length+=h),p&&!this.session.$fromUndo){if(c.action==="insert")for(var g=this.others.length-1;g>=0;g--){var m=this.others[g],v={row:m.row,column:m.column+f};this.doc.insertMergedLines(v,c.lines)}else if(c.action==="remove")for(var g=this.others.length-1;g>=0;g--){var m=this.others[g],v={row:m.row,column:m.column+f};this.doc.remove(new i(v.row,v.column,v.row,v.column-h))}}this.$updating=!1,this.updateMarkers()}},u.prototype.updateAnchors=function(c){this.pos.onChange(c);for(var d=this.others.length;d--;)this.others[d].onChange(c);this.updateMarkers()},u.prototype.updateMarkers=function(){if(!this.$updating){var c=this,d=this.session,h=function(f,g){d.removeMarker(f.markerId),f.markerId=d.addMarker(new i(f.row,f.column,f.row,f.column+c.length),g,null,!1)};h(this.pos,this.mainClass);for(var p=this.others.length;p--;)h(this.others[p],this.othersClass)}},u.prototype.onCursorChange=function(c){if(!(this.$updating||!this.session)){var d=this.session.selection.getCursor();d.row===this.pos.row&&d.column>=this.pos.column&&d.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",c)):(this.hideOtherMarkers(),this._emit("cursorLeave",c))}},u.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},u.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var c=this.session.getUndoManager(),d=(c.$undoStack||c.$undostack).length-this.$undoStackDepth,h=0;h1?s.multiSelect.joinSelections():s.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(s){s.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(s){s.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(s){s.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(s){s.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(s){return s&&s.inMultiSelectMode}}];var i=n("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new i(r.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(n,r,o){var i=n("./range_list").RangeList,s=n("./range").Range,l=n("./selection").Selection,a=n("./mouse/multi_select_handler").onMouseDown,u=n("./lib/event"),c=n("./lib/lang"),d=n("./commands/multi_select_commands");r.commands=d.defaultCommands.concat(d.multiSelectCommands);var h=n("./search").Search,p=new h;function f(x,k,w){return p.$options.wrap=!0,p.$options.needle=k,p.$options.backwards=w==-1,p.find(x)}var g=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(g.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(x,k){if(x){if(!this.inMultiSelectMode&&this.rangeCount===0){var w=this.toOrientedRange();if(this.rangeList.add(w),this.rangeList.add(x),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),k||this.fromOrientedRange(x);this.rangeList.removeAll(),this.rangeList.add(w),this.$onAddRange(w)}x.cursor||(x.cursor=x.end);var S=this.rangeList.add(x);return this.$onAddRange(x),S.length&&this.$onRemoveRange(S),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),k||this.fromOrientedRange(x)}},this.toSingleRange=function(x){x=x||this.ranges[0];var k=this.rangeList.removeAll();k.length&&this.$onRemoveRange(k),x&&this.fromOrientedRange(x)},this.substractPoint=function(x){var k=this.rangeList.substractPoint(x);if(k)return this.$onRemoveRange(k),k[0]},this.mergeOverlappingRanges=function(){var x=this.rangeList.merge();x.length&&this.$onRemoveRange(x)},this.$onAddRange=function(x){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(x),this._signal("addRange",{range:x})},this.$onRemoveRange=function(x){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var k=this.rangeList.ranges.pop();x.push(k),this.rangeCount=0}for(var w=x.length;w--;){var S=this.ranges.indexOf(x[w]);this.ranges.splice(S,1)}this._signal("removeRange",{ranges:x}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),k=k||this.ranges[0],k&&!k.isEqual(this.getRange())&&this.fromOrientedRange(k)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new i,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var x=this.ranges.length?this.ranges:[this.getRange()],k=[],w=0;w1){var x=this.rangeList.ranges,k=x[x.length-1],w=s.fromPoints(x[0].start,k.end);this.toSingleRange(),this.setSelectionRange(w,k.cursor==k.start)}else{var S=this.session.documentToScreenPosition(this.cursor),T=this.session.documentToScreenPosition(this.anchor),C=this.rectangularRangeBlock(S,T);C.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(x,k,w){var S=[],T=x.column0;)$--;if($>0)for(var P=0;S[P].isEmpty();)P++;for(var F=$;F>=P;F--)S[F].isEmpty()&&S.splice(F,1)}return S}}).call(l.prototype);var m=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(x){x.cursor||(x.cursor=x.end);var k=this.getSelectionStyle();return x.marker=this.session.addMarker(x,"ace_selection",k),this.session.$selectionMarkers.push(x),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,x},this.removeSelectionMarker=function(x){if(x.marker){this.session.removeMarker(x.marker);var k=this.session.$selectionMarkers.indexOf(x);k!=-1&&this.session.$selectionMarkers.splice(k,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(x){for(var k=this.session.$selectionMarkers,w=x.length;w--;){var S=x[w];if(S.marker){this.session.removeMarker(S.marker);var T=k.indexOf(S);T!=-1&&k.splice(T,1)}}this.session.selectionMarkerCount=k.length},this.$onAddRange=function(x){this.addSelectionMarker(x.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(x){this.removeSelectionMarkers(x.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(x){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(d.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(x){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(d.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(x){var k=x.command,w=x.editor;if(w.multiSelect){if(k.multiSelectAction)k.multiSelectAction=="forEach"?S=w.forEachSelection(k,x.args):k.multiSelectAction=="forEachLine"?S=w.forEachSelection(k,x.args,!0):k.multiSelectAction=="single"?(w.exitMultiSelectMode(),S=k.exec(w,x.args||{})):S=k.multiSelectAction(w,x.args||{});else{var S=k.exec(w,x.args||{});w.multiSelect.addRange(w.multiSelect.toOrientedRange()),w.multiSelect.mergeOverlappingRanges()}return S}},this.forEachSelection=function(x,k,w){if(!this.inVirtualSelectionMode){var S=w&&w.keepOrder,T=w==!0||w&&w.$byLines,C=this.session,O=this.selection,R=O.rangeList,_=(S?O:R).ranges,A;if(!_.length)return x.exec?x.exec(this,k||{}):x(this,k||{});var E=O._eventRegistry;O._eventRegistry={};var M=new l(C);this.inVirtualSelectionMode=!0;for(var I=_.length;I--;){if(T)for(;I>0&&_[I].start.row==_[I-1].end.row;)I--;M.fromOrientedRange(_[I]),M.index=I,this.selection=C.selection=M;var N=x.exec?x.exec(this,k||{}):x(this,k||{});!A&&N!==void 0&&(A=N),M.toOrientedRange(_[I])}M.detach(),this.selection=C.selection=O,this.inVirtualSelectionMode=!1,O._eventRegistry=E,O.mergeOverlappingRanges(),O.ranges[0]&&O.fromOrientedRange(O.ranges[0]);var L=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),L&&L.from==L.to&&this.renderer.animateScrolling(L.from),A}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var x="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var k=this.multiSelect.rangeList.ranges,w=[],S=0;S0);O<0&&(O=0),R>=A&&(R=A-1)}var M=this.session.removeFullLines(O,R);M=this.$reAlignText(M,_),this.session.insert({row:O,column:0},M.join(` `)+` -`),_||(C.start.column=0,C.end.column=M[M.length-1].length),this.selection.setRange(C)}else{A.forEach(function($){k.substractPoint($.cursor)});var I=0,N=1/0,L=w.map(function($){var P=$.cursor,F=x.getLine(P.row),H=F.substr(P.column).search(/\S/g);return H==-1&&(H=0),P.column>I&&(I=P.column),HW?x.insert(F,c.stringRepeat(" ",H-W)):x.remove(new s(F.row,F.column,F.row,F.column-H+W)),$.start.column=$.end.column=I,$.start.row=$.end.row=F.row,$.cursor=$.end}),k.fromOrientedRange(w[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(x,k){var w=!0,S=!0,A,C,O;return x.map(function(M){var I=M.match(/(\s*)(.*?)(\s*)([=:].*)/);return I?A==null?(A=I[1].length,C=I[2].length,O=I[3].length,I):(A+C+O!=I[1].length+I[2].length+I[3].length&&(S=!1),A!=I[1].length&&(w=!1),A>I[1].length&&(A=I[1].length),CI[3].length&&(O=I[3].length),I):[M]}).map(k?_:w?S?T:_:E);function R(M){return c.stringRepeat(" ",M)}function _(M){return M[2]?R(A)+M[2]+R(C-M[2].length+O)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}function T(M){return M[2]?R(A+C-M[2].length)+M[2]+R(O)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}function E(M){return M[2]?R(A)+M[2]+R(O)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}}}).call(m.prototype);function v(x,k){return x.row==k.row&&x.column==k.column}r.onSessionChange=function(x){var k=x.session;k&&!k.multiSelect&&(k.$selectionMarkers=[],k.selection.$initRangeList(),k.multiSelect=k.selection),this.multiSelect=k&&k.multiSelect;var w=x.oldSession;w&&(w.multiSelect.off("addRange",this.$onAddRange),w.multiSelect.off("removeRange",this.$onRemoveRange),w.multiSelect.off("multiSelect",this.$onMultiSelect),w.multiSelect.off("singleSelect",this.$onSingleSelect),w.multiSelect.lead.off("change",this.$checkMultiselectChange),w.multiSelect.anchor.off("change",this.$checkMultiselectChange)),k&&(k.multiSelect.on("addRange",this.$onAddRange),k.multiSelect.on("removeRange",this.$onRemoveRange),k.multiSelect.on("multiSelect",this.$onMultiSelect),k.multiSelect.on("singleSelect",this.$onSingleSelect),k.multiSelect.lead.on("change",this.$checkMultiselectChange),k.multiSelect.anchor.on("change",this.$checkMultiselectChange)),k&&this.inMultiSelectMode!=k.selection.inMultiSelectMode&&(k.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y(x){x.$multiselectOnSessionChange||(x.$onAddRange=x.$onAddRange.bind(x),x.$onRemoveRange=x.$onRemoveRange.bind(x),x.$onMultiSelect=x.$onMultiSelect.bind(x),x.$onSingleSelect=x.$onSingleSelect.bind(x),x.$multiselectOnSessionChange=r.onSessionChange.bind(x),x.$checkMultiselectChange=x.$checkMultiselectChange.bind(x),x.$multiselectOnSessionChange(x),x.on("changeSession",x.$multiselectOnSessionChange),x.on("mousedown",a),x.commands.addCommands(d.defaultCommands),b(x))}function b(x){if(!x.textInput)return;var k=x.textInput.getElement(),w=!1;u.addListener(k,"keydown",function(A){var C=A.keyCode==18&&!(A.ctrlKey||A.shiftKey||A.metaKey);x.$blockSelectEnabled&&C?w||(x.renderer.setMouseCursor("crosshair"),w=!0):w&&S()},x),u.addListener(k,"keyup",S,x),u.addListener(k,"blur",S,x);function S(A){w&&(x.renderer.setMouseCursor(""),w=!1)}}r.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(x){y(this),x?this.on("mousedown",a):this.off("mousedown",a)},value:!0},enableBlockSelect:{set:function(x){this.$blockSelectEnabled=x},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,r,o){var i=n("../../range").Range,s=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(l,a,u){var c=l.getLine(u);return this.foldingStartMarker.test(c)?"start":a=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(c)?"end":""},this.getFoldWidgetRange=function(l,a,u){return null},this.indentationBlock=function(l,a,u){var c=/\S/,d=l.getLine(a),h=d.search(c);if(h!=-1){for(var p=u||d.length,f=l.getLength(),g=a,m=a;++ag){var b=l.getLine(m).length;return new i(g,p,m,b)}}},this.openingBracketBlock=function(l,a,u,c,d){var h={row:u,column:c+1},p=l.$findClosingBracket(a,h,d);if(p){var f=l.foldWidgets[p.row];return f==null&&(f=l.getFoldWidget(p.row)),f=="start"&&p.row>h.row&&(p.row--,p.column=l.getLine(p.row).length),i.fromPoints(h,p)}},this.closingBracketBlock=function(l,a,u,c,d){var h={row:u,column:c},p=l.$findOpeningBracket(a,h);if(p)return p.column++,h.column--,i.fromPoints(p,h)}}).call(s.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(n,r,o){var i=n("../line_widgets").LineWidgets,s=n("../lib/dom"),l=n("../range").Range,a=n("../config").nls;function u(d,h,p){for(var f=0,g=d.length-1;f<=g;){var m=f+g>>1,v=p(h,d[m]);if(v>0)f=m+1;else if(v<0)g=m-1;else return m}return-(f+1)}function c(d,h,p){var f=d.getAnnotations().sort(l.comparePoints);if(f.length){var g=u(f,{row:h,column:-1},l.comparePoints);g<0&&(g=-g-1),g>=f.length?g=p>0?0:f.length-1:g===0&&p<0&&(g=f.length-1);var m=f[g];if(!(!m||!p)){if(m.row===h){do m=f[g+=p];while(m&&m.row===h);if(!m)return f.slice()}var v=[];h=m.row;do v[p<0?"unshift":"push"](m),m=f[g+=p];while(m&&m.row==h);return v.length&&v}}}r.showErrorMarker=function(d,h){var p=d.session;p.widgetManager||(p.widgetManager=new i(p),p.widgetManager.attach(d));var f=d.getCursorPosition(),g=f.row,m=p.widgetManager.getWidgetsAtRow(g).filter(function(C){return C.type=="errorMarker"})[0];m?m.destroy():g-=h;var v=c(p,g,h),y;if(v){var b=v[0];f.column=(b.pos&&typeof b.column!="number"?b.pos.sc:b.column)||0,f.row=b.row,y=d.renderer.$gutterLayer.$annotations[f.row]}else{if(m)return;y={text:[a("Looks good!")],className:"ace_ok"}}d.session.unfold(f.row),d.selection.moveToPosition(f);var x={row:f.row,fixedWidth:!0,coverGutter:!0,el:s.createElement("div"),type:"errorMarker"},k=x.el.appendChild(s.createElement("div")),w=x.el.appendChild(s.createElement("div"));w.className="error_widget_arrow "+y.className;var S=d.renderer.$cursorLayer.getPixelPosition(f).left;w.style.left=S+d.renderer.gutterWidth-5+"px",x.el.className="error_widget_wrapper",k.className="error_widget "+y.className,k.innerHTML=y.text.join("
    "),k.appendChild(s.createElement("div"));var A=function(C,O,R){if(O===0&&(R==="esc"||R==="return"))return x.destroy(),{command:"null"}};x.destroy=function(){d.$mouseHandler.isMousePressed||(d.keyBinding.removeKeyboardHandler(A),p.widgetManager.removeLineWidget(x),d.off("changeSelection",x.destroy),d.off("changeSession",x.destroy),d.off("mouseup",x.destroy),d.off("change",x.destroy))},d.keyBinding.addKeyboardHandler(A),d.on("changeSelection",x.destroy),d.on("changeSession",x.destroy),d.on("mouseup",x.destroy),d.on("change",x.destroy),d.session.widgetManager.addLineWidget(x),x.el.onmousedown=d.focus.bind(d),d.renderer.scrollCursorIntoView(null,.5,{bottom:x.el.offsetHeight})},s.importCssString(` +`),_||(C.start.column=0,C.end.column=M[M.length-1].length),this.selection.setRange(C)}else{T.forEach(function($){k.substractPoint($.cursor)});var I=0,N=1/0,L=w.map(function($){var P=$.cursor,F=x.getLine(P.row),H=F.substr(P.column).search(/\S/g);return H==-1&&(H=0),P.column>I&&(I=P.column),HW?x.insert(F,c.stringRepeat(" ",H-W)):x.remove(new s(F.row,F.column,F.row,F.column-H+W)),$.start.column=$.end.column=I,$.start.row=$.end.row=F.row,$.cursor=$.end}),k.fromOrientedRange(w[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(x,k){var w=!0,S=!0,T,C,O;return x.map(function(M){var I=M.match(/(\s*)(.*?)(\s*)([=:].*)/);return I?T==null?(T=I[1].length,C=I[2].length,O=I[3].length,I):(T+C+O!=I[1].length+I[2].length+I[3].length&&(S=!1),T!=I[1].length&&(w=!1),T>I[1].length&&(T=I[1].length),CI[3].length&&(O=I[3].length),I):[M]}).map(k?_:w?S?A:_:E);function R(M){return c.stringRepeat(" ",M)}function _(M){return M[2]?R(T)+M[2]+R(C-M[2].length+O)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}function A(M){return M[2]?R(T+C-M[2].length)+M[2]+R(O)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}function E(M){return M[2]?R(T)+M[2]+R(O)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}}}).call(m.prototype);function v(x,k){return x.row==k.row&&x.column==k.column}r.onSessionChange=function(x){var k=x.session;k&&!k.multiSelect&&(k.$selectionMarkers=[],k.selection.$initRangeList(),k.multiSelect=k.selection),this.multiSelect=k&&k.multiSelect;var w=x.oldSession;w&&(w.multiSelect.off("addRange",this.$onAddRange),w.multiSelect.off("removeRange",this.$onRemoveRange),w.multiSelect.off("multiSelect",this.$onMultiSelect),w.multiSelect.off("singleSelect",this.$onSingleSelect),w.multiSelect.lead.off("change",this.$checkMultiselectChange),w.multiSelect.anchor.off("change",this.$checkMultiselectChange)),k&&(k.multiSelect.on("addRange",this.$onAddRange),k.multiSelect.on("removeRange",this.$onRemoveRange),k.multiSelect.on("multiSelect",this.$onMultiSelect),k.multiSelect.on("singleSelect",this.$onSingleSelect),k.multiSelect.lead.on("change",this.$checkMultiselectChange),k.multiSelect.anchor.on("change",this.$checkMultiselectChange)),k&&this.inMultiSelectMode!=k.selection.inMultiSelectMode&&(k.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y(x){x.$multiselectOnSessionChange||(x.$onAddRange=x.$onAddRange.bind(x),x.$onRemoveRange=x.$onRemoveRange.bind(x),x.$onMultiSelect=x.$onMultiSelect.bind(x),x.$onSingleSelect=x.$onSingleSelect.bind(x),x.$multiselectOnSessionChange=r.onSessionChange.bind(x),x.$checkMultiselectChange=x.$checkMultiselectChange.bind(x),x.$multiselectOnSessionChange(x),x.on("changeSession",x.$multiselectOnSessionChange),x.on("mousedown",a),x.commands.addCommands(d.defaultCommands),b(x))}function b(x){if(!x.textInput)return;var k=x.textInput.getElement(),w=!1;u.addListener(k,"keydown",function(T){var C=T.keyCode==18&&!(T.ctrlKey||T.shiftKey||T.metaKey);x.$blockSelectEnabled&&C?w||(x.renderer.setMouseCursor("crosshair"),w=!0):w&&S()},x),u.addListener(k,"keyup",S,x),u.addListener(k,"blur",S,x);function S(T){w&&(x.renderer.setMouseCursor(""),w=!1)}}r.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(x){y(this),x?this.on("mousedown",a):this.off("mousedown",a)},value:!0},enableBlockSelect:{set:function(x){this.$blockSelectEnabled=x},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,r,o){var i=n("../../range").Range,s=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(l,a,u){var c=l.getLine(u);return this.foldingStartMarker.test(c)?"start":a=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(c)?"end":""},this.getFoldWidgetRange=function(l,a,u){return null},this.indentationBlock=function(l,a,u){var c=/\S/,d=l.getLine(a),h=d.search(c);if(h!=-1){for(var p=u||d.length,f=l.getLength(),g=a,m=a;++ag){var b=l.getLine(m).length;return new i(g,p,m,b)}}},this.openingBracketBlock=function(l,a,u,c,d){var h={row:u,column:c+1},p=l.$findClosingBracket(a,h,d);if(p){var f=l.foldWidgets[p.row];return f==null&&(f=l.getFoldWidget(p.row)),f=="start"&&p.row>h.row&&(p.row--,p.column=l.getLine(p.row).length),i.fromPoints(h,p)}},this.closingBracketBlock=function(l,a,u,c,d){var h={row:u,column:c},p=l.$findOpeningBracket(a,h);if(p)return p.column++,h.column--,i.fromPoints(p,h)}}).call(s.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(n,r,o){var i=n("../line_widgets").LineWidgets,s=n("../lib/dom"),l=n("../range").Range,a=n("../config").nls;function u(d,h,p){for(var f=0,g=d.length-1;f<=g;){var m=f+g>>1,v=p(h,d[m]);if(v>0)f=m+1;else if(v<0)g=m-1;else return m}return-(f+1)}function c(d,h,p){var f=d.getAnnotations().sort(l.comparePoints);if(f.length){var g=u(f,{row:h,column:-1},l.comparePoints);g<0&&(g=-g-1),g>=f.length?g=p>0?0:f.length-1:g===0&&p<0&&(g=f.length-1);var m=f[g];if(!(!m||!p)){if(m.row===h){do m=f[g+=p];while(m&&m.row===h);if(!m)return f.slice()}var v=[];h=m.row;do v[p<0?"unshift":"push"](m),m=f[g+=p];while(m&&m.row==h);return v.length&&v}}}r.showErrorMarker=function(d,h){var p=d.session;p.widgetManager||(p.widgetManager=new i(p),p.widgetManager.attach(d));var f=d.getCursorPosition(),g=f.row,m=p.widgetManager.getWidgetsAtRow(g).filter(function(C){return C.type=="errorMarker"})[0];m?m.destroy():g-=h;var v=c(p,g,h),y;if(v){var b=v[0];f.column=(b.pos&&typeof b.column!="number"?b.pos.sc:b.column)||0,f.row=b.row,y=d.renderer.$gutterLayer.$annotations[f.row]}else{if(m)return;y={text:[a("Looks good!")],className:"ace_ok"}}d.session.unfold(f.row),d.selection.moveToPosition(f);var x={row:f.row,fixedWidth:!0,coverGutter:!0,el:s.createElement("div"),type:"errorMarker"},k=x.el.appendChild(s.createElement("div")),w=x.el.appendChild(s.createElement("div"));w.className="error_widget_arrow "+y.className;var S=d.renderer.$cursorLayer.getPixelPosition(f).left;w.style.left=S+d.renderer.gutterWidth-5+"px",x.el.className="error_widget_wrapper",k.className="error_widget "+y.className,k.innerHTML=y.text.join("
    "),k.appendChild(s.createElement("div"));var T=function(C,O,R){if(O===0&&(R==="esc"||R==="return"))return x.destroy(),{command:"null"}};x.destroy=function(){d.$mouseHandler.isMousePressed||(d.keyBinding.removeKeyboardHandler(T),p.widgetManager.removeLineWidget(x),d.off("changeSelection",x.destroy),d.off("changeSession",x.destroy),d.off("mouseup",x.destroy),d.off("change",x.destroy))},d.keyBinding.addKeyboardHandler(T),d.on("changeSelection",x.destroy),d.on("changeSession",x.destroy),d.on("mouseup",x.destroy),d.on("change",x.destroy),d.session.widgetManager.addLineWidget(x),x.el.onmousedown=d.focus.bind(d),d.renderer.scrollCursorIntoView(null,.5,{bottom:x.el.offsetHeight})},s.importCssString(` .error_widget_wrapper { background: inherit; color: inherit; @@ -6091,26 +6097,26 @@ ${u} border-left-color: transparent!important; top: -5px; } -`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(n,r,o){n("./loader_build")(r);var i=n("./lib/dom"),s=n("./range").Range,l=n("./editor").Editor,a=n("./edit_session").EditSession,u=n("./undomanager").UndoManager,c=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),r.config=n("./config"),r.edit=function(d,h){if(typeof d=="string"){var p=d;if(d=document.getElementById(p),!d)throw new Error("ace.edit can't find div #"+p)}if(d&&d.env&&d.env.editor instanceof l)return d.env.editor;var f="";if(d&&/input|textarea/i.test(d.tagName)){var g=d;f=g.value,d=i.createElement("pre"),g.parentNode.replaceChild(d,g)}else d&&(f=d.textContent,d.innerHTML="");var m=r.createEditSession(f),v=new l(new c(d),m,h),y={document:m,editor:v,onResize:v.resize.bind(v,null)};return g&&(y.textarea=g),v.on("destroy",function(){y.editor.container.env=null}),v.container.env=v.env=y,v},r.createEditSession=function(d,h){var p=new a(d,h);return p.setUndoManager(new u),p},r.Range=s,r.Editor=l,r.EditSession=a,r.UndoManager=u,r.VirtualRenderer=c,r.version=r.config.version}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=n);for(var o in n)n.hasOwnProperty(o)&&(r.ace[o]=n[o]);r.ace.default=r.ace,t&&(t.exports=r.ace)})}()})(E$);var Sv=E$.exports,Cv={exports:{}};Cv.exports,function(t,e){var n=200,r="__lodash_hash_undefined__",o=1,i=2,s=9007199254740991,l="[object Arguments]",a="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Function]",f="[object GeneratorFunction]",g="[object Map]",m="[object Number]",v="[object Null]",y="[object Object]",b="[object Promise]",x="[object Proxy]",k="[object RegExp]",w="[object Set]",S="[object String]",A="[object Symbol]",C="[object Undefined]",O="[object WeakMap]",R="[object ArrayBuffer]",_="[object DataView]",T="[object Float32Array]",E="[object Float64Array]",M="[object Int8Array]",I="[object Int16Array]",N="[object Int32Array]",L="[object Uint8Array]",$="[object Uint8ClampedArray]",P="[object Uint16Array]",F="[object Uint32Array]",H=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,B=/^(?:0|[1-9]\d*)$/,U={};U[T]=U[E]=U[M]=U[I]=U[N]=U[L]=U[$]=U[P]=U[F]=!0,U[l]=U[a]=U[R]=U[c]=U[_]=U[d]=U[h]=U[p]=U[g]=U[m]=U[y]=U[k]=U[w]=U[S]=U[O]=!1;var G=typeof $e=="object"&&$e&&$e.Object===Object&&$e,Y=typeof self=="object"&&self&&self.Object===Object&&self,X=G||Y||Function("return this")(),Z=e&&!e.nodeType&&e,ne=Z&&!0&&t&&!t.nodeType&&t,de=ne&&ne.exports===Z,Ie=de&&G.process,ve=function(){try{return Ie&&Ie.binding&&Ie.binding("util")}catch{}}(),Re=ve&&ve.isTypedArray;function Se(z,j){for(var Q=-1,fe=z==null?0:z.length,At=0,De=[];++Q-1}function JE(z,j){var Q=this.__data__,fe=Pv(Q,z);return fe<0?(++this.size,Q.push([z,j])):Q[fe][1]=j,this}Co.prototype.clear=$v,Co.prototype.delete=XE,Co.prototype.get=qE,Co.prototype.has=ZE,Co.prototype.set=JE;function Le(z){var j=-1,Q=z==null?0:z.length;for(this.clear();++jCn))return!1;var zt=De.get(z);if(zt&&De.get(j))return zt==j;var oo=-1,Ko=!0,qn=Q&i?new Dv:void 0;for(De.set(z,j),De.set(j,z);++oo-1&&z%1==0&&z-1&&z%1==0&&z<=s}function Q$(z){var j=typeof z;return z!=null&&(j=="object"||j=="function")}function xp(z){return z!=null&&typeof z=="object"}var eD=Re?pr(Re):mue;function Mue(z){return _ue(z)?hue(z):vue(z)}function Oue(){return[]}function Iue(){return!1}t.exports=Rue}(Cv,Cv.exports);var S$=Cv.exports,jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.getAceInstance=jo.debounce=jo.editorEvents=jo.editorOptions=void 0;var Tle=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];jo.editorOptions=Tle;var Ale=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];jo.editorEvents=Ale;var _le=function(){var t;return typeof window>"u"?($e.window={},t=Sv,delete $e.window):window.ace?(t=window.ace,t.acequire=window.ace.require||window.ace.acequire):t=Sv,t};jo.getAceInstance=_le;var Rle=function(t,e){var n=null;return function(){var r=this,o=arguments;clearTimeout(n),n=setTimeout(function(){t.apply(r,o)},e)}};jo.debounce=Rle;var Mle=$e&&$e.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},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)}}(),NE=$e&&$e.__assign||function(){return NE=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&this.handleMarkers(S);var R=this.editor.$options;gu.editorOptions.forEach(function(_){R.hasOwnProperty(_)?n.editor.setOption(_,n.props[_]):n.props[_]&&console.warn("ReactAce: editor option ".concat(_," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}),this.handleOptions(this.props),Array.isArray(k)&&k.forEach(function(_){typeof _.exec=="string"?n.editor.commands.bindKey(_.bindKey,_.exec):n.editor.commands.addCommand(_)}),b&&this.editor.setKeyboardHandler("ace/keyboard/"+b),o&&(this.refEditor.className+=" "+o),x&&x(this.editor),this.editor.resize(),a&&this.editor.focus()},e.prototype.componentDidUpdate=function(n){for(var r=n,o=this.props,i=0;i 0!";if(d!=this.$splits){if(d>this.$splits){for(;this.$splitsd;)h=this.$editors[this.$splits-1],this.$container.removeChild(h.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(d){return this.$editors[d]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(d){this.$editors.forEach(function(h){h.setTheme(d)})},this.setKeyboardHandler=function(d){this.$editors.forEach(function(h){h.setKeyboardHandler(d)})},this.forEach=function(d,h){this.$editors.forEach(d,h)},this.$fontSize="",this.setFontSize=function(d){this.$fontSize=d,this.forEach(function(h){h.setFontSize(d)})},this.$cloneSession=function(d){var h=new u(d.getDocument(),d.getMode()),p=d.getUndoManager();return h.setUndoManager(p),h.setTabSize(d.getTabSize()),h.setUseSoftTabs(d.getUseSoftTabs()),h.setOverwrite(d.getOverwrite()),h.setBreakpoints(d.getBreakpoints()),h.setUseWrapMode(d.getUseWrapMode()),h.setUseWorker(d.getUseWorker()),h.setWrapLimitRange(d.$wrapLimitRange.min,d.$wrapLimitRange.max),h.$foldData=d.$cloneFoldData(),h},this.setSession=function(d,h){var p;h==null?p=this.$cEditor:p=this.$editors[h];var f=this.$editors.some(function(g){return g.session===d});return f&&(d=this.$cloneSession(d)),p.setSession(d),d},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(d){this.$orientation!=d&&(this.$orientation=d,this.resize())},this.resize=function(){var d=this.$container.clientWidth,h=this.$container.clientHeight,p;if(this.$orientation==this.BESIDE)for(var f=d/this.$splits,g=0;g-1}function uce(t,e){var n=this.__data__,r=_v(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}mu.prototype.clear=ice,mu.prototype.delete=sce,mu.prototype.get=lce,mu.prototype.has=cce,mu.prototype.set=uce;function kl(t){var e=-1,n=t?t.length:0;for(this.clear();++e0&&n.handleMarkers(L,_);for(var E=0;E"u"&&(this.Diff_Timeout<=0?a=Number.MAX_VALUE:a=new Date().getTime()+this.Diff_Timeout*1e3);var u=a;if(i==null||s==null)throw new Error("Null input. (diff_main)");if(i==s)return i?[new e.Diff(o,i)]:[];typeof l>"u"&&(l=!0);var c=l,d=this.diff_commonPrefix(i,s),h=i.substring(0,d);i=i.substring(d),s=s.substring(d),d=this.diff_commonSuffix(i,s);var p=i.substring(i.length-d);i=i.substring(0,i.length-d),s=s.substring(0,s.length-d);var f=this.diff_compute_(i,s,c,u);return h&&f.unshift(new e.Diff(o,h)),p&&f.push(new e.Diff(o,p)),this.diff_cleanupMerge(f),f},e.prototype.diff_compute_=function(i,s,l,a){var u;if(!i)return[new e.Diff(r,s)];if(!s)return[new e.Diff(n,i)];var c=i.length>s.length?i:s,d=i.length>s.length?s:i,h=c.indexOf(d);if(h!=-1)return u=[new e.Diff(r,c.substring(0,h)),new e.Diff(o,d),new e.Diff(r,c.substring(h+d.length))],i.length>s.length&&(u[0][0]=u[2][0]=n),u;if(d.length==1)return[new e.Diff(n,i),new e.Diff(r,s)];var p=this.diff_halfMatch_(i,s);if(p){var f=p[0],g=p[1],m=p[2],v=p[3],y=p[4],b=this.diff_main(f,m,l,a),x=this.diff_main(g,v,l,a);return b.concat([new e.Diff(o,y)],x)}return l&&i.length>100&&s.length>100?this.diff_lineMode_(i,s,a):this.diff_bisect_(i,s,a)},e.prototype.diff_lineMode_=function(i,s,l){var a=this.diff_linesToChars_(i,s);i=a.chars1,s=a.chars2;var u=a.lineArray,c=this.diff_main(i,s,!1,l);this.diff_charsToLines_(c,u),this.diff_cleanupSemantic(c),c.push(new e.Diff(o,""));for(var d=0,h=0,p=0,f="",g="";d=1&&p>=1){c.splice(d-h-p,h+p),d=d-h-p;for(var m=this.diff_main(f,g,!1,l),v=m.length-1;v>=0;v--)c.splice(d,0,m[v]);d=d+m.length}p=0,h=0,f="",g="";break}d++}return c.pop(),c},e.prototype.diff_bisect_=function(i,s,l){for(var a=i.length,u=s.length,c=Math.ceil((a+u)/2),d=c,h=2*c,p=new Array(h),f=new Array(h),g=0;gl);w++){for(var S=-w+y;S<=w-b;S+=2){var A=d+S,C;S==-w||S!=w&&p[A-1]a)b+=2;else if(O>u)y+=2;else if(v){var R=d+m-S;if(R>=0&&R=_)return this.diff_bisectSplit_(i,s,C,O,l)}}}for(var T=-w+x;T<=w-k;T+=2){var R=d+T,_;T==-w||T!=w&&f[R-1]a)k+=2;else if(E>u)x+=2;else if(!v){var A=d+m-T;if(A>=0&&A=_)return this.diff_bisectSplit_(i,s,C,O,l)}}}}return[new e.Diff(n,i),new e.Diff(r,s)]},e.prototype.diff_bisectSplit_=function(i,s,l,a,u){var c=i.substring(0,l),d=s.substring(0,a),h=i.substring(l),p=s.substring(a),f=this.diff_main(c,d,!1,u),g=this.diff_main(h,p,!1,u);return f.concat(g)},e.prototype.diff_linesToChars_=function(i,s){var l=[],a={};l[0]="";function u(p){for(var f="",g=0,m=-1,v=l.length;ma?i=i.substring(l-a):ls.length?i:s,a=i.length>s.length?s:i;if(l.length<4||a.length*2=b.length?[C,O,R,_,A]:null}var d=c(l,a,Math.ceil(l.length/4)),h=c(l,a,Math.ceil(l.length/2)),p;if(!d&&!h)return null;h?d?p=d[4].length>h[4].length?d:h:p=h:p=d;var f,g,m,v;i.length>s.length?(f=p[0],g=p[1],m=p[2],v=p[3]):(m=p[0],v=p[1],f=p[2],g=p[3]);var y=p[4];return[f,g,m,v,y]},e.prototype.diff_cleanupSemantic=function(i){for(var s=!1,l=[],a=0,u=null,c=0,d=0,h=0,p=0,f=0;c0?l[a-1]:-1,d=0,h=0,p=0,f=0,u=null,s=!0)),c++;for(s&&this.diff_cleanupMerge(i),this.diff_cleanupSemanticLossless(i),c=1;c=y?(v>=g.length/2||v>=m.length/2)&&(i.splice(c,0,new e.Diff(o,m.substring(0,v))),i[c-1][1]=g.substring(0,g.length-v),i[c+1][1]=m.substring(v),c++):(y>=g.length/2||y>=m.length/2)&&(i.splice(c,0,new e.Diff(o,g.substring(0,y))),i[c-1][0]=r,i[c-1][1]=m.substring(0,m.length-y),i[c+1][0]=n,i[c+1][1]=g.substring(y),c++),c++}c++}},e.prototype.diff_cleanupSemanticLossless=function(i){function s(y,b){if(!y||!b)return 6;var x=y.charAt(y.length-1),k=b.charAt(0),w=x.match(e.nonAlphaNumericRegex_),S=k.match(e.nonAlphaNumericRegex_),A=w&&x.match(e.whitespaceRegex_),C=S&&k.match(e.whitespaceRegex_),O=A&&x.match(e.linebreakRegex_),R=C&&k.match(e.linebreakRegex_),_=O&&y.match(e.blanklineEndRegex_),T=R&&b.match(e.blanklineStartRegex_);return _||T?5:O||R?4:w&&!A&&C?3:A||C?2:w||S?1:0}for(var l=1;l=m&&(m=v,p=a,f=u,g=c)}i[l-1][1]!=p&&(p?i[l-1][1]=p:(i.splice(l-1,1),l--),i[l][1]=f,g?i[l+1][1]=g:(i.splice(l+1,1),l--))}l++}},e.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,e.whitespaceRegex_=/\s/,e.linebreakRegex_=/[\r\n]/,e.blanklineEndRegex_=/\n\r?\n$/,e.blanklineStartRegex_=/^\r?\n\r?\n/,e.prototype.diff_cleanupEfficiency=function(i){for(var s=!1,l=[],a=0,u=null,c=0,d=!1,h=!1,p=!1,f=!1;c0?l[a-1]:-1,p=f=!1),s=!0)),c++;s&&this.diff_cleanupMerge(i)},e.prototype.diff_cleanupMerge=function(i){i.push(new e.Diff(o,""));for(var s=0,l=0,a=0,u="",c="",d;s1?(l!==0&&a!==0&&(d=this.diff_commonPrefix(c,u),d!==0&&(s-l-a>0&&i[s-l-a-1][0]==o?i[s-l-a-1][1]+=c.substring(0,d):(i.splice(0,0,new e.Diff(o,c.substring(0,d))),s++),c=c.substring(d),u=u.substring(d)),d=this.diff_commonSuffix(c,u),d!==0&&(i[s][1]=c.substring(c.length-d)+i[s][1],c=c.substring(0,c.length-d),u=u.substring(0,u.length-d))),s-=l+a,i.splice(s,l+a),u.length&&(i.splice(s,0,new e.Diff(n,u)),s++),c.length&&(i.splice(s,0,new e.Diff(r,c)),s++),s++):s!==0&&i[s-1][0]==o?(i[s-1][1]+=i[s][1],i.splice(s,1)):s++,a=0,l=0,u="",c="";break}i[i.length-1][1]===""&&i.pop();var h=!1;for(s=1;ss));d++)u=l,c=a;return i.length!=d&&i[d][0]===n?c:c+(s-u)},e.prototype.diff_prettyHtml=function(i){for(var s=[],l=/&/g,a=//g,c=/\n/g,d=0;d");switch(h){case r:s[d]=''+f+"";break;case n:s[d]=''+f+"";break;case o:s[d]=""+f+"";break}}return s.join("")},e.prototype.diff_text1=function(i){for(var s=[],l=0;lthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var a=this.match_alphabet_(s),u=this;function c(C,O){var R=C/s.length,_=Math.abs(l-O);return u.Match_Distance?R+_/u.Match_Distance:_?1:R}var d=this.Match_Threshold,h=i.indexOf(s,l);h!=-1&&(d=Math.min(c(0,h),d),h=i.lastIndexOf(s,l+s.length),h!=-1&&(d=Math.min(c(0,h),d)));var p=1<=b;w--){var S=a[i.charAt(w-1)];if(y===0?k[w]=(k[w+1]<<1|1)&S:k[w]=(k[w+1]<<1|1)&S|((v[w+1]|v[w])<<1|1)|v[w+1],k[w]&p){var A=c(y,w-1);if(A<=d)if(d=A,h=w-1,h>l)b=Math.max(1,2*l-h);else break}}if(c(y+1,l)>d)break;v=k}return h},e.prototype.match_alphabet_=function(i){for(var s={},l=0;l"u")a=i,u=this.diff_main(a,s,!0),u.length>2&&(this.diff_cleanupSemantic(u),this.diff_cleanupEfficiency(u));else if(i&&typeof i=="object"&&typeof s>"u"&&typeof l>"u")u=i,a=this.diff_text1(u);else if(typeof i=="string"&&s&&typeof s=="object"&&typeof l>"u")a=i,u=s;else if(typeof i=="string"&&typeof s=="string"&&l&&typeof l=="object")a=i,u=l;else throw new Error("Unknown call format to patch_make.");if(u.length===0)return[];for(var c=[],d=new e.patch_obj,h=0,p=0,f=0,g=a,m=a,v=0;v=2*this.Patch_Margin&&h&&(this.patch_addContext_(d,g),c.push(d),d=new e.patch_obj,h=0,g=m,p=f);break}y!==r&&(p+=b.length),y!==n&&(f+=b.length)}return h&&(this.patch_addContext_(d,g),c.push(d)),c},e.prototype.patch_deepCopy=function(i){for(var s=[],l=0;lthis.Match_MaxBits?(p=this.match_main(s,h.substring(0,this.Match_MaxBits),d),p!=-1&&(f=this.match_main(s,h.substring(h.length-this.Match_MaxBits),d+h.length-this.Match_MaxBits),(f==-1||p>=f)&&(p=-1))):p=this.match_main(s,h,d),p==-1)u[c]=!1,a-=i[c].length2-i[c].length1;else{u[c]=!0,a=p-d;var g;if(f==-1?g=s.substring(p,p+h.length):g=s.substring(p,f+this.Match_MaxBits),h==g)s=s.substring(0,p)+this.diff_text2(i[c].diffs)+s.substring(p+h.length);else{var m=this.diff_main(h,g,!1);if(h.length>this.Match_MaxBits&&this.diff_levenshtein(m)/h.length>this.Patch_DeleteThreshold)u[c]=!1;else{this.diff_cleanupSemanticLossless(m);for(var v=0,y,b=0;bc[0][1].length){var d=s-c[0][1].length;c[0][1]=l.substring(c[0][1].length)+c[0][1],u.start1-=d,u.start2-=d,u.length1+=d,u.length2+=d}if(u=i[i.length-1],c=u.diffs,c.length==0||c[c.length-1][0]!=o)c.push(new e.Diff(o,l)),u.length1+=s,u.length2+=s;else if(s>c[c.length-1][1].length){var d=s-c[c.length-1][1].length;c[c.length-1][1]+=l.substring(0,d),u.length1+=d,u.length2+=d}return l},e.prototype.patch_splitMax=function(i){for(var s=this.Match_MaxBits,l=0;l2*s?(h.length1+=g.length,u+=g.length,p=!1,h.diffs.push(new e.Diff(f,g)),a.diffs.shift()):(g=g.substring(0,s-h.length1-this.Patch_Margin),h.length1+=g.length,u+=g.length,f===o?(h.length2+=g.length,c+=g.length):p=!1,h.diffs.push(new e.Diff(f,g)),g==a.diffs[0][1]?a.diffs.shift():a.diffs[0][1]=a.diffs[0][1].substring(g.length))}d=this.diff_text2(h.diffs),d=d.substring(d.length-this.Patch_Margin);var m=this.diff_text1(a.diffs).substring(0,this.Patch_Margin);m!==""&&(h.length1+=m.length,h.length2+=m.length,h.diffs.length!==0&&h.diffs[h.diffs.length-1][0]===o?h.diffs[h.diffs.length-1][1]+=m:h.diffs.push(new e.Diff(o,m))),p||i.splice(++l,0,h)}}},e.prototype.patch_toText=function(i){for(var s=[],l=0;l-1}function nS(z,j){var Q=this.__data__,fe=Fv(Q,z);return fe<0?(++this.size,Q.push([z,j])):Q[fe][1]=j,this}To.prototype.clear=Pv,To.prototype.delete=QE,To.prototype.get=eS,To.prototype.has=tS,To.prototype.set=nS;function Le(z){var j=-1,Q=z==null?0:z.length;for(this.clear();++jCn))return!1;var zt=De.get(z);if(zt&&De.get(j))return zt==j;var oo=-1,Ko=!0,Zn=Q&i?new zv:void 0;for(De.set(z,j),De.set(j,z);++oo-1&&z%1==0&&z-1&&z%1==0&&z<=s}function pD(z){var j=typeof z;return z!=null&&(j=="object"||j=="function")}function kp(z){return z!=null&&typeof z=="object"}var fD=Me?fr(Me):Fue;function Que(z){return Zue(z)?$ue(z):Bue(z)}function ede(){return[]}function tde(){return!1}t.exports=Jue}(Av,Av.exports);var z$=Av.exports,jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.getAceInstance=jo.debounce=jo.editorEvents=jo.editorOptions=void 0;var Xle=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];jo.editorOptions=Xle;var qle=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];jo.editorEvents=qle;var Zle=function(){var t;return typeof window>"u"?($e.window={},t=Tv,delete $e.window):window.ace?(t=window.ace,t.acequire=window.ace.require||window.ace.acequire):t=Tv,t};jo.getAceInstance=Zle;var Jle=function(t,e){var n=null;return function(){var r=this,o=arguments;clearTimeout(n),n=setTimeout(function(){t.apply(r,o)},e)}};jo.debounce=Jle;var Qle=$e&&$e.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},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)}}(),zE=$e&&$e.__assign||function(){return zE=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&this.handleMarkers(S);var R=this.editor.$options;fu.editorOptions.forEach(function(_){R.hasOwnProperty(_)?n.editor.setOption(_,n.props[_]):n.props[_]&&console.warn("ReactAce: editor option ".concat(_," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}),this.handleOptions(this.props),Array.isArray(k)&&k.forEach(function(_){typeof _.exec=="string"?n.editor.commands.bindKey(_.bindKey,_.exec):n.editor.commands.addCommand(_)}),b&&this.editor.setKeyboardHandler("ace/keyboard/"+b),o&&(this.refEditor.className+=" "+o),x&&x(this.editor),this.editor.resize(),a&&this.editor.focus()},e.prototype.componentDidUpdate=function(n){for(var r=n,o=this.props,i=0;i 0!";if(d!=this.$splits){if(d>this.$splits){for(;this.$splitsd;)h=this.$editors[this.$splits-1],this.$container.removeChild(h.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(d){return this.$editors[d]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(d){this.$editors.forEach(function(h){h.setTheme(d)})},this.setKeyboardHandler=function(d){this.$editors.forEach(function(h){h.setKeyboardHandler(d)})},this.forEach=function(d,h){this.$editors.forEach(d,h)},this.$fontSize="",this.setFontSize=function(d){this.$fontSize=d,this.forEach(function(h){h.setFontSize(d)})},this.$cloneSession=function(d){var h=new u(d.getDocument(),d.getMode()),p=d.getUndoManager();return h.setUndoManager(p),h.setTabSize(d.getTabSize()),h.setUseSoftTabs(d.getUseSoftTabs()),h.setOverwrite(d.getOverwrite()),h.setBreakpoints(d.getBreakpoints()),h.setUseWrapMode(d.getUseWrapMode()),h.setUseWorker(d.getUseWorker()),h.setWrapLimitRange(d.$wrapLimitRange.min,d.$wrapLimitRange.max),h.$foldData=d.$cloneFoldData(),h},this.setSession=function(d,h){var p;h==null?p=this.$cEditor:p=this.$editors[h];var f=this.$editors.some(function(g){return g.session===d});return f&&(d=this.$cloneSession(d)),p.setSession(d),d},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(d){this.$orientation!=d&&(this.$orientation=d,this.resize())},this.resize=function(){var d=this.$container.clientWidth,h=this.$container.clientHeight,p;if(this.$orientation==this.BESIDE)for(var f=d/this.$splits,g=0;g-1}function Lce(t,e){var n=this.__data__,r=Mv(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}gu.prototype.clear=Rce,gu.prototype.delete=Mce,gu.prototype.get=Oce,gu.prototype.has=Ice,gu.prototype.set=Lce;function El(t){var e=-1,n=t?t.length:0;for(this.clear();++e0&&n.handleMarkers(L,_);for(var E=0;E"u"&&(this.Diff_Timeout<=0?a=Number.MAX_VALUE:a=new Date().getTime()+this.Diff_Timeout*1e3);var u=a;if(i==null||s==null)throw new Error("Null input. (diff_main)");if(i==s)return i?[new e.Diff(o,i)]:[];typeof l>"u"&&(l=!0);var c=l,d=this.diff_commonPrefix(i,s),h=i.substring(0,d);i=i.substring(d),s=s.substring(d),d=this.diff_commonSuffix(i,s);var p=i.substring(i.length-d);i=i.substring(0,i.length-d),s=s.substring(0,s.length-d);var f=this.diff_compute_(i,s,c,u);return h&&f.unshift(new e.Diff(o,h)),p&&f.push(new e.Diff(o,p)),this.diff_cleanupMerge(f),f},e.prototype.diff_compute_=function(i,s,l,a){var u;if(!i)return[new e.Diff(r,s)];if(!s)return[new e.Diff(n,i)];var c=i.length>s.length?i:s,d=i.length>s.length?s:i,h=c.indexOf(d);if(h!=-1)return u=[new e.Diff(r,c.substring(0,h)),new e.Diff(o,d),new e.Diff(r,c.substring(h+d.length))],i.length>s.length&&(u[0][0]=u[2][0]=n),u;if(d.length==1)return[new e.Diff(n,i),new e.Diff(r,s)];var p=this.diff_halfMatch_(i,s);if(p){var f=p[0],g=p[1],m=p[2],v=p[3],y=p[4],b=this.diff_main(f,m,l,a),x=this.diff_main(g,v,l,a);return b.concat([new e.Diff(o,y)],x)}return l&&i.length>100&&s.length>100?this.diff_lineMode_(i,s,a):this.diff_bisect_(i,s,a)},e.prototype.diff_lineMode_=function(i,s,l){var a=this.diff_linesToChars_(i,s);i=a.chars1,s=a.chars2;var u=a.lineArray,c=this.diff_main(i,s,!1,l);this.diff_charsToLines_(c,u),this.diff_cleanupSemantic(c),c.push(new e.Diff(o,""));for(var d=0,h=0,p=0,f="",g="";d=1&&p>=1){c.splice(d-h-p,h+p),d=d-h-p;for(var m=this.diff_main(f,g,!1,l),v=m.length-1;v>=0;v--)c.splice(d,0,m[v]);d=d+m.length}p=0,h=0,f="",g="";break}d++}return c.pop(),c},e.prototype.diff_bisect_=function(i,s,l){for(var a=i.length,u=s.length,c=Math.ceil((a+u)/2),d=c,h=2*c,p=new Array(h),f=new Array(h),g=0;gl);w++){for(var S=-w+y;S<=w-b;S+=2){var T=d+S,C;S==-w||S!=w&&p[T-1]a)b+=2;else if(O>u)y+=2;else if(v){var R=d+m-S;if(R>=0&&R=_)return this.diff_bisectSplit_(i,s,C,O,l)}}}for(var A=-w+x;A<=w-k;A+=2){var R=d+A,_;A==-w||A!=w&&f[R-1]a)k+=2;else if(E>u)x+=2;else if(!v){var T=d+m-A;if(T>=0&&T=_)return this.diff_bisectSplit_(i,s,C,O,l)}}}}return[new e.Diff(n,i),new e.Diff(r,s)]},e.prototype.diff_bisectSplit_=function(i,s,l,a,u){var c=i.substring(0,l),d=s.substring(0,a),h=i.substring(l),p=s.substring(a),f=this.diff_main(c,d,!1,u),g=this.diff_main(h,p,!1,u);return f.concat(g)},e.prototype.diff_linesToChars_=function(i,s){var l=[],a={};l[0]="";function u(p){for(var f="",g=0,m=-1,v=l.length;ma?i=i.substring(l-a):ls.length?i:s,a=i.length>s.length?s:i;if(l.length<4||a.length*2=b.length?[C,O,R,_,T]:null}var d=c(l,a,Math.ceil(l.length/4)),h=c(l,a,Math.ceil(l.length/2)),p;if(!d&&!h)return null;h?d?p=d[4].length>h[4].length?d:h:p=h:p=d;var f,g,m,v;i.length>s.length?(f=p[0],g=p[1],m=p[2],v=p[3]):(m=p[0],v=p[1],f=p[2],g=p[3]);var y=p[4];return[f,g,m,v,y]},e.prototype.diff_cleanupSemantic=function(i){for(var s=!1,l=[],a=0,u=null,c=0,d=0,h=0,p=0,f=0;c0?l[a-1]:-1,d=0,h=0,p=0,f=0,u=null,s=!0)),c++;for(s&&this.diff_cleanupMerge(i),this.diff_cleanupSemanticLossless(i),c=1;c=y?(v>=g.length/2||v>=m.length/2)&&(i.splice(c,0,new e.Diff(o,m.substring(0,v))),i[c-1][1]=g.substring(0,g.length-v),i[c+1][1]=m.substring(v),c++):(y>=g.length/2||y>=m.length/2)&&(i.splice(c,0,new e.Diff(o,g.substring(0,y))),i[c-1][0]=r,i[c-1][1]=m.substring(0,m.length-y),i[c+1][0]=n,i[c+1][1]=g.substring(y),c++),c++}c++}},e.prototype.diff_cleanupSemanticLossless=function(i){function s(y,b){if(!y||!b)return 6;var x=y.charAt(y.length-1),k=b.charAt(0),w=x.match(e.nonAlphaNumericRegex_),S=k.match(e.nonAlphaNumericRegex_),T=w&&x.match(e.whitespaceRegex_),C=S&&k.match(e.whitespaceRegex_),O=T&&x.match(e.linebreakRegex_),R=C&&k.match(e.linebreakRegex_),_=O&&y.match(e.blanklineEndRegex_),A=R&&b.match(e.blanklineStartRegex_);return _||A?5:O||R?4:w&&!T&&C?3:T||C?2:w||S?1:0}for(var l=1;l=m&&(m=v,p=a,f=u,g=c)}i[l-1][1]!=p&&(p?i[l-1][1]=p:(i.splice(l-1,1),l--),i[l][1]=f,g?i[l+1][1]=g:(i.splice(l+1,1),l--))}l++}},e.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,e.whitespaceRegex_=/\s/,e.linebreakRegex_=/[\r\n]/,e.blanklineEndRegex_=/\n\r?\n$/,e.blanklineStartRegex_=/^\r?\n\r?\n/,e.prototype.diff_cleanupEfficiency=function(i){for(var s=!1,l=[],a=0,u=null,c=0,d=!1,h=!1,p=!1,f=!1;c0?l[a-1]:-1,p=f=!1),s=!0)),c++;s&&this.diff_cleanupMerge(i)},e.prototype.diff_cleanupMerge=function(i){i.push(new e.Diff(o,""));for(var s=0,l=0,a=0,u="",c="",d;s1?(l!==0&&a!==0&&(d=this.diff_commonPrefix(c,u),d!==0&&(s-l-a>0&&i[s-l-a-1][0]==o?i[s-l-a-1][1]+=c.substring(0,d):(i.splice(0,0,new e.Diff(o,c.substring(0,d))),s++),c=c.substring(d),u=u.substring(d)),d=this.diff_commonSuffix(c,u),d!==0&&(i[s][1]=c.substring(c.length-d)+i[s][1],c=c.substring(0,c.length-d),u=u.substring(0,u.length-d))),s-=l+a,i.splice(s,l+a),u.length&&(i.splice(s,0,new e.Diff(n,u)),s++),c.length&&(i.splice(s,0,new e.Diff(r,c)),s++),s++):s!==0&&i[s-1][0]==o?(i[s-1][1]+=i[s][1],i.splice(s,1)):s++,a=0,l=0,u="",c="";break}i[i.length-1][1]===""&&i.pop();var h=!1;for(s=1;ss));d++)u=l,c=a;return i.length!=d&&i[d][0]===n?c:c+(s-u)},e.prototype.diff_prettyHtml=function(i){for(var s=[],l=/&/g,a=//g,c=/\n/g,d=0;d");switch(h){case r:s[d]=''+f+"";break;case n:s[d]=''+f+"";break;case o:s[d]=""+f+"";break}}return s.join("")},e.prototype.diff_text1=function(i){for(var s=[],l=0;lthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var a=this.match_alphabet_(s),u=this;function c(C,O){var R=C/s.length,_=Math.abs(l-O);return u.Match_Distance?R+_/u.Match_Distance:_?1:R}var d=this.Match_Threshold,h=i.indexOf(s,l);h!=-1&&(d=Math.min(c(0,h),d),h=i.lastIndexOf(s,l+s.length),h!=-1&&(d=Math.min(c(0,h),d)));var p=1<=b;w--){var S=a[i.charAt(w-1)];if(y===0?k[w]=(k[w+1]<<1|1)&S:k[w]=(k[w+1]<<1|1)&S|((v[w+1]|v[w])<<1|1)|v[w+1],k[w]&p){var T=c(y,w-1);if(T<=d)if(d=T,h=w-1,h>l)b=Math.max(1,2*l-h);else break}}if(c(y+1,l)>d)break;v=k}return h},e.prototype.match_alphabet_=function(i){for(var s={},l=0;l"u")a=i,u=this.diff_main(a,s,!0),u.length>2&&(this.diff_cleanupSemantic(u),this.diff_cleanupEfficiency(u));else if(i&&typeof i=="object"&&typeof s>"u"&&typeof l>"u")u=i,a=this.diff_text1(u);else if(typeof i=="string"&&s&&typeof s=="object"&&typeof l>"u")a=i,u=s;else if(typeof i=="string"&&typeof s=="string"&&l&&typeof l=="object")a=i,u=l;else throw new Error("Unknown call format to patch_make.");if(u.length===0)return[];for(var c=[],d=new e.patch_obj,h=0,p=0,f=0,g=a,m=a,v=0;v=2*this.Patch_Margin&&h&&(this.patch_addContext_(d,g),c.push(d),d=new e.patch_obj,h=0,g=m,p=f);break}y!==r&&(p+=b.length),y!==n&&(f+=b.length)}return h&&(this.patch_addContext_(d,g),c.push(d)),c},e.prototype.patch_deepCopy=function(i){for(var s=[],l=0;lthis.Match_MaxBits?(p=this.match_main(s,h.substring(0,this.Match_MaxBits),d),p!=-1&&(f=this.match_main(s,h.substring(h.length-this.Match_MaxBits),d+h.length-this.Match_MaxBits),(f==-1||p>=f)&&(p=-1))):p=this.match_main(s,h,d),p==-1)u[c]=!1,a-=i[c].length2-i[c].length1;else{u[c]=!0,a=p-d;var g;if(f==-1?g=s.substring(p,p+h.length):g=s.substring(p,f+this.Match_MaxBits),h==g)s=s.substring(0,p)+this.diff_text2(i[c].diffs)+s.substring(p+h.length);else{var m=this.diff_main(h,g,!1);if(h.length>this.Match_MaxBits&&this.diff_levenshtein(m)/h.length>this.Patch_DeleteThreshold)u[c]=!1;else{this.diff_cleanupSemanticLossless(m);for(var v=0,y,b=0;bc[0][1].length){var d=s-c[0][1].length;c[0][1]=l.substring(c[0][1].length)+c[0][1],u.start1-=d,u.start2-=d,u.length1+=d,u.length2+=d}if(u=i[i.length-1],c=u.diffs,c.length==0||c[c.length-1][0]!=o)c.push(new e.Diff(o,l)),u.length1+=s,u.length2+=s;else if(s>c[c.length-1][1].length){var d=s-c[c.length-1][1].length;c[c.length-1][1]+=l.substring(0,d),u.length1+=d,u.length2+=d}return l},e.prototype.patch_splitMax=function(i){for(var s=this.Match_MaxBits,l=0;l2*s?(h.length1+=g.length,u+=g.length,p=!1,h.diffs.push(new e.Diff(f,g)),a.diffs.shift()):(g=g.substring(0,s-h.length1-this.Patch_Margin),h.length1+=g.length,u+=g.length,f===o?(h.length2+=g.length,c+=g.length):p=!1,h.diffs.push(new e.Diff(f,g)),g==a.diffs[0][1]?a.diffs.shift():a.diffs[0][1]=a.diffs[0][1].substring(g.length))}d=this.diff_text2(h.diffs),d=d.substring(d.length-this.Patch_Margin);var m=this.diff_text1(a.diffs).substring(0,this.Patch_Margin);m!==""&&(h.length1+=m.length,h.length2+=m.length,h.diffs.length!==0&&h.diffs[h.diffs.length-1][0]===o?h.diffs[h.diffs.length-1][1]+=m:h.diffs.push(new e.Diff(o,m))),p||i.splice(++l,0,h)}}},e.prototype.patch_toText=function(i){for(var s=[],l=0;l/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),d("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[d("function_arguments"),{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!h||!h.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(m,v,y){if(this.next=m=="{"?this.nextState:"",m=="{"&&y.length)y.unshift("start",v);else if(m=="}"&&y.length&&(y.shift(),this.next=y.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return m=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:g},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+a+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=.+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!h||h.jsx!=!1)&&c.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()};i.inherits(u,l);function c(){var h=a.replace("\\d","\\d\\-"),p={onMatch:function(g,m,v){var y=g.charAt(1)=="/"?2:1;return y==1?(m!=this.nextState?v.unshift(this.next,this.nextState,0):v.unshift(this.next),v[2]++):y==2&&m==this.nextState&&(v[1]--,(!v[1]||v[1]<0)&&(v.shift(),v.shift())),[{type:"meta.tag.punctuation."+(y==1?"":"end-")+"tag-open.xml",value:g.slice(0,y)},{type:"meta.tag.tag-name.xml",value:g.substr(y)}]},regex:"",onMatch:function(g,m,v){return m==v[0]&&v.shift(),g.length==2&&(v[0]==this.nextState&&v[1]--,(!v[1]||v[1]<0)&&v.splice(0,2)),this.next=v[0]||"start",[{type:this.token,value:g}]},nextState:"jsx"},f,d("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:h},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},p],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function d(h){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:h||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:h||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.JavaScriptHighlightRules=u}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,r,o){var i=n("../range").Range,s=function(){};(function(){this.checkOutdent=function(l,a){return/^\s+$/.test(l)?/^\s*\}/.test(a):!1},this.autoOutdent=function(l,a){var u=l.getLine(a),c=u.match(/^(\s*\})/);if(!c)return 0;var d=c[1].length,h=l.findMatchingBracket({row:a,column:d});if(!h||h.row==a)return 0;var p=this.$getIndent(l.getLine(h.row));l.replace(new i(a,0,a,d-1),p)},this.$getIndent=function(l){return l.match(/^\s*/)[0]}}).call(s.prototype),r.MatchingBraceOutdent=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,o){var i=n("../../lib/oop"),s=n("../../range").Range,l=n("./fold_mode").FoldMode,a=r.FoldMode=function(u){u&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+u.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+u.end)))};i.inherits(a,l),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(u,c,d){var h=u.getLine(d);if(this.singleLineBlockCommentRe.test(h)&&!this.startRegionRe.test(h)&&!this.tripleStarBlockCommentRe.test(h))return"";var p=this._getFoldWidgetBase(u,c,d);return!p&&this.startRegionRe.test(h)?"start":p},this.getFoldWidgetRange=function(u,c,d,h){var p=u.getLine(d);if(this.startRegionRe.test(p))return this.getCommentRegionBlock(u,p,d);var m=p.match(this.foldingStartMarker);if(m){var f=m.index;if(m[1])return this.openingBracketBlock(u,m[1],d,f);var g=u.getCommentFoldRange(d,f+m[0].length,1);return g&&!g.isMultiLine()&&(h?g=this.getSectionRange(u,d):c!="all"&&(g=null)),g}if(c!=="markbegin"){var m=p.match(this.foldingStopMarker);if(m){var f=m.index+m[0].length;return m[1]?this.closingBracketBlock(u,m[1],d,f):u.getCommentFoldRange(d,f,-1)}}},this.getSectionRange=function(u,c){var d=u.getLine(c),h=d.search(/\S/),p=c,f=d.length;c=c+1;for(var g=c,m=u.getLength();++cv)break;var y=this.getFoldWidgetRange(u,"all",c);if(y){if(y.start.row<=p)break;if(y.isMultiLine())c=y.end.row;else if(h==v)break}g=c}}return new s(p,f,g,u.getLine(g).length)},this.getCommentRegionBlock=function(u,c,d){for(var h=c.search(/\s*$/),p=u.getLength(),f=d,g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++df)return new s(f,h,y,c.length)}}).call(a.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(n,r,o){var i=n("../lib/oop"),s=n("./text").Mode,l=n("./javascript_highlight_rules").JavaScriptHighlightRules,a=n("./matching_brace_outdent").MatchingBraceOutdent,u=n("../worker/worker_client").WorkerClient,c=n("./behaviour/cstyle").CstyleBehaviour,d=n("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=l,this.$outdent=new a,this.$behaviour=new c,this.foldingRules=new d};i.inherits(h,s),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(p,f,g){var m=this.$getIndent(f),v=this.getTokenizer().getLineTokens(f,p),y=v.tokens,b=v.state;if(y.length&&y[y.length-1].type=="comment")return m;if(p=="start"||p=="no_regex"){var x=f.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);x&&(m+=g)}else if(p=="doc-start"){if(b=="start"||b=="no_regex")return"";var x=f.match(/^\s*(\/?)\*/);x&&(x[1]&&(m+=" "),m+="* ")}return m},this.checkOutdent=function(p,f,g){return this.$outdent.checkOutdent(f,g)},this.autoOutdent=function(p,f,g){this.$outdent.autoOutdent(f,g)},this.createWorker=function(p){var f=new u(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return f.attachToDocument(p.getDocument()),f.on("annotate",function(g){p.setAnnotations(g.data)}),f.on("terminate",function(){p.clearAnnotations()}),f},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(h.prototype),r.Mode=h}),function(){ace.require(["ace/mode/javascript"],function(n){t&&(t.exports=n)})}()})(jce);var Gce={exports:{}};(function(t,e){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop");n("../lib/lang");var s=n("./text_highlight_rules").TextHighlightRules,l=r.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",a=r.supportFunction="rgb|rgba|url|attr|counter|counters",u=r.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",c=r.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|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|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",d=r.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",h=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",p=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",f=r.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",g=function(){var m=this.createKeywordMapper({"support.function":a,"support.constant":u,"support.type":l,"support.constant.color":c,"support.constant.fonts":d},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:h},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+h+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:h},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:p},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:f},{include:"url"},{token:m,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};i.inherits(g,s),r.CssHighlightRules=g}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("./text_highlight_rules").TextHighlightRules,l=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},l.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};i.inherits(l,s),l.getTagRule=function(a){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},l.getStartRule=function(a){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:a}},l.getEndRule=function(a){return{token:"comment.doc",regex:"\\*\\/",next:a}},r.JsDocCommentHighlightRules=l}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,l=n("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",u=function(h){var p=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),f="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",g="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[s.getStartRule("doc-start"),d("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+a+")(\\.)(prototype)(\\.)("+a+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function\\*?)(\\s+)("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+f+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:p,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),d("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[d("function_arguments"),{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!h||!h.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(m,v,y){if(this.next=m=="{"?this.nextState:"",m=="{"&&y.length)y.unshift("start",v);else if(m=="}"&&y.length&&(y.shift(),this.next=y.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return m=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:g},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+a+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=.+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!h||h.jsx!=!1)&&c.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()};i.inherits(u,l);function c(){var h=a.replace("\\d","\\d\\-"),p={onMatch:function(g,m,v){var y=g.charAt(1)=="/"?2:1;return y==1?(m!=this.nextState?v.unshift(this.next,this.nextState,0):v.unshift(this.next),v[2]++):y==2&&m==this.nextState&&(v[1]--,(!v[1]||v[1]<0)&&(v.shift(),v.shift())),[{type:"meta.tag.punctuation."+(y==1?"":"end-")+"tag-open.xml",value:g.slice(0,y)},{type:"meta.tag.tag-name.xml",value:g.substr(y)}]},regex:"",onMatch:function(g,m,v){return m==v[0]&&v.shift(),g.length==2&&(v[0]==this.nextState&&v[1]--,(!v[1]||v[1]<0)&&v.splice(0,2)),this.next=v[0]||"start",[{type:this.token,value:g}]},nextState:"jsx"},f,d("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:h},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},p],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function d(h){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:h||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:h||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.JavaScriptHighlightRules=u}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("./text_highlight_rules").TextHighlightRules,l=function(a){var u="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+u+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+u+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:u},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===l&&this.normalizeRules()};(function(){this.embedTagRules=function(a,u,c){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+c+".tag-name.xml"],regex:"(<)("+c+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:u+"start"}]}),this.$rules[c+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(d,h,p){return p.splice(0),this.token}}],this.embedRules(a,u,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+c+".tag-name.xml"],regex:"(|$))",next:c+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(s.prototype),i.inherits(l,s),r.XmlHighlightRules=l}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("../lib/lang"),l=n("./css_highlight_rules").CssHighlightRules,a=n("./javascript_highlight_rules").JavaScriptHighlightRules,u=n("./xml_highlight_rules").XmlHighlightRules,c=s.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),d=function(){u.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(h,p){var f=c[p];return["meta.tag.punctuation."+(h=="<"?"":"end-")+"tag-open.xml","meta.tag"+(f?"."+f:"")+".tag-name.xml"]},regex:"(",next:"start"}]}),this.embedTagRules(l,"css-","style"),this.embedTagRules(new a({jsx:!1}).getRules(),"js-","script"),this.constructor===d&&this.normalizeRules()};i.inherits(d,u),r.HtmlHighlightRules=d}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(n,r,o){var i=n("../config").$modes,s=n("../lib/oop"),l=n("../lib/lang"),a=n("./text_highlight_rules").TextHighlightRules,u=n("./html_highlight_rules").HtmlHighlightRules,c=function(h){return"(?:[^"+l.escapeRegExp(h)+"\\\\]|\\\\.)*"},d=function(){u.call(this);var h={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(f,g,m,v){var y=f.match(/^(\s*)([`~]+)(.*)/),b=/[\w-]+|$/.exec(y[3])[0];return i[b]||(b=""),m.unshift("githubblock",[],[y[1],y[2],b],g),this.token},next:"githubblock"},p=[{token:"support.function",regex:".*",onMatch:function(f,g,m,v){var y=m[1],b=m[2][0],x=m[2][1],k=m[2][2],w=/^(\s*)(`+|~+)\s*$/.exec(f);if(w&&w[1].length=x.length&&w[2][0]==x[0])return m.splice(0,3),this.next=m.shift(),this.token;if(this.next="",k&&i[k]){var S=i[k].getTokenizer().getLineTokens(f,y.slice(0));return m[1]=S.state,S.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(f){return"markup.heading."+f.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},h,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+c("]")+")(\\]\\s*\\[)("+c("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+c("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+c('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:`(<)((?:https?|ftp|dict):[^'">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)`}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},h,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:p}),this.normalizeRules()};s.inherits(d,a),r.MarkdownHighlightRules=d}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(n,r,o){var i=n("../../lib/oop"),s=n("./fold_mode").FoldMode,l=n("../../range").Range,a=r.FoldMode=function(){};i.inherits(a,s),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(u,c,d){var h=u.getLine(d);return this.foldingStartMarker.test(h)?h[0]=="`"&&u.bgTokenizer.getState(d)=="start"?"end":"start":""},this.getFoldWidgetRange=function(u,c,d){var h=u.getLine(d),p=h.length,f=u.getLength(),g=d,m=d;if(!h.match(this.foldingStartMarker))return;if(h[0]=="`")if(u.bgTokenizer.getState(d)!=="start"){for(;++d0&&(h=u.getLine(d),!(h[0]=="`"&h.substring(0,3)=="```")););return new l(d,h.length,g,0)}var v;function y(A){return v=u.getTokens(A)[0],v&&v.type.lastIndexOf(b,0)===0}var b="markup.heading";function x(){var A=v.value[0];return A=="="?6:A=="-"?5:7-v.value.search(/[^#]|$/)}if(y(d)){for(var k=x();++d=k)break}if(m=d-(!v||["=","-"].indexOf(v.value[0])==-1?1:2),m>g)for(;m>g&&/^\s*$/.test(u.getLine(m));)m--;if(m>g){var S=u.getLine(m).length;return new l(g,p,m,S)}}}}).call(a.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,r,o){var i=n("../range").Range,s=function(){};(function(){this.checkOutdent=function(l,a){return/^\s+$/.test(l)?/^\s*\}/.test(a):!1},this.autoOutdent=function(l,a){var u=l.getLine(a),c=u.match(/^(\s*\})/);if(!c)return 0;var d=c[1].length,h=l.findMatchingBracket({row:a,column:d});if(!h||h.row==a)return 0;var p=this.$getIndent(l.getLine(h.row));l.replace(new i(a,0,a,d-1),p)},this.$getIndent=function(l){return l.match(/^\s*/)[0]}}).call(s.prototype),r.MatchingBraceOutdent=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,o){var i=n("../../lib/oop"),s=n("../../range").Range,l=n("./fold_mode").FoldMode,a=r.FoldMode=function(u){u&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+u.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+u.end)))};i.inherits(a,l),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(u,c,d){var h=u.getLine(d);if(this.singleLineBlockCommentRe.test(h)&&!this.startRegionRe.test(h)&&!this.tripleStarBlockCommentRe.test(h))return"";var p=this._getFoldWidgetBase(u,c,d);return!p&&this.startRegionRe.test(h)?"start":p},this.getFoldWidgetRange=function(u,c,d,h){var p=u.getLine(d);if(this.startRegionRe.test(p))return this.getCommentRegionBlock(u,p,d);var m=p.match(this.foldingStartMarker);if(m){var f=m.index;if(m[1])return this.openingBracketBlock(u,m[1],d,f);var g=u.getCommentFoldRange(d,f+m[0].length,1);return g&&!g.isMultiLine()&&(h?g=this.getSectionRange(u,d):c!="all"&&(g=null)),g}if(c!=="markbegin"){var m=p.match(this.foldingStopMarker);if(m){var f=m.index+m[0].length;return m[1]?this.closingBracketBlock(u,m[1],d,f):u.getCommentFoldRange(d,f,-1)}}},this.getSectionRange=function(u,c){var d=u.getLine(c),h=d.search(/\S/),p=c,f=d.length;c=c+1;for(var g=c,m=u.getLength();++cv)break;var y=this.getFoldWidgetRange(u,"all",c);if(y){if(y.start.row<=p)break;if(y.isMultiLine())c=y.end.row;else if(h==v)break}g=c}}return new s(p,f,g,u.getLine(g).length)},this.getCommentRegionBlock=function(u,c,d){for(var h=c.search(/\s*$/),p=u.getLength(),f=d,g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++df)return new s(f,h,y,c.length)}}).call(a.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(n,r,o){var i=n("../lib/oop"),s=n("./text").Mode,l=n("./javascript_highlight_rules").JavaScriptHighlightRules,a=n("./matching_brace_outdent").MatchingBraceOutdent,u=n("../worker/worker_client").WorkerClient,c=n("./behaviour/cstyle").CstyleBehaviour,d=n("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=l,this.$outdent=new a,this.$behaviour=new c,this.foldingRules=new d};i.inherits(h,s),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(p,f,g){var m=this.$getIndent(f),v=this.getTokenizer().getLineTokens(f,p),y=v.tokens,b=v.state;if(y.length&&y[y.length-1].type=="comment")return m;if(p=="start"||p=="no_regex"){var x=f.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);x&&(m+=g)}else if(p=="doc-start"){if(b=="start"||b=="no_regex")return"";var x=f.match(/^\s*(\/?)\*/);x&&(x[1]&&(m+=" "),m+="* ")}return m},this.checkOutdent=function(p,f,g){return this.$outdent.checkOutdent(f,g)},this.autoOutdent=function(p,f,g){this.$outdent.autoOutdent(f,g)},this.createWorker=function(p){var f=new u(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return f.attachToDocument(p.getDocument()),f.on("annotate",function(g){p.setAnnotations(g.data)}),f.on("terminate",function(){p.clearAnnotations()}),f},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(h.prototype),r.Mode=h}),ace.define("ace/mode/css_completions",["require","exports","module"],function(n,r,o){var i={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},s=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var l=document.createElement("c").style;for(var a in l)if(typeof l[a]=="string"){var u=a.replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});i.hasOwnProperty(u)||(i[u]=1)}}this.completionsDefined=!0},this.getCompletions=function(l,a,u,c){if(this.completionsDefined||this.defineCompletions(),l==="ruleset"||a.$mode.$id=="ace/mode/scss"){var d=a.getLine(u.row).substr(0,u.column),h=/\([^)]*$/.test(d);return h&&(d=d.substr(d.lastIndexOf("(")+1)),/:[^;]+$/.test(d)?this.getPropertyValueCompletions(l,a,u,c):this.getPropertyCompletions(l,a,u,c,h)}return[]},this.getPropertyCompletions=function(l,a,u,c,d){d=d||!1;var h=Object.keys(i);return h.map(function(p){return{caption:p,snippet:p+": $0"+(d?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(l,a,u,c){var d=a.getLine(u.row).substr(0,u.column),h=(/([\w\-]+):[^:]*$/.exec(d)||{})[1];if(!h)return[];var p=[];return h in i&&typeof i[h]=="object"&&(p=Object.keys(i[h])),p.map(function(f){return{caption:f,snippet:f,meta:"property value",score:1e6}})}}).call(s.prototype),r.CssCompletions=s}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(n,r,o){var i=n("../../lib/oop");n("../behaviour").Behaviour;var s=n("./cstyle").CstyleBehaviour,l=n("../../token_iterator").TokenIterator,a=function(){this.inherit(s),this.add("colon","insertion",function(u,c,d,h,p){if(p===":"&&d.selection.isEmpty()){var f=d.getCursorPosition(),g=new l(h,f.row,f.column),m=g.getCurrentToken();if(m&&m.value.match(/\s+/)&&(m=g.stepBackward()),m&&m.type==="support.type"){var v=h.doc.getLine(f.row),y=v.substring(f.column,f.column+1);if(y===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(v.substring(f.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(u,c,d,h,p){var f=h.doc.getTextRange(p);if(!p.isMultiLine()&&f===":"){var g=d.getCursorPosition(),m=new l(h,g.row,g.column),v=m.getCurrentToken();if(v&&v.value.match(/\s+/)&&(v=m.stepBackward()),v&&v.type==="support.type"){var y=h.doc.getLine(p.start.row),b=y.substring(p.end.column,p.end.column+1);if(b===";")return p.end.column++,p}}}),this.add("semicolon","insertion",function(u,c,d,h,p){if(p===";"&&d.selection.isEmpty()){var f=d.getCursorPosition(),g=h.doc.getLine(f.row),m=g.substring(f.column,f.column+1);if(m===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(u,c,d,h,p){if(p==="!"&&d.selection.isEmpty()){var f=d.getCursorPosition(),g=h.doc.getLine(f.row);if(/^\s*(;|}|$)/.test(g.substring(f.column)))return{text:"!important",selection:[10,10]}}})};i.inherits(a,s),r.CssBehaviour=a}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(n,r,o){var i=n("../lib/oop"),s=n("./text").Mode,l=n("./css_highlight_rules").CssHighlightRules,a=n("./matching_brace_outdent").MatchingBraceOutdent,u=n("../worker/worker_client").WorkerClient,c=n("./css_completions").CssCompletions,d=n("./behaviour/css").CssBehaviour,h=n("./folding/cstyle").FoldMode,p=function(){this.HighlightRules=l,this.$outdent=new a,this.$behaviour=new d,this.$completer=new c,this.foldingRules=new h};i.inherits(p,s),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(f,g,m){var v=this.$getIndent(g),y=this.getTokenizer().getLineTokens(g,f).tokens;if(y.length&&y[y.length-1].type=="comment")return v;var b=g.match(/^.*\{\s*$/);return b&&(v+=m),v},this.checkOutdent=function(f,g,m){return this.$outdent.checkOutdent(g,m)},this.autoOutdent=function(f,g,m){this.$outdent.autoOutdent(g,m)},this.getCompletions=function(f,g,m,v){return this.$completer.getCompletions(f,g,m,v)},this.createWorker=function(f){var g=new u(["ace"],"ace/mode/css_worker","Worker");return g.attachToDocument(f.getDocument()),g.on("annotate",function(m){f.setAnnotations(m.data)}),g.on("terminate",function(){f.clearAnnotations()}),g},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(p.prototype),r.Mode=p}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,o){var i=n("../../lib/oop"),s=n("../behaviour").Behaviour,l=n("../../token_iterator").TokenIterator;n("../../lib/lang");function a(c,d){return c&&c.type.lastIndexOf(d+".xml")>-1}var u=function(){this.add("string_dquotes","insertion",function(c,d,h,p,f){if(f=='"'||f=="'"){var g=f,m=p.doc.getTextRange(h.getSelectionRange());if(m!==""&&m!=="'"&&m!='"'&&h.getWrapBehavioursEnabled())return{text:g+m+g,selection:!1};var v=h.getCursorPosition(),y=p.doc.getLine(v.row),b=y.substring(v.column,v.column+1),x=new l(p,v.row,v.column),k=x.getCurrentToken();if(b==g&&(a(k,"attribute-value")||a(k,"string")))return{text:"",selection:[1,1]};if(k||(k=x.stepBackward()),!k)return;for(;a(k,"tag-whitespace")||a(k,"whitespace");)k=x.stepBackward();var w=!b||b.match(/\s/);if(a(k,"attribute-equals")&&(w||b==">")||a(k,"decl-attribute-equals")&&(w||b=="?"))return{text:g+g,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(c,d,h,p,f){var g=p.doc.getTextRange(f);if(!f.isMultiLine()&&(g=='"'||g=="'")){var m=p.doc.getLine(f.start.row),v=m.substring(f.start.column+1,f.start.column+2);if(v==g)return f.end.column++,f}}),this.add("autoclosing","insertion",function(c,d,h,p,f){if(f==">"){var g=h.getSelectionRange().start,m=new l(p,g.row,g.column),v=m.getCurrentToken()||m.stepBackward();if(!v||!(a(v,"tag-name")||a(v,"tag-whitespace")||a(v,"attribute-name")||a(v,"attribute-equals")||a(v,"attribute-value"))||a(v,"reference.attribute-value"))return;if(a(v,"attribute-value")){var y=m.getCurrentTokenColumn()+v.value.length;if(g.column/.test(p.getLine(g.row).slice(g.column)))return;for(;!a(v,"tag-name");)if(v=m.stepBackward(),v.value=="<"){v=m.stepForward();break}var x=m.getCurrentTokenRow(),k=m.getCurrentTokenColumn();if(a(m.stepBackward(),"end-tag-open"))return;var w=v.value;return x==g.row&&(w=w.substring(0,g.column-k)),this.voidElements.hasOwnProperty(w.toLowerCase())?void 0:{text:">",selection:[1,1]}}}),this.add("autoindent","insertion",function(c,d,h,p,f){if(f==` +`&&(h-=1),o.right.push({startLine:i.right,endLine:i.right+h}),i.right+=u;break;default:throw new Error("Diff type was not defined.")}}}),o},e.prototype.setCodeMarkers=function(n){n===void 0&&(n={left:[],right:[]});for(var r=[],o={left:[],right:[]},i=0;i/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),d("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[d("function_arguments"),{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!h||!h.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(m,v,y){if(this.next=m=="{"?this.nextState:"",m=="{"&&y.length)y.unshift("start",v);else if(m=="}"&&y.length&&(y.shift(),this.next=y.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return m=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:g},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+a+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=.+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!h||h.jsx!=!1)&&c.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()};i.inherits(u,l);function c(){var h=a.replace("\\d","\\d\\-"),p={onMatch:function(g,m,v){var y=g.charAt(1)=="/"?2:1;return y==1?(m!=this.nextState?v.unshift(this.next,this.nextState,0):v.unshift(this.next),v[2]++):y==2&&m==this.nextState&&(v[1]--,(!v[1]||v[1]<0)&&(v.shift(),v.shift())),[{type:"meta.tag.punctuation."+(y==1?"":"end-")+"tag-open.xml",value:g.slice(0,y)},{type:"meta.tag.tag-name.xml",value:g.substr(y)}]},regex:"",onMatch:function(g,m,v){return m==v[0]&&v.shift(),g.length==2&&(v[0]==this.nextState&&v[1]--,(!v[1]||v[1]<0)&&v.splice(0,2)),this.next=v[0]||"start",[{type:this.token,value:g}]},nextState:"jsx"},f,d("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:h},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},p],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function d(h){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:h||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:h||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.JavaScriptHighlightRules=u}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,r,o){var i=n("../range").Range,s=function(){};(function(){this.checkOutdent=function(l,a){return/^\s+$/.test(l)?/^\s*\}/.test(a):!1},this.autoOutdent=function(l,a){var u=l.getLine(a),c=u.match(/^(\s*\})/);if(!c)return 0;var d=c[1].length,h=l.findMatchingBracket({row:a,column:d});if(!h||h.row==a)return 0;var p=this.$getIndent(l.getLine(h.row));l.replace(new i(a,0,a,d-1),p)},this.$getIndent=function(l){return l.match(/^\s*/)[0]}}).call(s.prototype),r.MatchingBraceOutdent=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,o){var i=n("../../lib/oop"),s=n("../../range").Range,l=n("./fold_mode").FoldMode,a=r.FoldMode=function(u){u&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+u.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+u.end)))};i.inherits(a,l),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(u,c,d){var h=u.getLine(d);if(this.singleLineBlockCommentRe.test(h)&&!this.startRegionRe.test(h)&&!this.tripleStarBlockCommentRe.test(h))return"";var p=this._getFoldWidgetBase(u,c,d);return!p&&this.startRegionRe.test(h)?"start":p},this.getFoldWidgetRange=function(u,c,d,h){var p=u.getLine(d);if(this.startRegionRe.test(p))return this.getCommentRegionBlock(u,p,d);var m=p.match(this.foldingStartMarker);if(m){var f=m.index;if(m[1])return this.openingBracketBlock(u,m[1],d,f);var g=u.getCommentFoldRange(d,f+m[0].length,1);return g&&!g.isMultiLine()&&(h?g=this.getSectionRange(u,d):c!="all"&&(g=null)),g}if(c!=="markbegin"){var m=p.match(this.foldingStopMarker);if(m){var f=m.index+m[0].length;return m[1]?this.closingBracketBlock(u,m[1],d,f):u.getCommentFoldRange(d,f,-1)}}},this.getSectionRange=function(u,c){var d=u.getLine(c),h=d.search(/\S/),p=c,f=d.length;c=c+1;for(var g=c,m=u.getLength();++cv)break;var y=this.getFoldWidgetRange(u,"all",c);if(y){if(y.start.row<=p)break;if(y.isMultiLine())c=y.end.row;else if(h==v)break}g=c}}return new s(p,f,g,u.getLine(g).length)},this.getCommentRegionBlock=function(u,c,d){for(var h=c.search(/\s*$/),p=u.getLength(),f=d,g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++df)return new s(f,h,y,c.length)}}).call(a.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(n,r,o){var i=n("../lib/oop"),s=n("./text").Mode,l=n("./javascript_highlight_rules").JavaScriptHighlightRules,a=n("./matching_brace_outdent").MatchingBraceOutdent,u=n("../worker/worker_client").WorkerClient,c=n("./behaviour/cstyle").CstyleBehaviour,d=n("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=l,this.$outdent=new a,this.$behaviour=new c,this.foldingRules=new d};i.inherits(h,s),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(p,f,g){var m=this.$getIndent(f),v=this.getTokenizer().getLineTokens(f,p),y=v.tokens,b=v.state;if(y.length&&y[y.length-1].type=="comment")return m;if(p=="start"||p=="no_regex"){var x=f.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);x&&(m+=g)}else if(p=="doc-start"){if(b=="start"||b=="no_regex")return"";var x=f.match(/^\s*(\/?)\*/);x&&(x[1]&&(m+=" "),m+="* ")}return m},this.checkOutdent=function(p,f,g){return this.$outdent.checkOutdent(f,g)},this.autoOutdent=function(p,f,g){this.$outdent.autoOutdent(f,g)},this.createWorker=function(p){var f=new u(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return f.attachToDocument(p.getDocument()),f.on("annotate",function(g){p.setAnnotations(g.data)}),f.on("terminate",function(){p.clearAnnotations()}),f},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(h.prototype),r.Mode=h}),function(){ace.require(["ace/mode/javascript"],function(n){t&&(t.exports=n)})}()})(fue);var gue={exports:{}};(function(t,e){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop");n("../lib/lang");var s=n("./text_highlight_rules").TextHighlightRules,l=r.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",a=r.supportFunction="rgb|rgba|url|attr|counter|counters",u=r.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",c=r.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|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|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",d=r.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",h=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",p=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",f=r.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",g=function(){var m=this.createKeywordMapper({"support.function":a,"support.constant":u,"support.type":l,"support.constant.color":c,"support.constant.fonts":d},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:h},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+h+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:h},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:p},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:f},{include:"url"},{token:m,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};i.inherits(g,s),r.CssHighlightRules=g}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("./text_highlight_rules").TextHighlightRules,l=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},l.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};i.inherits(l,s),l.getTagRule=function(a){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},l.getStartRule=function(a){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:a}},l.getEndRule=function(a){return{token:"comment.doc",regex:"\\*\\/",next:a}},r.JsDocCommentHighlightRules=l}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,l=n("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",u=function(h){var p=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),f="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",g="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[s.getStartRule("doc-start"),d("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+a+")(\\.)(prototype)(\\.)("+a+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function\\*?)(\\s+)("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+f+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:p,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),d("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[d("function_arguments"),{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!h||!h.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(m,v,y){if(this.next=m=="{"?this.nextState:"",m=="{"&&y.length)y.unshift("start",v);else if(m=="}"&&y.length&&(y.shift(),this.next=y.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return m=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:g},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+a+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=.+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!h||h.jsx!=!1)&&c.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()};i.inherits(u,l);function c(){var h=a.replace("\\d","\\d\\-"),p={onMatch:function(g,m,v){var y=g.charAt(1)=="/"?2:1;return y==1?(m!=this.nextState?v.unshift(this.next,this.nextState,0):v.unshift(this.next),v[2]++):y==2&&m==this.nextState&&(v[1]--,(!v[1]||v[1]<0)&&(v.shift(),v.shift())),[{type:"meta.tag.punctuation."+(y==1?"":"end-")+"tag-open.xml",value:g.slice(0,y)},{type:"meta.tag.tag-name.xml",value:g.substr(y)}]},regex:"",onMatch:function(g,m,v){return m==v[0]&&v.shift(),g.length==2&&(v[0]==this.nextState&&v[1]--,(!v[1]||v[1]<0)&&v.splice(0,2)),this.next=v[0]||"start",[{type:this.token,value:g}]},nextState:"jsx"},f,d("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:h},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},p],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function d(h){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:h||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:h||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.JavaScriptHighlightRules=u}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("./text_highlight_rules").TextHighlightRules,l=function(a){var u="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+u+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+u+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:u},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===l&&this.normalizeRules()};(function(){this.embedTagRules=function(a,u,c){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+c+".tag-name.xml"],regex:"(<)("+c+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:u+"start"}]}),this.$rules[c+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(d,h,p){return p.splice(0),this.token}}],this.embedRules(a,u,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+c+".tag-name.xml"],regex:"(|$))",next:c+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(s.prototype),i.inherits(l,s),r.XmlHighlightRules=l}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("../lib/lang"),l=n("./css_highlight_rules").CssHighlightRules,a=n("./javascript_highlight_rules").JavaScriptHighlightRules,u=n("./xml_highlight_rules").XmlHighlightRules,c=s.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),d=function(){u.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(h,p){var f=c[p];return["meta.tag.punctuation."+(h=="<"?"":"end-")+"tag-open.xml","meta.tag"+(f?"."+f:"")+".tag-name.xml"]},regex:"(",next:"start"}]}),this.embedTagRules(l,"css-","style"),this.embedTagRules(new a({jsx:!1}).getRules(),"js-","script"),this.constructor===d&&this.normalizeRules()};i.inherits(d,u),r.HtmlHighlightRules=d}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(n,r,o){var i=n("../config").$modes,s=n("../lib/oop"),l=n("../lib/lang"),a=n("./text_highlight_rules").TextHighlightRules,u=n("./html_highlight_rules").HtmlHighlightRules,c=function(h){return"(?:[^"+l.escapeRegExp(h)+"\\\\]|\\\\.)*"},d=function(){u.call(this);var h={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(f,g,m,v){var y=f.match(/^(\s*)([`~]+)(.*)/),b=/[\w-]+|$/.exec(y[3])[0];return i[b]||(b=""),m.unshift("githubblock",[],[y[1],y[2],b],g),this.token},next:"githubblock"},p=[{token:"support.function",regex:".*",onMatch:function(f,g,m,v){var y=m[1],b=m[2][0],x=m[2][1],k=m[2][2],w=/^(\s*)(`+|~+)\s*$/.exec(f);if(w&&w[1].length=x.length&&w[2][0]==x[0])return m.splice(0,3),this.next=m.shift(),this.token;if(this.next="",k&&i[k]){var S=i[k].getTokenizer().getLineTokens(f,y.slice(0));return m[1]=S.state,S.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(f){return"markup.heading."+f.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},h,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+c("]")+")(\\]\\s*\\[)("+c("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+c("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+c('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:`(<)((?:https?|ftp|dict):[^'">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)`}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},h,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:p}),this.normalizeRules()};s.inherits(d,a),r.MarkdownHighlightRules=d}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(n,r,o){var i=n("../../lib/oop"),s=n("./fold_mode").FoldMode,l=n("../../range").Range,a=r.FoldMode=function(){};i.inherits(a,s),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(u,c,d){var h=u.getLine(d);return this.foldingStartMarker.test(h)?h[0]=="`"&&u.bgTokenizer.getState(d)=="start"?"end":"start":""},this.getFoldWidgetRange=function(u,c,d){var h=u.getLine(d),p=h.length,f=u.getLength(),g=d,m=d;if(!h.match(this.foldingStartMarker))return;if(h[0]=="`")if(u.bgTokenizer.getState(d)!=="start"){for(;++d0&&(h=u.getLine(d),!(h[0]=="`"&h.substring(0,3)=="```")););return new l(d,h.length,g,0)}var v;function y(T){return v=u.getTokens(T)[0],v&&v.type.lastIndexOf(b,0)===0}var b="markup.heading";function x(){var T=v.value[0];return T=="="?6:T=="-"?5:7-v.value.search(/[^#]|$/)}if(y(d)){for(var k=x();++d=k)break}if(m=d-(!v||["=","-"].indexOf(v.value[0])==-1?1:2),m>g)for(;m>g&&/^\s*$/.test(u.getLine(m));)m--;if(m>g){var S=u.getLine(m).length;return new l(g,p,m,S)}}}}).call(a.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,r,o){var i=n("../range").Range,s=function(){};(function(){this.checkOutdent=function(l,a){return/^\s+$/.test(l)?/^\s*\}/.test(a):!1},this.autoOutdent=function(l,a){var u=l.getLine(a),c=u.match(/^(\s*\})/);if(!c)return 0;var d=c[1].length,h=l.findMatchingBracket({row:a,column:d});if(!h||h.row==a)return 0;var p=this.$getIndent(l.getLine(h.row));l.replace(new i(a,0,a,d-1),p)},this.$getIndent=function(l){return l.match(/^\s*/)[0]}}).call(s.prototype),r.MatchingBraceOutdent=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,o){var i=n("../../lib/oop"),s=n("../../range").Range,l=n("./fold_mode").FoldMode,a=r.FoldMode=function(u){u&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+u.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+u.end)))};i.inherits(a,l),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(u,c,d){var h=u.getLine(d);if(this.singleLineBlockCommentRe.test(h)&&!this.startRegionRe.test(h)&&!this.tripleStarBlockCommentRe.test(h))return"";var p=this._getFoldWidgetBase(u,c,d);return!p&&this.startRegionRe.test(h)?"start":p},this.getFoldWidgetRange=function(u,c,d,h){var p=u.getLine(d);if(this.startRegionRe.test(p))return this.getCommentRegionBlock(u,p,d);var m=p.match(this.foldingStartMarker);if(m){var f=m.index;if(m[1])return this.openingBracketBlock(u,m[1],d,f);var g=u.getCommentFoldRange(d,f+m[0].length,1);return g&&!g.isMultiLine()&&(h?g=this.getSectionRange(u,d):c!="all"&&(g=null)),g}if(c!=="markbegin"){var m=p.match(this.foldingStopMarker);if(m){var f=m.index+m[0].length;return m[1]?this.closingBracketBlock(u,m[1],d,f):u.getCommentFoldRange(d,f,-1)}}},this.getSectionRange=function(u,c){var d=u.getLine(c),h=d.search(/\S/),p=c,f=d.length;c=c+1;for(var g=c,m=u.getLength();++cv)break;var y=this.getFoldWidgetRange(u,"all",c);if(y){if(y.start.row<=p)break;if(y.isMultiLine())c=y.end.row;else if(h==v)break}g=c}}return new s(p,f,g,u.getLine(g).length)},this.getCommentRegionBlock=function(u,c,d){for(var h=c.search(/\s*$/),p=u.getLength(),f=d,g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++df)return new s(f,h,y,c.length)}}).call(a.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(n,r,o){var i=n("../lib/oop"),s=n("./text").Mode,l=n("./javascript_highlight_rules").JavaScriptHighlightRules,a=n("./matching_brace_outdent").MatchingBraceOutdent,u=n("../worker/worker_client").WorkerClient,c=n("./behaviour/cstyle").CstyleBehaviour,d=n("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=l,this.$outdent=new a,this.$behaviour=new c,this.foldingRules=new d};i.inherits(h,s),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(p,f,g){var m=this.$getIndent(f),v=this.getTokenizer().getLineTokens(f,p),y=v.tokens,b=v.state;if(y.length&&y[y.length-1].type=="comment")return m;if(p=="start"||p=="no_regex"){var x=f.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);x&&(m+=g)}else if(p=="doc-start"){if(b=="start"||b=="no_regex")return"";var x=f.match(/^\s*(\/?)\*/);x&&(x[1]&&(m+=" "),m+="* ")}return m},this.checkOutdent=function(p,f,g){return this.$outdent.checkOutdent(f,g)},this.autoOutdent=function(p,f,g){this.$outdent.autoOutdent(f,g)},this.createWorker=function(p){var f=new u(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return f.attachToDocument(p.getDocument()),f.on("annotate",function(g){p.setAnnotations(g.data)}),f.on("terminate",function(){p.clearAnnotations()}),f},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(h.prototype),r.Mode=h}),ace.define("ace/mode/css_completions",["require","exports","module"],function(n,r,o){var i={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},s=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var l=document.createElement("c").style;for(var a in l)if(typeof l[a]=="string"){var u=a.replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});i.hasOwnProperty(u)||(i[u]=1)}}this.completionsDefined=!0},this.getCompletions=function(l,a,u,c){if(this.completionsDefined||this.defineCompletions(),l==="ruleset"||a.$mode.$id=="ace/mode/scss"){var d=a.getLine(u.row).substr(0,u.column),h=/\([^)]*$/.test(d);return h&&(d=d.substr(d.lastIndexOf("(")+1)),/:[^;]+$/.test(d)?this.getPropertyValueCompletions(l,a,u,c):this.getPropertyCompletions(l,a,u,c,h)}return[]},this.getPropertyCompletions=function(l,a,u,c,d){d=d||!1;var h=Object.keys(i);return h.map(function(p){return{caption:p,snippet:p+": $0"+(d?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(l,a,u,c){var d=a.getLine(u.row).substr(0,u.column),h=(/([\w\-]+):[^:]*$/.exec(d)||{})[1];if(!h)return[];var p=[];return h in i&&typeof i[h]=="object"&&(p=Object.keys(i[h])),p.map(function(f){return{caption:f,snippet:f,meta:"property value",score:1e6}})}}).call(s.prototype),r.CssCompletions=s}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(n,r,o){var i=n("../../lib/oop");n("../behaviour").Behaviour;var s=n("./cstyle").CstyleBehaviour,l=n("../../token_iterator").TokenIterator,a=function(){this.inherit(s),this.add("colon","insertion",function(u,c,d,h,p){if(p===":"&&d.selection.isEmpty()){var f=d.getCursorPosition(),g=new l(h,f.row,f.column),m=g.getCurrentToken();if(m&&m.value.match(/\s+/)&&(m=g.stepBackward()),m&&m.type==="support.type"){var v=h.doc.getLine(f.row),y=v.substring(f.column,f.column+1);if(y===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(v.substring(f.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(u,c,d,h,p){var f=h.doc.getTextRange(p);if(!p.isMultiLine()&&f===":"){var g=d.getCursorPosition(),m=new l(h,g.row,g.column),v=m.getCurrentToken();if(v&&v.value.match(/\s+/)&&(v=m.stepBackward()),v&&v.type==="support.type"){var y=h.doc.getLine(p.start.row),b=y.substring(p.end.column,p.end.column+1);if(b===";")return p.end.column++,p}}}),this.add("semicolon","insertion",function(u,c,d,h,p){if(p===";"&&d.selection.isEmpty()){var f=d.getCursorPosition(),g=h.doc.getLine(f.row),m=g.substring(f.column,f.column+1);if(m===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(u,c,d,h,p){if(p==="!"&&d.selection.isEmpty()){var f=d.getCursorPosition(),g=h.doc.getLine(f.row);if(/^\s*(;|}|$)/.test(g.substring(f.column)))return{text:"!important",selection:[10,10]}}})};i.inherits(a,s),r.CssBehaviour=a}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(n,r,o){var i=n("../lib/oop"),s=n("./text").Mode,l=n("./css_highlight_rules").CssHighlightRules,a=n("./matching_brace_outdent").MatchingBraceOutdent,u=n("../worker/worker_client").WorkerClient,c=n("./css_completions").CssCompletions,d=n("./behaviour/css").CssBehaviour,h=n("./folding/cstyle").FoldMode,p=function(){this.HighlightRules=l,this.$outdent=new a,this.$behaviour=new d,this.$completer=new c,this.foldingRules=new h};i.inherits(p,s),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(f,g,m){var v=this.$getIndent(g),y=this.getTokenizer().getLineTokens(g,f).tokens;if(y.length&&y[y.length-1].type=="comment")return v;var b=g.match(/^.*\{\s*$/);return b&&(v+=m),v},this.checkOutdent=function(f,g,m){return this.$outdent.checkOutdent(g,m)},this.autoOutdent=function(f,g,m){this.$outdent.autoOutdent(g,m)},this.getCompletions=function(f,g,m,v){return this.$completer.getCompletions(f,g,m,v)},this.createWorker=function(f){var g=new u(["ace"],"ace/mode/css_worker","Worker");return g.attachToDocument(f.getDocument()),g.on("annotate",function(m){f.setAnnotations(m.data)}),g.on("terminate",function(){f.clearAnnotations()}),g},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(p.prototype),r.Mode=p}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,o){var i=n("../../lib/oop"),s=n("../behaviour").Behaviour,l=n("../../token_iterator").TokenIterator;n("../../lib/lang");function a(c,d){return c&&c.type.lastIndexOf(d+".xml")>-1}var u=function(){this.add("string_dquotes","insertion",function(c,d,h,p,f){if(f=='"'||f=="'"){var g=f,m=p.doc.getTextRange(h.getSelectionRange());if(m!==""&&m!=="'"&&m!='"'&&h.getWrapBehavioursEnabled())return{text:g+m+g,selection:!1};var v=h.getCursorPosition(),y=p.doc.getLine(v.row),b=y.substring(v.column,v.column+1),x=new l(p,v.row,v.column),k=x.getCurrentToken();if(b==g&&(a(k,"attribute-value")||a(k,"string")))return{text:"",selection:[1,1]};if(k||(k=x.stepBackward()),!k)return;for(;a(k,"tag-whitespace")||a(k,"whitespace");)k=x.stepBackward();var w=!b||b.match(/\s/);if(a(k,"attribute-equals")&&(w||b==">")||a(k,"decl-attribute-equals")&&(w||b=="?"))return{text:g+g,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(c,d,h,p,f){var g=p.doc.getTextRange(f);if(!f.isMultiLine()&&(g=='"'||g=="'")){var m=p.doc.getLine(f.start.row),v=m.substring(f.start.column+1,f.start.column+2);if(v==g)return f.end.column++,f}}),this.add("autoclosing","insertion",function(c,d,h,p,f){if(f==">"){var g=h.getSelectionRange().start,m=new l(p,g.row,g.column),v=m.getCurrentToken()||m.stepBackward();if(!v||!(a(v,"tag-name")||a(v,"tag-whitespace")||a(v,"attribute-name")||a(v,"attribute-equals")||a(v,"attribute-value"))||a(v,"reference.attribute-value"))return;if(a(v,"attribute-value")){var y=m.getCurrentTokenColumn()+v.value.length;if(g.column/.test(p.getLine(g.row).slice(g.column)))return;for(;!a(v,"tag-name");)if(v=m.stepBackward(),v.value=="<"){v=m.stepForward();break}var x=m.getCurrentTokenRow(),k=m.getCurrentTokenColumn();if(a(m.stepBackward(),"end-tag-open"))return;var w=v.value;return x==g.row&&(w=w.substring(0,g.column-k)),this.voidElements.hasOwnProperty(w.toLowerCase())?void 0:{text:">",selection:[1,1]}}}),this.add("autoindent","insertion",function(c,d,h,p,f){if(f==` `){var g=h.getCursorPosition(),m=p.getLine(g.row),v=new l(p,g.row,g.column),y=v.getCurrentToken();if(y&&y.type.indexOf("tag-close")!==-1){if(y.value=="/>")return;for(;y&&y.type.indexOf("tag-name")===-1;)y=v.stepBackward();if(!y)return;var b=y.value,x=v.getCurrentTokenRow();if(y=v.stepBackward(),!y||y.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[b]){var k=p.getTokenAt(g.row,g.column+1),m=p.getLine(x),w=this.$getIndent(m),S=w+p.getTabString();return k&&k.value==="-1}(function(){this.getFoldWidget=function(d,h,p){var f=this._getFirstTagInLine(d,p);return f?f.closing||!f.tagName&&f.selfClosing?h==="markbeginend"?"end":"":!f.tagName||f.selfClosing||this.voidElements.hasOwnProperty(f.tagName.toLowerCase())||this._findEndTagInLine(d,p,f.tagName,f.end.column)?"":"start":this.getCommentFoldWidget(d,p)},this.getCommentFoldWidget=function(d,h){return/comment/.test(d.getState(h))&&/";break}return f}else if(c(m,"tag-close"))return f.selfClosing=m.value=="/>",f;f.start.column+=m.value.length}return null},this._findEndTagInLine=function(d,h,p,f){for(var g=d.getTokens(h),m=0,v=0;v-1}function h(g,m){for(var v=new i(g,m.row,m.column),y=v.getCurrentToken();y&&!d(y,"tag-name");)y=v.stepBackward();if(y)return y.value}function p(g,m){for(var v=new i(g,m.row,m.column),y=v.getCurrentToken();y&&!d(y,"attribute-name");)y=v.stepBackward();if(y)return y.value}var f=function(){};(function(){this.getCompletions=function(g,m,v,y){var b=m.getTokenAt(v.row,v.column);if(!b)return[];if(d(b,"tag-name")||d(b,"tag-open")||d(b,"end-tag-open"))return this.getTagCompletions(g,m,v,y);if(d(b,"tag-whitespace")||d(b,"attribute-name"))return this.getAttributeCompletions(g,m,v,y);if(d(b,"attribute-value"))return this.getAttributeValueCompletions(g,m,v,y);var x=m.getLine(v.row).substr(0,v.column);return/&[a-z]*$/i.test(x)?this.getHTMLEntityCompletions(g,m,v,y):[]},this.getTagCompletions=function(g,m,v,y){return c.map(function(b){return{value:b,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(g,m,v,y){var b=h(m,v);if(!b)return[];var x=a;return b in u&&(x=x.concat(Object.keys(u[b]))),x.map(function(k){return{caption:k,snippet:k+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(g,m,v,y){var b=h(m,v),x=p(m,v);if(!b)return[];var k=[];return b in u&&x in u[b]&&typeof u[b][x]=="object"&&(k=Object.keys(u[b][x])),k.map(function(w){return{caption:w,snippet:w,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(g,m,v,y){var b=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return b.map(function(x){return{caption:x,snippet:x,meta:"html entity",score:1e6}})}}).call(f.prototype),r.HtmlCompletions=f}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(n,r,o){var i=n("../lib/oop"),s=n("../lib/lang"),l=n("./text").Mode,a=n("./javascript").Mode,u=n("./css").Mode,c=n("./html_highlight_rules").HtmlHighlightRules,d=n("./behaviour/xml").XmlBehaviour,h=n("./folding/html").FoldMode,p=n("./html_completions").HtmlCompletions,f=n("../worker/worker_client").WorkerClient,g=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],m=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],v=function(y){this.fragmentContext=y&&y.fragmentContext,this.HighlightRules=c,this.$behaviour=new d,this.$completer=new p,this.createModeDelegates({"js-":a,"css-":u}),this.foldingRules=new h(this.voidElements,s.arrayToMap(m))};i.inherits(v,l),(function(){this.blockComment={start:""},this.voidElements=s.arrayToMap(g),this.getNextLineIndent=function(y,b,x){return this.$getIndent(b)},this.checkOutdent=function(y,b,x){return!1},this.getCompletions=function(y,b,x,k){return this.$completer.getCompletions(y,b,x,k)},this.createWorker=function(y){if(this.constructor==v){var b=new f(["ace"],"ace/mode/html_worker","Worker");return b.attachToDocument(y.getDocument()),this.fragmentContext&&b.call("setOptions",[{context:this.fragmentContext}]),b.on("error",function(x){y.setAnnotations(x.data)}),b.on("terminate",function(){y.clearAnnotations()}),b}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(v.prototype),r.Mode=v}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("./text_highlight_rules").TextHighlightRules,l=r.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",a=r.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",u=function(){var c=this.createKeywordMapper({keyword:l,"support.function.builtin":a,"invalid.deprecated":"debugger"},"identifier"),d="(?:(?:[1-9]\\d*)|(?:0))",h="(?:\\.\\d+)",p="(?:\\d+)",f="(?:(?:"+p+"?"+h+")|(?:"+p+"\\.))",g="(?:(?:"+f+"|"+p+"))",m="(?:"+g+"|"+f+")",v="(?:&"+p+")",y="[a-zA-Z_][a-zA-Z0-9_]*",b="(?:"+y+"(?==))",x="(?:\\$(?:SHLVL|\\$|\\!|\\?))",k="(?:"+y+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(w,S,A){var C=w[2]=="-"?"indentedHeredoc":"heredoc",O=w.split(this.splitRegex);return A.push(C,O[4]),[{type:"constant",value:O[1]},{type:"text",value:O[2]},{type:"string",value:O[3]},{type:"support.class",value:O[4]},{type:"string",value:O[5]}]},rules:{heredoc:[{onMatch:function(w,S,A){return w===A[1]?(A.shift(),A.shift(),this.next=A[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(w,S,A){return w===A[1]?(A.shift(),A.shift(),this.next=A[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(w,S){return S[0]==="heredoc"||S[0]==="indentedHeredoc"?S[0]:w}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:x},{token:"variable",regex:b},{include:"variables"},{token:"support.function",regex:k},{token:"support.function",regex:v},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:m},{token:"constant.numeric",regex:d+"\\b"},{token:c,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};i.inherits(u,s),r.ShHighlightRules=u}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(n,r,o){var i=n("../lib/oop"),s=n("./text").Mode,l=n("./sh_highlight_rules").ShHighlightRules,a=n("../range").Range,u=n("./folding/cstyle").FoldMode,c=function(){this.HighlightRules=l,this.foldingRules=new u,this.$behaviour=this.$defaultBehaviour};i.inherits(c,s),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(h,p,f){var g=this.$getIndent(p),m=this.getTokenizer().getLineTokens(p,h),v=m.tokens;if(v.length&&v[v.length-1].type=="comment")return g;if(h=="start"){var y=p.match(/^.*[\{\(\[:]\s*$/);y&&(g+=f)}return g};var d={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(h,p,f){if(f!==`\r +`+S}}}}})};i.inherits(u,s),r.XmlBehaviour=u}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(n,r,o){var i=n("../../lib/oop"),s=n("./fold_mode").FoldMode,l=r.FoldMode=function(a,u){this.defaultMode=a,this.subModes=u};i.inherits(l,s),(function(){this.$getMode=function(a){typeof a!="string"&&(a=a[0]);for(var u in this.subModes)if(a.indexOf(u)===0)return this.subModes[u];return null},this.$tryMode=function(a,u,c,d){var h=this.$getMode(a);return h?h.getFoldWidget(u,c,d):""},this.getFoldWidget=function(a,u,c){return this.$tryMode(a.getState(c-1),a,u,c)||this.$tryMode(a.getState(c),a,u,c)||this.defaultMode.getFoldWidget(a,u,c)},this.getFoldWidgetRange=function(a,u,c){var d=this.$getMode(a.getState(c-1));return(!d||!d.getFoldWidget(a,u,c))&&(d=this.$getMode(a.getState(c))),(!d||!d.getFoldWidget(a,u,c))&&(d=this.defaultMode),d.getFoldWidgetRange(a,u,c)}}).call(l.prototype)}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,o){var i=n("../../lib/oop"),s=n("../../range").Range,l=n("./fold_mode").FoldMode,a=r.FoldMode=function(d,h){l.call(this),this.voidElements=d||{},this.optionalEndTags=i.mixin({},this.voidElements),h&&i.mixin(this.optionalEndTags,h)};i.inherits(a,l);var u=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function c(d,h){return d.type.lastIndexOf(h+".xml")>-1}(function(){this.getFoldWidget=function(d,h,p){var f=this._getFirstTagInLine(d,p);return f?f.closing||!f.tagName&&f.selfClosing?h==="markbeginend"?"end":"":!f.tagName||f.selfClosing||this.voidElements.hasOwnProperty(f.tagName.toLowerCase())||this._findEndTagInLine(d,p,f.tagName,f.end.column)?"":"start":this.getCommentFoldWidget(d,p)},this.getCommentFoldWidget=function(d,h){return/comment/.test(d.getState(h))&&/";break}return f}else if(c(m,"tag-close"))return f.selfClosing=m.value=="/>",f;f.start.column+=m.value.length}return null},this._findEndTagInLine=function(d,h,p,f){for(var g=d.getTokens(h),m=0,v=0;v-1}function h(g,m){for(var v=new i(g,m.row,m.column),y=v.getCurrentToken();y&&!d(y,"tag-name");)y=v.stepBackward();if(y)return y.value}function p(g,m){for(var v=new i(g,m.row,m.column),y=v.getCurrentToken();y&&!d(y,"attribute-name");)y=v.stepBackward();if(y)return y.value}var f=function(){};(function(){this.getCompletions=function(g,m,v,y){var b=m.getTokenAt(v.row,v.column);if(!b)return[];if(d(b,"tag-name")||d(b,"tag-open")||d(b,"end-tag-open"))return this.getTagCompletions(g,m,v,y);if(d(b,"tag-whitespace")||d(b,"attribute-name"))return this.getAttributeCompletions(g,m,v,y);if(d(b,"attribute-value"))return this.getAttributeValueCompletions(g,m,v,y);var x=m.getLine(v.row).substr(0,v.column);return/&[a-z]*$/i.test(x)?this.getHTMLEntityCompletions(g,m,v,y):[]},this.getTagCompletions=function(g,m,v,y){return c.map(function(b){return{value:b,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(g,m,v,y){var b=h(m,v);if(!b)return[];var x=a;return b in u&&(x=x.concat(Object.keys(u[b]))),x.map(function(k){return{caption:k,snippet:k+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(g,m,v,y){var b=h(m,v),x=p(m,v);if(!b)return[];var k=[];return b in u&&x in u[b]&&typeof u[b][x]=="object"&&(k=Object.keys(u[b][x])),k.map(function(w){return{caption:w,snippet:w,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(g,m,v,y){var b=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return b.map(function(x){return{caption:x,snippet:x,meta:"html entity",score:1e6}})}}).call(f.prototype),r.HtmlCompletions=f}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(n,r,o){var i=n("../lib/oop"),s=n("../lib/lang"),l=n("./text").Mode,a=n("./javascript").Mode,u=n("./css").Mode,c=n("./html_highlight_rules").HtmlHighlightRules,d=n("./behaviour/xml").XmlBehaviour,h=n("./folding/html").FoldMode,p=n("./html_completions").HtmlCompletions,f=n("../worker/worker_client").WorkerClient,g=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],m=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],v=function(y){this.fragmentContext=y&&y.fragmentContext,this.HighlightRules=c,this.$behaviour=new d,this.$completer=new p,this.createModeDelegates({"js-":a,"css-":u}),this.foldingRules=new h(this.voidElements,s.arrayToMap(m))};i.inherits(v,l),(function(){this.blockComment={start:""},this.voidElements=s.arrayToMap(g),this.getNextLineIndent=function(y,b,x){return this.$getIndent(b)},this.checkOutdent=function(y,b,x){return!1},this.getCompletions=function(y,b,x,k){return this.$completer.getCompletions(y,b,x,k)},this.createWorker=function(y){if(this.constructor==v){var b=new f(["ace"],"ace/mode/html_worker","Worker");return b.attachToDocument(y.getDocument()),this.fragmentContext&&b.call("setOptions",[{context:this.fragmentContext}]),b.on("error",function(x){y.setAnnotations(x.data)}),b.on("terminate",function(){y.clearAnnotations()}),b}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(v.prototype),r.Mode=v}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("./text_highlight_rules").TextHighlightRules,l=r.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",a=r.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",u=function(){var c=this.createKeywordMapper({keyword:l,"support.function.builtin":a,"invalid.deprecated":"debugger"},"identifier"),d="(?:(?:[1-9]\\d*)|(?:0))",h="(?:\\.\\d+)",p="(?:\\d+)",f="(?:(?:"+p+"?"+h+")|(?:"+p+"\\.))",g="(?:(?:"+f+"|"+p+"))",m="(?:"+g+"|"+f+")",v="(?:&"+p+")",y="[a-zA-Z_][a-zA-Z0-9_]*",b="(?:"+y+"(?==))",x="(?:\\$(?:SHLVL|\\$|\\!|\\?))",k="(?:"+y+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(w,S,T){var C=w[2]=="-"?"indentedHeredoc":"heredoc",O=w.split(this.splitRegex);return T.push(C,O[4]),[{type:"constant",value:O[1]},{type:"text",value:O[2]},{type:"string",value:O[3]},{type:"support.class",value:O[4]},{type:"string",value:O[5]}]},rules:{heredoc:[{onMatch:function(w,S,T){return w===T[1]?(T.shift(),T.shift(),this.next=T[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(w,S,T){return w===T[1]?(T.shift(),T.shift(),this.next=T[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(w,S){return S[0]==="heredoc"||S[0]==="indentedHeredoc"?S[0]:w}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:x},{token:"variable",regex:b},{include:"variables"},{token:"support.function",regex:k},{token:"support.function",regex:v},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:m},{token:"constant.numeric",regex:d+"\\b"},{token:c,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};i.inherits(u,s),r.ShHighlightRules=u}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(n,r,o){var i=n("../lib/oop"),s=n("./text").Mode,l=n("./sh_highlight_rules").ShHighlightRules,a=n("../range").Range,u=n("./folding/cstyle").FoldMode,c=function(){this.HighlightRules=l,this.foldingRules=new u,this.$behaviour=this.$defaultBehaviour};i.inherits(c,s),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(h,p,f){var g=this.$getIndent(p),m=this.getTokenizer().getLineTokens(p,h),v=m.tokens;if(v.length&&v[v.length-1].type=="comment")return g;if(h=="start"){var y=p.match(/^.*[\{\(\[:]\s*$/);y&&(g+=f)}return g};var d={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(h,p,f){if(f!==`\r `&&f!=="\r"&&f!==` -`)return!1;var g=this.getTokenizer().getLineTokens(p.trim(),h).tokens;if(!g)return!1;do var m=g.pop();while(m&&(m.type=="comment"||m.type=="text"&&m.value.match(/^\s+$/)));return m?m.type=="keyword"&&d[m.value]:!1},this.autoOutdent=function(h,p,f){f+=1;var g=this.$getIndent(p.getLine(f)),m=p.getTabString();g.slice(-m.length)==m&&p.remove(new a(f,g.length-m.length,f,g.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(c.prototype),r.Mode=c}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(n,r,o){var i=n("../lib/oop"),s=n("../lib/lang"),l=n("./text").Mode,a=n("./xml_highlight_rules").XmlHighlightRules,u=n("./behaviour/xml").XmlBehaviour,c=n("./folding/xml").FoldMode,d=n("../worker/worker_client").WorkerClient,h=function(){this.HighlightRules=a,this.$behaviour=new u,this.foldingRules=new c};i.inherits(h,l),(function(){this.voidElements=s.arrayToMap([]),this.blockComment={start:""},this.createWorker=function(p){var f=new d(["ace"],"ace/mode/xml_worker","Worker");return f.attachToDocument(p.getDocument()),f.on("error",function(g){p.setAnnotations(g.data)}),f.on("terminate",function(){p.clearAnnotations()}),f},this.$id="ace/mode/xml"}).call(h.prototype),r.Mode=h}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(n,r,o){var i=n("../lib/oop"),s=n("./behaviour/cstyle").CstyleBehaviour,l=n("./text").Mode,a=n("./markdown_highlight_rules").MarkdownHighlightRules,u=n("./folding/markdown").FoldMode,c=function(){this.HighlightRules=a,this.createModeDelegates({javascript:n("./javascript").Mode,html:n("./html").Mode,bash:n("./sh").Mode,sh:n("./sh").Mode,xml:n("./xml").Mode,css:n("./css").Mode}),this.foldingRules=new u,this.$behaviour=new s({braces:!0})};i.inherits(c,l),(function(){this.type="text",this.blockComment={start:""},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(d,h,p){if(d=="listblock"){var f=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(h);if(!f)return"";var g=f[2];return g||(g=parseInt(f[3],10)+1+"."),f[1]+g+f[4]}else return this.$getIndent(h)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(c.prototype),r.Mode=c}),function(){ace.require(["ace/mode/markdown"],function(n){t&&(t.exports=n)})}()})(Gce);var Kce={exports:{}};(function(t,e){ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("./text_highlight_rules").TextHighlightRules,l=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},l.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};i.inherits(l,s),l.getTagRule=function(a){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},l.getStartRule=function(a){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:a}},l.getEndRule=function(a){return{token:"comment.doc",regex:"\\*\\/",next:a}},r.JsDocCommentHighlightRules=l}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,l=n("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",u=function(h){var p=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),f="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",g="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[s.getStartRule("doc-start"),d("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+a+")(\\.)(prototype)(\\.)("+a+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function\\*?)(\\s+)("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+f+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:p,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),d("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[d("function_arguments"),{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!h||!h.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(m,v,y){if(this.next=m=="{"?this.nextState:"",m=="{"&&y.length)y.unshift("start",v);else if(m=="}"&&y.length&&(y.shift(),this.next=y.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return m=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:g},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+a+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=.+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!h||h.jsx!=!1)&&c.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()};i.inherits(u,l);function c(){var h=a.replace("\\d","\\d\\-"),p={onMatch:function(g,m,v){var y=g.charAt(1)=="/"?2:1;return y==1?(m!=this.nextState?v.unshift(this.next,this.nextState,0):v.unshift(this.next),v[2]++):y==2&&m==this.nextState&&(v[1]--,(!v[1]||v[1]<0)&&(v.shift(),v.shift())),[{type:"meta.tag.punctuation."+(y==1?"":"end-")+"tag-open.xml",value:g.slice(0,y)},{type:"meta.tag.tag-name.xml",value:g.substr(y)}]},regex:"",onMatch:function(g,m,v){return m==v[0]&&v.shift(),g.length==2&&(v[0]==this.nextState&&v[1]--,(!v[1]||v[1]<0)&&v.splice(0,2)),this.next=v[0]||"start",[{type:this.token,value:g}]},nextState:"jsx"},f,d("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:h},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},p],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function d(h){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:h||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:h||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.JavaScriptHighlightRules=u}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,r,o){var i=n("../range").Range,s=function(){};(function(){this.checkOutdent=function(l,a){return/^\s+$/.test(l)?/^\s*\}/.test(a):!1},this.autoOutdent=function(l,a){var u=l.getLine(a),c=u.match(/^(\s*\})/);if(!c)return 0;var d=c[1].length,h=l.findMatchingBracket({row:a,column:d});if(!h||h.row==a)return 0;var p=this.$getIndent(l.getLine(h.row));l.replace(new i(a,0,a,d-1),p)},this.$getIndent=function(l){return l.match(/^\s*/)[0]}}).call(s.prototype),r.MatchingBraceOutdent=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,o){var i=n("../../lib/oop"),s=n("../../range").Range,l=n("./fold_mode").FoldMode,a=r.FoldMode=function(u){u&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+u.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+u.end)))};i.inherits(a,l),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(u,c,d){var h=u.getLine(d);if(this.singleLineBlockCommentRe.test(h)&&!this.startRegionRe.test(h)&&!this.tripleStarBlockCommentRe.test(h))return"";var p=this._getFoldWidgetBase(u,c,d);return!p&&this.startRegionRe.test(h)?"start":p},this.getFoldWidgetRange=function(u,c,d,h){var p=u.getLine(d);if(this.startRegionRe.test(p))return this.getCommentRegionBlock(u,p,d);var m=p.match(this.foldingStartMarker);if(m){var f=m.index;if(m[1])return this.openingBracketBlock(u,m[1],d,f);var g=u.getCommentFoldRange(d,f+m[0].length,1);return g&&!g.isMultiLine()&&(h?g=this.getSectionRange(u,d):c!="all"&&(g=null)),g}if(c!=="markbegin"){var m=p.match(this.foldingStopMarker);if(m){var f=m.index+m[0].length;return m[1]?this.closingBracketBlock(u,m[1],d,f):u.getCommentFoldRange(d,f,-1)}}},this.getSectionRange=function(u,c){var d=u.getLine(c),h=d.search(/\S/),p=c,f=d.length;c=c+1;for(var g=c,m=u.getLength();++cv)break;var y=this.getFoldWidgetRange(u,"all",c);if(y){if(y.start.row<=p)break;if(y.isMultiLine())c=y.end.row;else if(h==v)break}g=c}}return new s(p,f,g,u.getLine(g).length)},this.getCommentRegionBlock=function(u,c,d){for(var h=c.search(/\s*$/),p=u.getLength(),f=d,g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++df)return new s(f,h,y,c.length)}}).call(a.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(n,r,o){var i=n("../lib/oop"),s=n("./text").Mode,l=n("./javascript_highlight_rules").JavaScriptHighlightRules,a=n("./matching_brace_outdent").MatchingBraceOutdent,u=n("../worker/worker_client").WorkerClient,c=n("./behaviour/cstyle").CstyleBehaviour,d=n("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=l,this.$outdent=new a,this.$behaviour=new c,this.foldingRules=new d};i.inherits(h,s),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(p,f,g){var m=this.$getIndent(f),v=this.getTokenizer().getLineTokens(f,p),y=v.tokens,b=v.state;if(y.length&&y[y.length-1].type=="comment")return m;if(p=="start"||p=="no_regex"){var x=f.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);x&&(m+=g)}else if(p=="doc-start"){if(b=="start"||b=="no_regex")return"";var x=f.match(/^\s*(\/?)\*/);x&&(x[1]&&(m+=" "),m+="* ")}return m},this.checkOutdent=function(p,f,g){return this.$outdent.checkOutdent(f,g)},this.autoOutdent=function(p,f,g){this.$outdent.autoOutdent(f,g)},this.createWorker=function(p){var f=new u(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return f.attachToDocument(p.getDocument()),f.on("annotate",function(g){p.setAnnotations(g.data)}),f.on("terminate",function(){p.clearAnnotations()}),f},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(h.prototype),r.Mode=h}),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop");n("../lib/lang");var s=n("./text_highlight_rules").TextHighlightRules,l=r.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",a=r.supportFunction="rgb|rgba|url|attr|counter|counters",u=r.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",c=r.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|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|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",d=r.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",h=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",p=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",f=r.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",g=function(){var m=this.createKeywordMapper({"support.function":a,"support.constant":u,"support.type":l,"support.constant.color":c,"support.constant.fonts":d},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:h},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+h+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:h},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:p},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:f},{include:"url"},{token:m,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};i.inherits(g,s),r.CssHighlightRules=g}),ace.define("ace/mode/css_completions",["require","exports","module"],function(n,r,o){var i={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},s=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var l=document.createElement("c").style;for(var a in l)if(typeof l[a]=="string"){var u=a.replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});i.hasOwnProperty(u)||(i[u]=1)}}this.completionsDefined=!0},this.getCompletions=function(l,a,u,c){if(this.completionsDefined||this.defineCompletions(),l==="ruleset"||a.$mode.$id=="ace/mode/scss"){var d=a.getLine(u.row).substr(0,u.column),h=/\([^)]*$/.test(d);return h&&(d=d.substr(d.lastIndexOf("(")+1)),/:[^;]+$/.test(d)?this.getPropertyValueCompletions(l,a,u,c):this.getPropertyCompletions(l,a,u,c,h)}return[]},this.getPropertyCompletions=function(l,a,u,c,d){d=d||!1;var h=Object.keys(i);return h.map(function(p){return{caption:p,snippet:p+": $0"+(d?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(l,a,u,c){var d=a.getLine(u.row).substr(0,u.column),h=(/([\w\-]+):[^:]*$/.exec(d)||{})[1];if(!h)return[];var p=[];return h in i&&typeof i[h]=="object"&&(p=Object.keys(i[h])),p.map(function(f){return{caption:f,snippet:f,meta:"property value",score:1e6}})}}).call(s.prototype),r.CssCompletions=s}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(n,r,o){var i=n("../../lib/oop");n("../behaviour").Behaviour;var s=n("./cstyle").CstyleBehaviour,l=n("../../token_iterator").TokenIterator,a=function(){this.inherit(s),this.add("colon","insertion",function(u,c,d,h,p){if(p===":"&&d.selection.isEmpty()){var f=d.getCursorPosition(),g=new l(h,f.row,f.column),m=g.getCurrentToken();if(m&&m.value.match(/\s+/)&&(m=g.stepBackward()),m&&m.type==="support.type"){var v=h.doc.getLine(f.row),y=v.substring(f.column,f.column+1);if(y===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(v.substring(f.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(u,c,d,h,p){var f=h.doc.getTextRange(p);if(!p.isMultiLine()&&f===":"){var g=d.getCursorPosition(),m=new l(h,g.row,g.column),v=m.getCurrentToken();if(v&&v.value.match(/\s+/)&&(v=m.stepBackward()),v&&v.type==="support.type"){var y=h.doc.getLine(p.start.row),b=y.substring(p.end.column,p.end.column+1);if(b===";")return p.end.column++,p}}}),this.add("semicolon","insertion",function(u,c,d,h,p){if(p===";"&&d.selection.isEmpty()){var f=d.getCursorPosition(),g=h.doc.getLine(f.row),m=g.substring(f.column,f.column+1);if(m===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(u,c,d,h,p){if(p==="!"&&d.selection.isEmpty()){var f=d.getCursorPosition(),g=h.doc.getLine(f.row);if(/^\s*(;|}|$)/.test(g.substring(f.column)))return{text:"!important",selection:[10,10]}}})};i.inherits(a,s),r.CssBehaviour=a}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(n,r,o){var i=n("../lib/oop"),s=n("./text").Mode,l=n("./css_highlight_rules").CssHighlightRules,a=n("./matching_brace_outdent").MatchingBraceOutdent,u=n("../worker/worker_client").WorkerClient,c=n("./css_completions").CssCompletions,d=n("./behaviour/css").CssBehaviour,h=n("./folding/cstyle").FoldMode,p=function(){this.HighlightRules=l,this.$outdent=new a,this.$behaviour=new d,this.$completer=new c,this.foldingRules=new h};i.inherits(p,s),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(f,g,m){var v=this.$getIndent(g),y=this.getTokenizer().getLineTokens(g,f).tokens;if(y.length&&y[y.length-1].type=="comment")return v;var b=g.match(/^.*\{\s*$/);return b&&(v+=m),v},this.checkOutdent=function(f,g,m){return this.$outdent.checkOutdent(g,m)},this.autoOutdent=function(f,g,m){this.$outdent.autoOutdent(g,m)},this.getCompletions=function(f,g,m,v){return this.$completer.getCompletions(f,g,m,v)},this.createWorker=function(f){var g=new u(["ace"],"ace/mode/css_worker","Worker");return g.attachToDocument(f.getDocument()),g.on("annotate",function(m){f.setAnnotations(m.data)}),g.on("terminate",function(){f.clearAnnotations()}),g},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(p.prototype),r.Mode=p}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("./text_highlight_rules").TextHighlightRules,l=function(a){var u="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+u+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+u+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:u},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===l&&this.normalizeRules()};(function(){this.embedTagRules=function(a,u,c){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+c+".tag-name.xml"],regex:"(<)("+c+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:u+"start"}]}),this.$rules[c+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(d,h,p){return p.splice(0),this.token}}],this.embedRules(a,u,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+c+".tag-name.xml"],regex:"(|$))",next:c+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(s.prototype),i.inherits(l,s),r.XmlHighlightRules=l}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("../lib/lang"),l=n("./css_highlight_rules").CssHighlightRules,a=n("./javascript_highlight_rules").JavaScriptHighlightRules,u=n("./xml_highlight_rules").XmlHighlightRules,c=s.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),d=function(){u.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(h,p){var f=c[p];return["meta.tag.punctuation."+(h=="<"?"":"end-")+"tag-open.xml","meta.tag"+(f?"."+f:"")+".tag-name.xml"]},regex:"(",next:"start"}]}),this.embedTagRules(l,"css-","style"),this.embedTagRules(new a({jsx:!1}).getRules(),"js-","script"),this.constructor===d&&this.normalizeRules()};i.inherits(d,u),r.HtmlHighlightRules=d}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,o){var i=n("../../lib/oop"),s=n("../behaviour").Behaviour,l=n("../../token_iterator").TokenIterator;n("../../lib/lang");function a(c,d){return c&&c.type.lastIndexOf(d+".xml")>-1}var u=function(){this.add("string_dquotes","insertion",function(c,d,h,p,f){if(f=='"'||f=="'"){var g=f,m=p.doc.getTextRange(h.getSelectionRange());if(m!==""&&m!=="'"&&m!='"'&&h.getWrapBehavioursEnabled())return{text:g+m+g,selection:!1};var v=h.getCursorPosition(),y=p.doc.getLine(v.row),b=y.substring(v.column,v.column+1),x=new l(p,v.row,v.column),k=x.getCurrentToken();if(b==g&&(a(k,"attribute-value")||a(k,"string")))return{text:"",selection:[1,1]};if(k||(k=x.stepBackward()),!k)return;for(;a(k,"tag-whitespace")||a(k,"whitespace");)k=x.stepBackward();var w=!b||b.match(/\s/);if(a(k,"attribute-equals")&&(w||b==">")||a(k,"decl-attribute-equals")&&(w||b=="?"))return{text:g+g,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(c,d,h,p,f){var g=p.doc.getTextRange(f);if(!f.isMultiLine()&&(g=='"'||g=="'")){var m=p.doc.getLine(f.start.row),v=m.substring(f.start.column+1,f.start.column+2);if(v==g)return f.end.column++,f}}),this.add("autoclosing","insertion",function(c,d,h,p,f){if(f==">"){var g=h.getSelectionRange().start,m=new l(p,g.row,g.column),v=m.getCurrentToken()||m.stepBackward();if(!v||!(a(v,"tag-name")||a(v,"tag-whitespace")||a(v,"attribute-name")||a(v,"attribute-equals")||a(v,"attribute-value"))||a(v,"reference.attribute-value"))return;if(a(v,"attribute-value")){var y=m.getCurrentTokenColumn()+v.value.length;if(g.column/.test(p.getLine(g.row).slice(g.column)))return;for(;!a(v,"tag-name");)if(v=m.stepBackward(),v.value=="<"){v=m.stepForward();break}var x=m.getCurrentTokenRow(),k=m.getCurrentTokenColumn();if(a(m.stepBackward(),"end-tag-open"))return;var w=v.value;return x==g.row&&(w=w.substring(0,g.column-k)),this.voidElements.hasOwnProperty(w.toLowerCase())?void 0:{text:">",selection:[1,1]}}}),this.add("autoindent","insertion",function(c,d,h,p,f){if(f==` +`)return!1;var g=this.getTokenizer().getLineTokens(p.trim(),h).tokens;if(!g)return!1;do var m=g.pop();while(m&&(m.type=="comment"||m.type=="text"&&m.value.match(/^\s+$/)));return m?m.type=="keyword"&&d[m.value]:!1},this.autoOutdent=function(h,p,f){f+=1;var g=this.$getIndent(p.getLine(f)),m=p.getTabString();g.slice(-m.length)==m&&p.remove(new a(f,g.length-m.length,f,g.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(c.prototype),r.Mode=c}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(n,r,o){var i=n("../lib/oop"),s=n("../lib/lang"),l=n("./text").Mode,a=n("./xml_highlight_rules").XmlHighlightRules,u=n("./behaviour/xml").XmlBehaviour,c=n("./folding/xml").FoldMode,d=n("../worker/worker_client").WorkerClient,h=function(){this.HighlightRules=a,this.$behaviour=new u,this.foldingRules=new c};i.inherits(h,l),(function(){this.voidElements=s.arrayToMap([]),this.blockComment={start:""},this.createWorker=function(p){var f=new d(["ace"],"ace/mode/xml_worker","Worker");return f.attachToDocument(p.getDocument()),f.on("error",function(g){p.setAnnotations(g.data)}),f.on("terminate",function(){p.clearAnnotations()}),f},this.$id="ace/mode/xml"}).call(h.prototype),r.Mode=h}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(n,r,o){var i=n("../lib/oop"),s=n("./behaviour/cstyle").CstyleBehaviour,l=n("./text").Mode,a=n("./markdown_highlight_rules").MarkdownHighlightRules,u=n("./folding/markdown").FoldMode,c=function(){this.HighlightRules=a,this.createModeDelegates({javascript:n("./javascript").Mode,html:n("./html").Mode,bash:n("./sh").Mode,sh:n("./sh").Mode,xml:n("./xml").Mode,css:n("./css").Mode}),this.foldingRules=new u,this.$behaviour=new s({braces:!0})};i.inherits(c,l),(function(){this.type="text",this.blockComment={start:""},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(d,h,p){if(d=="listblock"){var f=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(h);if(!f)return"";var g=f[2];return g||(g=parseInt(f[3],10)+1+"."),f[1]+g+f[4]}else return this.$getIndent(h)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(c.prototype),r.Mode=c}),function(){ace.require(["ace/mode/markdown"],function(n){t&&(t.exports=n)})}()})(gue);var mue={exports:{}};(function(t,e){ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("./text_highlight_rules").TextHighlightRules,l=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},l.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};i.inherits(l,s),l.getTagRule=function(a){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},l.getStartRule=function(a){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:a}},l.getEndRule=function(a){return{token:"comment.doc",regex:"\\*\\/",next:a}},r.JsDocCommentHighlightRules=l}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,l=n("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",u=function(h){var p=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),f="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",g="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[s.getStartRule("doc-start"),d("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+a+")(\\.)(prototype)(\\.)("+a+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function\\*?)(\\s+)("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+f+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:p,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),d("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[d("function_arguments"),{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:g},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!h||!h.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(m,v,y){if(this.next=m=="{"?this.nextState:"",m=="{"&&y.length)y.unshift("start",v);else if(m=="}"&&y.length&&(y.shift(),this.next=y.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return m=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:g},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+a+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=.+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!h||h.jsx!=!1)&&c.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()};i.inherits(u,l);function c(){var h=a.replace("\\d","\\d\\-"),p={onMatch:function(g,m,v){var y=g.charAt(1)=="/"?2:1;return y==1?(m!=this.nextState?v.unshift(this.next,this.nextState,0):v.unshift(this.next),v[2]++):y==2&&m==this.nextState&&(v[1]--,(!v[1]||v[1]<0)&&(v.shift(),v.shift())),[{type:"meta.tag.punctuation."+(y==1?"":"end-")+"tag-open.xml",value:g.slice(0,y)},{type:"meta.tag.tag-name.xml",value:g.substr(y)}]},regex:"",onMatch:function(g,m,v){return m==v[0]&&v.shift(),g.length==2&&(v[0]==this.nextState&&v[1]--,(!v[1]||v[1]<0)&&v.splice(0,2)),this.next=v[0]||"start",[{type:this.token,value:g}]},nextState:"jsx"},f,d("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:h},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},p],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function d(h){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:h||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:h||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.JavaScriptHighlightRules=u}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,r,o){var i=n("../range").Range,s=function(){};(function(){this.checkOutdent=function(l,a){return/^\s+$/.test(l)?/^\s*\}/.test(a):!1},this.autoOutdent=function(l,a){var u=l.getLine(a),c=u.match(/^(\s*\})/);if(!c)return 0;var d=c[1].length,h=l.findMatchingBracket({row:a,column:d});if(!h||h.row==a)return 0;var p=this.$getIndent(l.getLine(h.row));l.replace(new i(a,0,a,d-1),p)},this.$getIndent=function(l){return l.match(/^\s*/)[0]}}).call(s.prototype),r.MatchingBraceOutdent=s}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,o){var i=n("../../lib/oop"),s=n("../../range").Range,l=n("./fold_mode").FoldMode,a=r.FoldMode=function(u){u&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+u.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+u.end)))};i.inherits(a,l),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(u,c,d){var h=u.getLine(d);if(this.singleLineBlockCommentRe.test(h)&&!this.startRegionRe.test(h)&&!this.tripleStarBlockCommentRe.test(h))return"";var p=this._getFoldWidgetBase(u,c,d);return!p&&this.startRegionRe.test(h)?"start":p},this.getFoldWidgetRange=function(u,c,d,h){var p=u.getLine(d);if(this.startRegionRe.test(p))return this.getCommentRegionBlock(u,p,d);var m=p.match(this.foldingStartMarker);if(m){var f=m.index;if(m[1])return this.openingBracketBlock(u,m[1],d,f);var g=u.getCommentFoldRange(d,f+m[0].length,1);return g&&!g.isMultiLine()&&(h?g=this.getSectionRange(u,d):c!="all"&&(g=null)),g}if(c!=="markbegin"){var m=p.match(this.foldingStopMarker);if(m){var f=m.index+m[0].length;return m[1]?this.closingBracketBlock(u,m[1],d,f):u.getCommentFoldRange(d,f,-1)}}},this.getSectionRange=function(u,c){var d=u.getLine(c),h=d.search(/\S/),p=c,f=d.length;c=c+1;for(var g=c,m=u.getLength();++cv)break;var y=this.getFoldWidgetRange(u,"all",c);if(y){if(y.start.row<=p)break;if(y.isMultiLine())c=y.end.row;else if(h==v)break}g=c}}return new s(p,f,g,u.getLine(g).length)},this.getCommentRegionBlock=function(u,c,d){for(var h=c.search(/\s*$/),p=u.getLength(),f=d,g=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++df)return new s(f,h,y,c.length)}}).call(a.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(n,r,o){var i=n("../lib/oop"),s=n("./text").Mode,l=n("./javascript_highlight_rules").JavaScriptHighlightRules,a=n("./matching_brace_outdent").MatchingBraceOutdent,u=n("../worker/worker_client").WorkerClient,c=n("./behaviour/cstyle").CstyleBehaviour,d=n("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=l,this.$outdent=new a,this.$behaviour=new c,this.foldingRules=new d};i.inherits(h,s),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(p,f,g){var m=this.$getIndent(f),v=this.getTokenizer().getLineTokens(f,p),y=v.tokens,b=v.state;if(y.length&&y[y.length-1].type=="comment")return m;if(p=="start"||p=="no_regex"){var x=f.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);x&&(m+=g)}else if(p=="doc-start"){if(b=="start"||b=="no_regex")return"";var x=f.match(/^\s*(\/?)\*/);x&&(x[1]&&(m+=" "),m+="* ")}return m},this.checkOutdent=function(p,f,g){return this.$outdent.checkOutdent(f,g)},this.autoOutdent=function(p,f,g){this.$outdent.autoOutdent(f,g)},this.createWorker=function(p){var f=new u(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return f.attachToDocument(p.getDocument()),f.on("annotate",function(g){p.setAnnotations(g.data)}),f.on("terminate",function(){p.clearAnnotations()}),f},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(h.prototype),r.Mode=h}),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop");n("../lib/lang");var s=n("./text_highlight_rules").TextHighlightRules,l=r.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",a=r.supportFunction="rgb|rgba|url|attr|counter|counters",u=r.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",c=r.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|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|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",d=r.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",h=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",p=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",f=r.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",g=function(){var m=this.createKeywordMapper({"support.function":a,"support.constant":u,"support.type":l,"support.constant.color":c,"support.constant.fonts":d},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:h},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+h+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:h},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:p},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:f},{include:"url"},{token:m,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};i.inherits(g,s),r.CssHighlightRules=g}),ace.define("ace/mode/css_completions",["require","exports","module"],function(n,r,o){var i={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},s=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var l=document.createElement("c").style;for(var a in l)if(typeof l[a]=="string"){var u=a.replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});i.hasOwnProperty(u)||(i[u]=1)}}this.completionsDefined=!0},this.getCompletions=function(l,a,u,c){if(this.completionsDefined||this.defineCompletions(),l==="ruleset"||a.$mode.$id=="ace/mode/scss"){var d=a.getLine(u.row).substr(0,u.column),h=/\([^)]*$/.test(d);return h&&(d=d.substr(d.lastIndexOf("(")+1)),/:[^;]+$/.test(d)?this.getPropertyValueCompletions(l,a,u,c):this.getPropertyCompletions(l,a,u,c,h)}return[]},this.getPropertyCompletions=function(l,a,u,c,d){d=d||!1;var h=Object.keys(i);return h.map(function(p){return{caption:p,snippet:p+": $0"+(d?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(l,a,u,c){var d=a.getLine(u.row).substr(0,u.column),h=(/([\w\-]+):[^:]*$/.exec(d)||{})[1];if(!h)return[];var p=[];return h in i&&typeof i[h]=="object"&&(p=Object.keys(i[h])),p.map(function(f){return{caption:f,snippet:f,meta:"property value",score:1e6}})}}).call(s.prototype),r.CssCompletions=s}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(n,r,o){var i=n("../../lib/oop");n("../behaviour").Behaviour;var s=n("./cstyle").CstyleBehaviour,l=n("../../token_iterator").TokenIterator,a=function(){this.inherit(s),this.add("colon","insertion",function(u,c,d,h,p){if(p===":"&&d.selection.isEmpty()){var f=d.getCursorPosition(),g=new l(h,f.row,f.column),m=g.getCurrentToken();if(m&&m.value.match(/\s+/)&&(m=g.stepBackward()),m&&m.type==="support.type"){var v=h.doc.getLine(f.row),y=v.substring(f.column,f.column+1);if(y===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(v.substring(f.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(u,c,d,h,p){var f=h.doc.getTextRange(p);if(!p.isMultiLine()&&f===":"){var g=d.getCursorPosition(),m=new l(h,g.row,g.column),v=m.getCurrentToken();if(v&&v.value.match(/\s+/)&&(v=m.stepBackward()),v&&v.type==="support.type"){var y=h.doc.getLine(p.start.row),b=y.substring(p.end.column,p.end.column+1);if(b===";")return p.end.column++,p}}}),this.add("semicolon","insertion",function(u,c,d,h,p){if(p===";"&&d.selection.isEmpty()){var f=d.getCursorPosition(),g=h.doc.getLine(f.row),m=g.substring(f.column,f.column+1);if(m===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(u,c,d,h,p){if(p==="!"&&d.selection.isEmpty()){var f=d.getCursorPosition(),g=h.doc.getLine(f.row);if(/^\s*(;|}|$)/.test(g.substring(f.column)))return{text:"!important",selection:[10,10]}}})};i.inherits(a,s),r.CssBehaviour=a}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(n,r,o){var i=n("../lib/oop"),s=n("./text").Mode,l=n("./css_highlight_rules").CssHighlightRules,a=n("./matching_brace_outdent").MatchingBraceOutdent,u=n("../worker/worker_client").WorkerClient,c=n("./css_completions").CssCompletions,d=n("./behaviour/css").CssBehaviour,h=n("./folding/cstyle").FoldMode,p=function(){this.HighlightRules=l,this.$outdent=new a,this.$behaviour=new d,this.$completer=new c,this.foldingRules=new h};i.inherits(p,s),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(f,g,m){var v=this.$getIndent(g),y=this.getTokenizer().getLineTokens(g,f).tokens;if(y.length&&y[y.length-1].type=="comment")return v;var b=g.match(/^.*\{\s*$/);return b&&(v+=m),v},this.checkOutdent=function(f,g,m){return this.$outdent.checkOutdent(g,m)},this.autoOutdent=function(f,g,m){this.$outdent.autoOutdent(g,m)},this.getCompletions=function(f,g,m,v){return this.$completer.getCompletions(f,g,m,v)},this.createWorker=function(f){var g=new u(["ace"],"ace/mode/css_worker","Worker");return g.attachToDocument(f.getDocument()),g.on("annotate",function(m){f.setAnnotations(m.data)}),g.on("terminate",function(){f.clearAnnotations()}),g},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(p.prototype),r.Mode=p}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("./text_highlight_rules").TextHighlightRules,l=function(a){var u="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+u+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+u+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:u},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===l&&this.normalizeRules()};(function(){this.embedTagRules=function(a,u,c){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+c+".tag-name.xml"],regex:"(<)("+c+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:u+"start"}]}),this.$rules[c+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(d,h,p){return p.splice(0),this.token}}],this.embedRules(a,u,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+c+".tag-name.xml"],regex:"(|$))",next:c+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(s.prototype),i.inherits(l,s),r.XmlHighlightRules=l}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(n,r,o){var i=n("../lib/oop"),s=n("../lib/lang"),l=n("./css_highlight_rules").CssHighlightRules,a=n("./javascript_highlight_rules").JavaScriptHighlightRules,u=n("./xml_highlight_rules").XmlHighlightRules,c=s.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),d=function(){u.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(h,p){var f=c[p];return["meta.tag.punctuation."+(h=="<"?"":"end-")+"tag-open.xml","meta.tag"+(f?"."+f:"")+".tag-name.xml"]},regex:"(",next:"start"}]}),this.embedTagRules(l,"css-","style"),this.embedTagRules(new a({jsx:!1}).getRules(),"js-","script"),this.constructor===d&&this.normalizeRules()};i.inherits(d,u),r.HtmlHighlightRules=d}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,o){var i=n("../../lib/oop"),s=n("../behaviour").Behaviour,l=n("../../token_iterator").TokenIterator;n("../../lib/lang");function a(c,d){return c&&c.type.lastIndexOf(d+".xml")>-1}var u=function(){this.add("string_dquotes","insertion",function(c,d,h,p,f){if(f=='"'||f=="'"){var g=f,m=p.doc.getTextRange(h.getSelectionRange());if(m!==""&&m!=="'"&&m!='"'&&h.getWrapBehavioursEnabled())return{text:g+m+g,selection:!1};var v=h.getCursorPosition(),y=p.doc.getLine(v.row),b=y.substring(v.column,v.column+1),x=new l(p,v.row,v.column),k=x.getCurrentToken();if(b==g&&(a(k,"attribute-value")||a(k,"string")))return{text:"",selection:[1,1]};if(k||(k=x.stepBackward()),!k)return;for(;a(k,"tag-whitespace")||a(k,"whitespace");)k=x.stepBackward();var w=!b||b.match(/\s/);if(a(k,"attribute-equals")&&(w||b==">")||a(k,"decl-attribute-equals")&&(w||b=="?"))return{text:g+g,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(c,d,h,p,f){var g=p.doc.getTextRange(f);if(!f.isMultiLine()&&(g=='"'||g=="'")){var m=p.doc.getLine(f.start.row),v=m.substring(f.start.column+1,f.start.column+2);if(v==g)return f.end.column++,f}}),this.add("autoclosing","insertion",function(c,d,h,p,f){if(f==">"){var g=h.getSelectionRange().start,m=new l(p,g.row,g.column),v=m.getCurrentToken()||m.stepBackward();if(!v||!(a(v,"tag-name")||a(v,"tag-whitespace")||a(v,"attribute-name")||a(v,"attribute-equals")||a(v,"attribute-value"))||a(v,"reference.attribute-value"))return;if(a(v,"attribute-value")){var y=m.getCurrentTokenColumn()+v.value.length;if(g.column/.test(p.getLine(g.row).slice(g.column)))return;for(;!a(v,"tag-name");)if(v=m.stepBackward(),v.value=="<"){v=m.stepForward();break}var x=m.getCurrentTokenRow(),k=m.getCurrentTokenColumn();if(a(m.stepBackward(),"end-tag-open"))return;var w=v.value;return x==g.row&&(w=w.substring(0,g.column-k)),this.voidElements.hasOwnProperty(w.toLowerCase())?void 0:{text:">",selection:[1,1]}}}),this.add("autoindent","insertion",function(c,d,h,p,f){if(f==` `){var g=h.getCursorPosition(),m=p.getLine(g.row),v=new l(p,g.row,g.column),y=v.getCurrentToken();if(y&&y.type.indexOf("tag-close")!==-1){if(y.value=="/>")return;for(;y&&y.type.indexOf("tag-name")===-1;)y=v.stepBackward();if(!y)return;var b=y.value,x=v.getCurrentTokenRow();if(y=v.stepBackward(),!y||y.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[b]){var k=p.getTokenAt(g.row,g.column+1),m=p.getLine(x),w=this.$getIndent(m),S=w+p.getTabString();return k&&k.value==="-1}(function(){this.getFoldWidget=function(d,h,p){var f=this._getFirstTagInLine(d,p);return f?f.closing||!f.tagName&&f.selfClosing?h==="markbeginend"?"end":"":!f.tagName||f.selfClosing||this.voidElements.hasOwnProperty(f.tagName.toLowerCase())||this._findEndTagInLine(d,p,f.tagName,f.end.column)?"":"start":this.getCommentFoldWidget(d,p)},this.getCommentFoldWidget=function(d,h){return/comment/.test(d.getState(h))&&/";break}return f}else if(c(m,"tag-close"))return f.selfClosing=m.value=="/>",f;f.start.column+=m.value.length}return null},this._findEndTagInLine=function(d,h,p,f){for(var g=d.getTokens(h),m=0,v=0;v-1}function h(g,m){for(var v=new i(g,m.row,m.column),y=v.getCurrentToken();y&&!d(y,"tag-name");)y=v.stepBackward();if(y)return y.value}function p(g,m){for(var v=new i(g,m.row,m.column),y=v.getCurrentToken();y&&!d(y,"attribute-name");)y=v.stepBackward();if(y)return y.value}var f=function(){};(function(){this.getCompletions=function(g,m,v,y){var b=m.getTokenAt(v.row,v.column);if(!b)return[];if(d(b,"tag-name")||d(b,"tag-open")||d(b,"end-tag-open"))return this.getTagCompletions(g,m,v,y);if(d(b,"tag-whitespace")||d(b,"attribute-name"))return this.getAttributeCompletions(g,m,v,y);if(d(b,"attribute-value"))return this.getAttributeValueCompletions(g,m,v,y);var x=m.getLine(v.row).substr(0,v.column);return/&[a-z]*$/i.test(x)?this.getHTMLEntityCompletions(g,m,v,y):[]},this.getTagCompletions=function(g,m,v,y){return c.map(function(b){return{value:b,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(g,m,v,y){var b=h(m,v);if(!b)return[];var x=a;return b in u&&(x=x.concat(Object.keys(u[b]))),x.map(function(k){return{caption:k,snippet:k+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(g,m,v,y){var b=h(m,v),x=p(m,v);if(!b)return[];var k=[];return b in u&&x in u[b]&&typeof u[b][x]=="object"&&(k=Object.keys(u[b][x])),k.map(function(w){return{caption:w,snippet:w,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(g,m,v,y){var b=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return b.map(function(x){return{caption:x,snippet:x,meta:"html entity",score:1e6}})}}).call(f.prototype),r.HtmlCompletions=f}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(n,r,o){var i=n("../lib/oop"),s=n("../lib/lang"),l=n("./text").Mode,a=n("./javascript").Mode,u=n("./css").Mode,c=n("./html_highlight_rules").HtmlHighlightRules,d=n("./behaviour/xml").XmlBehaviour,h=n("./folding/html").FoldMode,p=n("./html_completions").HtmlCompletions,f=n("../worker/worker_client").WorkerClient,g=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],m=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],v=function(y){this.fragmentContext=y&&y.fragmentContext,this.HighlightRules=c,this.$behaviour=new d,this.$completer=new p,this.createModeDelegates({"js-":a,"css-":u}),this.foldingRules=new h(this.voidElements,s.arrayToMap(m))};i.inherits(v,l),(function(){this.blockComment={start:""},this.voidElements=s.arrayToMap(g),this.getNextLineIndent=function(y,b,x){return this.$getIndent(b)},this.checkOutdent=function(y,b,x){return!1},this.getCompletions=function(y,b,x,k){return this.$completer.getCompletions(y,b,x,k)},this.createWorker=function(y){if(this.constructor==v){var b=new f(["ace"],"ace/mode/html_worker","Worker");return b.attachToDocument(y.getDocument()),this.fragmentContext&&b.call("setOptions",[{context:this.fragmentContext}]),b.on("error",function(x){y.setAnnotations(x.data)}),b.on("terminate",function(){y.clearAnnotations()}),b}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(v.prototype),r.Mode=v}),function(){ace.require(["ace/mode/html"],function(n){t&&(t.exports=n)})}()})(Kce);var Yce={exports:{}};(function(t,e){ace.define("ace/theme/github-css",["require","exports","module"],function(n,r,o){o.exports=`/* CSS style content from github's default pygments highlighter template. +`+S}}}}})};i.inherits(u,s),r.XmlBehaviour=u}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(n,r,o){var i=n("../../lib/oop"),s=n("./fold_mode").FoldMode,l=r.FoldMode=function(a,u){this.defaultMode=a,this.subModes=u};i.inherits(l,s),(function(){this.$getMode=function(a){typeof a!="string"&&(a=a[0]);for(var u in this.subModes)if(a.indexOf(u)===0)return this.subModes[u];return null},this.$tryMode=function(a,u,c,d){var h=this.$getMode(a);return h?h.getFoldWidget(u,c,d):""},this.getFoldWidget=function(a,u,c){return this.$tryMode(a.getState(c-1),a,u,c)||this.$tryMode(a.getState(c),a,u,c)||this.defaultMode.getFoldWidget(a,u,c)},this.getFoldWidgetRange=function(a,u,c){var d=this.$getMode(a.getState(c-1));return(!d||!d.getFoldWidget(a,u,c))&&(d=this.$getMode(a.getState(c))),(!d||!d.getFoldWidget(a,u,c))&&(d=this.defaultMode),d.getFoldWidgetRange(a,u,c)}}).call(l.prototype)}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,o){var i=n("../../lib/oop"),s=n("../../range").Range,l=n("./fold_mode").FoldMode,a=r.FoldMode=function(d,h){l.call(this),this.voidElements=d||{},this.optionalEndTags=i.mixin({},this.voidElements),h&&i.mixin(this.optionalEndTags,h)};i.inherits(a,l);var u=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function c(d,h){return d.type.lastIndexOf(h+".xml")>-1}(function(){this.getFoldWidget=function(d,h,p){var f=this._getFirstTagInLine(d,p);return f?f.closing||!f.tagName&&f.selfClosing?h==="markbeginend"?"end":"":!f.tagName||f.selfClosing||this.voidElements.hasOwnProperty(f.tagName.toLowerCase())||this._findEndTagInLine(d,p,f.tagName,f.end.column)?"":"start":this.getCommentFoldWidget(d,p)},this.getCommentFoldWidget=function(d,h){return/comment/.test(d.getState(h))&&/";break}return f}else if(c(m,"tag-close"))return f.selfClosing=m.value=="/>",f;f.start.column+=m.value.length}return null},this._findEndTagInLine=function(d,h,p,f){for(var g=d.getTokens(h),m=0,v=0;v-1}function h(g,m){for(var v=new i(g,m.row,m.column),y=v.getCurrentToken();y&&!d(y,"tag-name");)y=v.stepBackward();if(y)return y.value}function p(g,m){for(var v=new i(g,m.row,m.column),y=v.getCurrentToken();y&&!d(y,"attribute-name");)y=v.stepBackward();if(y)return y.value}var f=function(){};(function(){this.getCompletions=function(g,m,v,y){var b=m.getTokenAt(v.row,v.column);if(!b)return[];if(d(b,"tag-name")||d(b,"tag-open")||d(b,"end-tag-open"))return this.getTagCompletions(g,m,v,y);if(d(b,"tag-whitespace")||d(b,"attribute-name"))return this.getAttributeCompletions(g,m,v,y);if(d(b,"attribute-value"))return this.getAttributeValueCompletions(g,m,v,y);var x=m.getLine(v.row).substr(0,v.column);return/&[a-z]*$/i.test(x)?this.getHTMLEntityCompletions(g,m,v,y):[]},this.getTagCompletions=function(g,m,v,y){return c.map(function(b){return{value:b,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(g,m,v,y){var b=h(m,v);if(!b)return[];var x=a;return b in u&&(x=x.concat(Object.keys(u[b]))),x.map(function(k){return{caption:k,snippet:k+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(g,m,v,y){var b=h(m,v),x=p(m,v);if(!b)return[];var k=[];return b in u&&x in u[b]&&typeof u[b][x]=="object"&&(k=Object.keys(u[b][x])),k.map(function(w){return{caption:w,snippet:w,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(g,m,v,y){var b=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return b.map(function(x){return{caption:x,snippet:x,meta:"html entity",score:1e6}})}}).call(f.prototype),r.HtmlCompletions=f}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(n,r,o){var i=n("../lib/oop"),s=n("../lib/lang"),l=n("./text").Mode,a=n("./javascript").Mode,u=n("./css").Mode,c=n("./html_highlight_rules").HtmlHighlightRules,d=n("./behaviour/xml").XmlBehaviour,h=n("./folding/html").FoldMode,p=n("./html_completions").HtmlCompletions,f=n("../worker/worker_client").WorkerClient,g=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],m=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],v=function(y){this.fragmentContext=y&&y.fragmentContext,this.HighlightRules=c,this.$behaviour=new d,this.$completer=new p,this.createModeDelegates({"js-":a,"css-":u}),this.foldingRules=new h(this.voidElements,s.arrayToMap(m))};i.inherits(v,l),(function(){this.blockComment={start:""},this.voidElements=s.arrayToMap(g),this.getNextLineIndent=function(y,b,x){return this.$getIndent(b)},this.checkOutdent=function(y,b,x){return!1},this.getCompletions=function(y,b,x,k){return this.$completer.getCompletions(y,b,x,k)},this.createWorker=function(y){if(this.constructor==v){var b=new f(["ace"],"ace/mode/html_worker","Worker");return b.attachToDocument(y.getDocument()),this.fragmentContext&&b.call("setOptions",[{context:this.fragmentContext}]),b.on("error",function(x){y.setAnnotations(x.data)}),b.on("terminate",function(){y.clearAnnotations()}),b}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(v.prototype),r.Mode=v}),function(){ace.require(["ace/mode/html"],function(n){t&&(t.exports=n)})}()})(mue);var vue={exports:{}};(function(t,e){ace.define("ace/theme/github-css",["require","exports","module"],function(n,r,o){o.exports=`/* CSS style content from github's default pygments highlighter template. Cursor and selection styles from textmate.css. */ .ace-github .ace_gutter { background: #e8e8e8; @@ -6238,10 +6244,10 @@ ${u} .ace-github .ace_indent-guide-active { background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y; } -`}),ace.define("ace/theme/github",["require","exports","module","ace/theme/github-css","ace/lib/dom"],function(n,r,o){r.isDark=!1,r.cssClass="ace-github",r.cssText=n("./github-css");var i=n("../lib/dom");i.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/github"],function(n){t&&(t.exports=n)})}()})(Yce);const Xce=({editable:t,mode:e,onChange:n,value:r})=>{const[o,i]=D.useState("");D.useEffect(()=>{let a;r?IE(r)?a=r:a=JSON.stringify(r,void 0,2):a="",e==="Html"&&(a=qce(a)),i(a)},[]);const s=D.useMemo(()=>{switch(e){case"Markdown":return"markdown";case"Html":return"html";default:return"javascript"}},[e]),l=D.useCallback(a=>{i(a),t&&n(a)},[t,n]);return V.jsx(Vce,{mode:s,value:o,height:"100%",width:"100%",readOnly:!t,onChange:l,wrapEnabled:!0})},W$=" ";function qce(t){let e="",n="";return t.split(/>\s*{r.match(/^\/\w/)&&(n=n.substring(W$.length)),e+=n+"<"+r+`>\r -`,r.match(/^]*[^/]$/)&&!r.startsWith("input")&&(n+=W$)}),e.substring(1,e.length-3)}const Zce=t=>{const{onClose:e,node:n}=t,[r,o,i]=UN(""),s=un();D.useEffect(()=>{o(n.node.attrs.title||"")},[n,o]);const l=D.useCallback(c=>{o(c.target.value)},[o]),a=D.useCallback(()=>{s.updateNodeAttributes(n.getPos()||0,{...n.node.attrs||{},title:i.current}),e()},[s,n,e,i]),u=D.useCallback(c=>{const{code:d}=c;d==="Enter"&&a(),d==="Escape"&&e()},[e,a]);return V.jsxs(x$,{title:"Change Image Title",children:[V.jsx(b$,{value:r,onChange:l,onKeyDown:u,placeholder:"Enter Title..."}),V.jsxs(to,{children:[V.jsx(kt,{commandName:"submitLink",enabled:!0,onSelect:a,icon:V.jsx(Nr,{type:"Check"})}),V.jsx(kt,{commandName:"cancelLink",enabled:!0,onSelect:e,icon:V.jsx(Nr,{type:"Cancel"})})]})]})},Jce=t=>{const{annotations:e,appName:n,canAddAnnotation:r,canSelectAIText:o,canSelectAssets:i,canSelectContents:s,classNames:l,isDisabled:a,mode:u,onAnnotationCreate:c,onAnnotationsFocus:d,onAnnotationsUpdate:h,onChange:p,onEditAsset:f,onEditContent:g,onSelectAIText:m,onSelectAssets:v,onSelectContents:y,onUpload:b,value:x}=t,k=D.useMemo(()=>{let H=t.baseUrl;return H.endsWith("/")&&(H=H.substring(0,H.length-1)),H},[t.baseUrl]),[w,S]=D.useState(),[A,C]=D.useState(!1),[O,R]=D.useState(!1),[_,T]=dae("toolbar"),E=D.useCallback(()=>{C(!0)},[]),M=D.useCallback(()=>{C(!1)},[]),I=D.useCallback(()=>{S(null)},[]),N=D.useCallback(()=>{R(H=>!H)},[]),L=D.useCallback(()=>[new $n({}),new Jw,new dl({}),new qh({enableSpine:!0}),new hu({classNames:l||[]}),new ile({mode:u}),new ho({supportedLanguages:hae}),new Qh,new fp({appName:n,baseUrl:k,onEditContent:g}),new Ts({}),new ov,new iv({}),new sv({}),new ep({uploadHandler:b}),new tp,new ml({autoLink:!0,markOverride:{excludes:void 0}}),new ul({enableCollapsible:!0}),new du({copyAsMarkdown:u==="Markdown",htmlToMarkdown:d$,htmlSanitizer:void 0,markdownToHtml:h$}),new Zh,new Ev,new op,new pk({}),new ip],[n,k,l,u,g,b]),{manager:$,getContext:P}=PK({stringHandler:u==="Markdown"?"markdown":"html",content:x,nodeViewComponents:{image:H=>V.jsx(ole,{...H,appName:n,baseUrl:k,onEditNode:S,onEditAsset:f})},extensions:L}),F=D.useCallback(H=>{var W;(W=P())==null||W.setContent(H)},[P]);return V.jsx(Zoe,{children:V.jsx(joe,{theme:{color:{primary:"#3389ff",active:{primary:"#3389ff"}}},children:V.jsxs(BK,{classNames:a?["squidex-editor-disabled"]:[],manager:$,children:[V.jsx("div",{className:"squidex-editor-menu",children:V.jsxs(rN,{children:[V.jsxs("fieldset",{disabled:O||a,className:"MuiStack-root",children:[V.jsx(Uoe,{}),V.jsx(Hoe,{showAll:!0}),V.jsxs(to,{children:[V.jsx(Aw,{}),V.jsx(Mw,{}),V.jsx(Ow,{}),V.jsx(_w,{})]}),V.jsxs(to,{children:[V.jsx(_oe,{}),V.jsx(Moe,{}),V.jsx(Toe,{})]}),V.jsxs(to,{children:[V.jsx(Roe,{}),V.jsx(Ooe,{})]}),u!=="Markdown"&&l&&l.length>0&&V.jsx(to,{children:V.jsx(Ele,{})}),V.jsx(to,{children:V.jsx(k$,{onEdit:E})}),V.jsxs(to,{children:[i&&v&&V.jsx(mle,{onSelectAssets:v}),s&&y&&V.jsx(vle,{onSelectContents:y}),o&&m&&V.jsx(fle,{onSelectAIText:m})]}),r&&c&&V.jsx(to,{children:V.jsx(ble,{onAnnotationCreate:c})}),u!=="Markdown"&&V.jsx(to,{children:V.jsx(yle,{})})]}),u==="Markdown"?V.jsx(kt,{commandName:"toggleMarkup",enabled:!0,onSelect:N,label:"Edit Markup",icon:V.jsx(Nr,{type:"Edit"})}):V.jsx(kt,{commandName:"toggleMarkup",enabled:!0,onSelect:N,label:"Show Markup (readonly)",icon:V.jsx(Nr,{type:"Preview"})})]})}),V.jsxs("div",{className:"squidex-editor-main",children:[V.jsx(sle,{mode:u,onChange:p,value:x}),V.jsx(bx,{}),O?V.jsx(V.Fragment,{children:V.jsx(Xce,{value:x,mode:u,editable:u==="Markdown",onChange:F})}):V.jsxs(V.Fragment,{children:[A?V.jsx(Cle,{onClose:M}):w?V.jsx(Zce,{node:w,onClose:I}):_?V.jsx(Qce,{onLinkModal:E}):null,V.jsx(Yoe,{offset:{x:5,y:5},className:tc(H0.LANGUAGE_SELECT_POSITIONER,H0.LANGUAGE_SELECT_WIDTH)}),V.jsx(xle,{annotations:e,onAnnotationsFocus:d,onAnnotationsUpdate:h})]})]}),V.jsxs("div",{className:"squidex-editor-counter",children:[V.jsxs("label",{children:[V.jsx("input",{type:"checkbox",checked:_,onChange:H=>T(H.target.checked)}),"Floating Toolbar"]}),V.jsx(Sle,{})]})]})})})},Qce=({onLinkModal:t})=>{const e=dr(),n=Zg(),r=uae(400,[n.from,n.to]);return e.codeBlock()?null:V.jsxs(Koe,{className:Qoe("squidex-editor-floating",{hidden:!r}),children:[V.jsx(Aw,{}),V.jsx(Mw,{}),V.jsx(Ow,{}),V.jsx(_w,{}),V.jsx(k$,{onEdit:t})]})};var V$,j$=fh;V$=j$.createRoot,j$.hydrateRoot;class eue{constructor(e,n){dt(this,"root");this.element=e,this.props=n,this.root=V$(this.element),this.render()}update(e){this.props={...this.props,...e},this.render()}setValue(e){this.update({value:e})}setAnnotations(e){this.update({annotations:e})}setIsDisabled(e){this.update({isDisabled:e})}destroy(){this.root.unmount()}render(){this.root.render(V.jsx(Jce,{...this.props}))}}/* +`}),ace.define("ace/theme/github",["require","exports","module","ace/theme/github-css","ace/lib/dom"],function(n,r,o){r.isDark=!1,r.cssClass="ace-github",r.cssText=n("./github-css");var i=n("../lib/dom");i.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/github"],function(n){t&&(t.exports=n)})}()})(vue);const yue=({editable:t,mode:e,onChange:n,value:r})=>{const[o,i]=D.useState("");D.useEffect(()=>{let a;r?DE(r)?a=r:a=JSON.stringify(r,void 0,2):a="",e==="Html"&&(a=bue(a)),i(a)},[]);const s=D.useMemo(()=>{switch(e){case"Markdown":return"markdown";case"Html":return"html";default:return"javascript"}},[e]),l=D.useCallback(a=>{i(a),t&&n(a)},[t,n]);return V.jsx(pue,{mode:s,value:o,height:"100%",width:"100%",readOnly:!t,onChange:l,wrapEnabled:!0})},rD=" ";function bue(t){let e="",n="";return t.split(/>\s*{r.match(/^\/\w/)&&(n=n.substring(rD.length)),e+=n+"<"+r+`>\r +`,r.match(/^]*[^/]$/)&&!r.startsWith("input")&&(n+=rD)}),e.substring(1,e.length-3)}const xue=t=>{const{onClose:e,node:n}=t,[r,o,i]=n$(""),s=un();D.useEffect(()=>{o(n.node.attrs.title||"")},[n,o]);const l=D.useCallback(c=>{o(c.target.value)},[o]),a=D.useCallback(()=>{s.updateNodeAttributes(n.getPos()||0,{...n.node.attrs||{},title:i.current}),e()},[s,n,e,i]),u=D.useCallback(c=>{const{code:d}=c;d==="Enter"&&a(),d==="Escape"&&e()},[e,a]);return V.jsxs(N$,{title:"Change Image Title",children:[V.jsx(L$,{value:r,onChange:l,onKeyDown:u,placeholder:"Enter Title..."}),V.jsxs(hr,{children:[V.jsx(kt,{commandName:"submitLink",enabled:!0,onSelect:a,icon:V.jsx($r,{type:"Check"})}),V.jsx(kt,{commandName:"cancelLink",enabled:!0,onSelect:e,icon:V.jsx($r,{type:"Cancel"})})]})]})},wue=t=>{const{annotations:e,appName:n,canAddAnnotation:r,canSelectAIText:o,canSelectAssets:i,canSelectContents:s,classNames:l,isDisabled:a,mode:u,onAnnotationCreate:c,onAnnotationsFocus:d,onAnnotationsUpdate:h,onChange:p,onEditAsset:f,onEditContent:g,onSelectAIText:m,onSelectAssets:v,onSelectContents:y,onUpload:b,value:x}=t,k=D.useMemo(()=>{let H=t.baseUrl;return H.endsWith("/")&&(H=H.substring(0,H.length-1)),H},[t.baseUrl]),[w,S]=D.useState(),[T,C]=D.useState(!1),[O,R]=D.useState(!1),[_,A]=Nae("toolbar"),E=D.useCallback(()=>{C(!0)},[]),M=D.useCallback(()=>{C(!1)},[]),I=D.useCallback(()=>{S(null)},[]),N=D.useCallback(()=>{R(H=>!H)},[]),L=D.useCallback(()=>[new Dn({}),new Sae,new nk,new hl({}),new Jh({enableSpine:!0}),new du({classNames:l||[]}),new _le({mode:u}),new po({supportedLanguages:$ae,nodeOverride:{selectable:!1}}),new tp,new mp({appName:n,baseUrl:k,onEditContent:g}),new As({}),new sv,new av({}),new lv({}),new np({uploadHandler:b,nodeOverride:{selectable:!0}}),new rp,new vl({autoLink:!0,markOverride:{excludes:void 0}}),new dl({enableCollapsible:!0}),new uu({copyAsMarkdown:u==="Markdown",htmlToMarkdown:C$,htmlSanitizer:void 0,markdownToHtml:T$}),new Qh,new Cv,new sp,new vk({}),new ap],[n,k,l,u,g,b]),{manager:$,getContext:P}=oY({stringHandler:u==="Markdown"?"markdown":"html",content:x,nodeViewComponents:{image:H=>V.jsx(Ale,{...H,appName:n,baseUrl:k,onEditNode:S,onEditAsset:f})},extensions:L}),F=D.useCallback(H=>{var W;(W=P())==null||W.setContent(H)},[P]);return V.jsx(bie,{children:V.jsx(pie,{theme:{color:{primary:"#3389ff",active:{primary:"#3389ff"}}},children:V.jsxs(aY,{classNames:a?["squidex-editor-disabled"]:[],manager:$,children:[V.jsx("div",{className:"squidex-editor-menu",children:V.jsxs(vN,{children:[V.jsxs("fieldset",{className:"squidex-editor-menu-group",disabled:O||a,children:[V.jsx(uie,{}),V.jsx(cie,{showAll:!0}),V.jsxs(hr,{children:[V.jsx(Ow,{}),V.jsx(Nw,{}),V.jsx($w,{}),V.jsx(Iw,{})]}),V.jsxs(hr,{children:[V.jsx(qoe,{}),V.jsx(Joe,{}),V.jsx(Yoe,{})]}),V.jsxs(hr,{children:[V.jsx(Zoe,{}),V.jsx(Qoe,{})]}),u!=="Markdown"&&l&&l.length>0&&V.jsx(hr,{children:V.jsx(Gle,{})}),V.jsx(hr,{children:V.jsx(D$,{onEdit:E})}),V.jsxs(hr,{children:[i&&v&&V.jsx(Fle,{onSelectAssets:v}),s&&y&&V.jsx(Ble,{onSelectContents:y}),o&&m&&V.jsx(Ple,{onSelectAIText:m})]}),r&&c&&V.jsx(hr,{children:V.jsx(Ule,{onAnnotationCreate:c})}),u!=="Markdown"&&V.jsx(hr,{children:V.jsx(Hle,{})})]}),V.jsx("fieldset",{className:"squidex-editor-menu-group",children:V.jsx(hr,{children:u==="Markdown"?V.jsx(kt,{commandName:"toggleMarkup",enabled:!0,onSelect:N,label:"Edit Markup",icon:V.jsx($r,{type:"Edit"})}):V.jsx(kt,{commandName:"toggleMarkup",enabled:!0,onSelect:N,label:"Show Markup (readonly)",icon:V.jsx($r,{type:"Preview"})})})})]})}),V.jsx("div",{className:"squidex-editor-main",children:V.jsxs("div",{children:[V.jsx(Rle,{mode:u,onChange:p,value:x}),V.jsx(Ex,{}),O?V.jsx(V.Fragment,{children:V.jsx(yue,{value:x,mode:u,editable:u==="Markdown",onChange:F})}):V.jsxs(V.Fragment,{children:[T?V.jsx(Yle,{onClose:M}):w?V.jsx(xue,{node:w,onClose:I}):_?V.jsx(kue,{onLinkModal:E}):null,V.jsx(mie,{offset:{x:5,y:5},className:ec(j0.LANGUAGE_SELECT_POSITIONER,j0.LANGUAGE_SELECT_WIDTH)}),V.jsx(Wle,{annotations:e,onAnnotationsFocus:d,onAnnotationsUpdate:h})]})]})}),V.jsxs("div",{className:"squidex-editor-counter",children:[V.jsxs("label",{children:[V.jsx("input",{type:"checkbox",checked:_,onChange:H=>A(H.target.checked)}),"Floating Toolbar"]}),V.jsx(Kle,{})]})]})})})},kue=({onLinkModal:t})=>{const e=dr(),n=Qg(),r=Lae(400,[n.from,n.to]);return e.codeBlock()?null:V.jsx(gie,{className:wie("squidex-editor-floating",{hidden:!r}),children:V.jsx("fieldset",{className:"squidex-editor-menu-group",children:V.jsxs(hr,{children:[V.jsx(Ow,{}),V.jsx(Nw,{}),V.jsx($w,{}),V.jsx(Iw,{}),V.jsx(D$,{onEdit:t})]})})})};var oD,iD=mh;oD=iD.createRoot,iD.hydrateRoot;class Eue{constructor(e,n){ht(this,"root");this.element=e,this.props=n,this.root=oD(this.element),this.render()}update(e){this.props={...this.props,...e},this.render()}setValue(e){this.update({value:e})}setAnnotations(e){this.update({annotations:e})}setIsDisabled(e){this.update({isDisabled:e})}destroy(){this.root.unmount()}render(){this.root.render(V.jsx(wue,{...this.props}))}}/* * Squidex Headless CMS * * @license * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. - */window.SquidexEditorWrapper=eue})(); + */window.SquidexEditorWrapper=Eue})(); diff --git a/backend/tests/Squidex.Domain.Apps.Core.Tests/Model/Schemas/Schema.json b/backend/tests/Squidex.Domain.Apps.Core.Tests/Model/Schemas/Schema.json index bbd8dcb3b..31be0fee8 100644 --- a/backend/tests/Squidex.Domain.Apps.Core.Tests/Model/Schemas/Schema.json +++ b/backend/tests/Squidex.Domain.Apps.Core.Tests/Model/Schemas/Schema.json @@ -28,7 +28,8 @@ "editor": "Input", "isRequired": true, "isRequiredOnPublish": true, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -52,7 +53,8 @@ ], "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -72,7 +74,8 @@ "editor": "Checkbox", "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -90,7 +93,8 @@ ], "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -109,7 +113,8 @@ ], "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -126,7 +131,8 @@ "editor": "DateTime", "isRequired": true, "isRequiredOnPublish": true, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -141,7 +147,8 @@ "editor": "Map", "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": true + "isHalfWidth": true, + "isCreateOnly": false } }, { @@ -155,7 +162,8 @@ "$type": "JsonField", "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -173,6 +181,7 @@ "isRequired": false, "isRequiredOnPublish": false, "isHalfWidth": false, + "isCreateOnly": false, "tags": [ "1", "2", @@ -199,7 +208,8 @@ ], "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -228,7 +238,8 @@ "normalization": "None", "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -243,7 +254,8 @@ "calculatedDefaultValue": "EmptyArray", "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false }, "children": [ { @@ -262,7 +274,8 @@ "editor": "Input", "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } } ] @@ -279,7 +292,8 @@ "editor": "Separator", "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": true } } ], diff --git a/backend/tests/Squidex.Domain.Apps.Core.Tests/Model/Schemas/Schema_Old.json b/backend/tests/Squidex.Domain.Apps.Core.Tests/Model/Schemas/Schema_Old.json index b310ee1cc..c4039b496 100644 --- a/backend/tests/Squidex.Domain.Apps.Core.Tests/Model/Schemas/Schema_Old.json +++ b/backend/tests/Squidex.Domain.Apps.Core.Tests/Model/Schemas/Schema_Old.json @@ -63,7 +63,8 @@ "editor": "Input", "isRequired": true, "isRequiredOnPublish": true, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -87,7 +88,8 @@ ], "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -107,7 +109,8 @@ "editor": "Checkbox", "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -125,7 +128,8 @@ ], "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -144,7 +148,8 @@ ], "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -161,7 +166,8 @@ "editor": "DateTime", "isRequired": true, "isRequiredOnPublish": true, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -176,7 +182,8 @@ "editor": "Map", "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": true + "isHalfWidth": true, + "isCreateOnly": false } }, { @@ -190,7 +197,8 @@ "$type": "JsonField", "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -208,6 +216,7 @@ "isRequired": false, "isRequiredOnPublish": false, "isHalfWidth": false, + "isCreateOnly": false, "tags": [ "1", "2", @@ -234,7 +243,8 @@ ], "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -263,7 +273,8 @@ "normalization": "None", "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } }, { @@ -278,7 +289,8 @@ "calculatedDefaultValue": "EmptyArray", "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false }, "children": [ { @@ -297,7 +309,8 @@ "editor": "Input", "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": false } } ] @@ -314,7 +327,8 @@ "editor": "Separator", "isRequired": false, "isRequiredOnPublish": false, - "isHalfWidth": false + "isHalfWidth": false, + "isCreateOnly": true } } ], diff --git a/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/Scripting/ScriptingCompleterTests.cs b/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/Scripting/ScriptingCompleterTests.cs index 47c450301..1ab02f642 100644 --- a/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/Scripting/ScriptingCompleterTests.cs +++ b/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/Scripting/ScriptingCompleterTests.cs @@ -179,6 +179,8 @@ public class ScriptingCompleterTests AssertCompletion(actual, new[] { + "ctx", + "ctx.action", "data", "data['my-field']", "data['my-field'].iv", diff --git a/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/ArrayFieldTests.cs b/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/ArrayFieldTests.cs index 6933faf31..fde73627e 100644 --- a/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/ArrayFieldTests.cs +++ b/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/ArrayFieldTests.cs @@ -79,7 +79,6 @@ public class ArrayFieldTests : IClassFixture public async Task Should_add_error_if_items_are_required_and_empty() { var sut = Field(new ArrayFieldProperties { IsRequired = true }); - await sut.ValidateAsync(CreateValue(), errors); errors.Should().BeEquivalentTo( @@ -90,7 +89,6 @@ public class ArrayFieldTests : IClassFixture public async Task Should_add_error_if_value_is_not_valid() { var sut = Field(new ArrayFieldProperties()); - await sut.ValidateAsync(JsonValue.Create("invalid"), errors); errors.Should().BeEquivalentTo( diff --git a/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/ContentValidationTests.cs b/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/ContentValidationTests.cs index 7177f416e..91ec37063 100644 --- a/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/ContentValidationTests.cs +++ b/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/ContentValidationTests.cs @@ -521,4 +521,48 @@ public class ContentValidationTests : IClassFixture new ValidationError("Field is required.", "myField.iv"), ]); } + + [Fact] + public async Task Should_not_allow_changed_fields() + { + schema = schema.AddString(1, "myField1", Partitioning.Invariant, + new StringFieldProperties { IsCreateOnly = true }); + + schema = schema.AddString(2, "myField2", Partitioning.Invariant, + new StringFieldProperties { IsCreateOnly = true }); + + schema = schema.AddString(3, "myField3", Partitioning.Invariant, + new StringFieldProperties()); + + var data = + new ContentData() + .AddField("myField1", + new ContentFieldData() + .AddInvariant("Value1_0")) + .AddField("myField2", + new ContentFieldData() + .AddInvariant("Value2_0")) + .AddField("myField3", + new ContentFieldData() + .AddInvariant("Value3_0")); + + var previousData = + new ContentData() + .AddField("myField1", + new ContentFieldData() + .AddInvariant("Value1_1")) + .AddField("myField2", + new ContentFieldData() + .AddInvariant("Value2_0")) + .AddField("myField3", + new ContentFieldData() + .AddInvariant("Value3_0")); + + await data.ValidateAsync(languages.ToResolver(), errors, schema, previousData: previousData); + + errors.Should().BeEquivalentTo( + [ + new ValidationError("Field cannot be changed after creation.", "myField1.iv"), + ]); + } } diff --git a/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/ValidationTestExtensions.cs b/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/ValidationTestExtensions.cs index cbc15a062..a99ec9ab0 100644 --- a/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/ValidationTestExtensions.cs +++ b/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/ValidationTestExtensions.cs @@ -25,15 +25,18 @@ public static class ValidationTestExtensions private static readonly NamedId AppId = NamedId.Of(DomainId.NewGuid(), "my-app"); private static readonly NamedId SchemaId = NamedId.Of(DomainId.NewGuid(), "my-schema"); - public static async ValueTask ValidateAsync(this IValidator validator, object? value, IList errors, + public static async ValueTask ValidateAsync(this IValidator validator, + object? value, + IList errors, Schema? schema = null, ValidationMode mode = ValidationMode.Default, ValidationUpdater? updater = null, ValidationAction action = ValidationAction.Upsert, ResolvedComponents? components = null, - DomainId? contentId = null) + DomainId? contentId = null, + ContentData? previousData = null) { - var context = CreateContext(schema, mode, updater, action, components, contentId); + var context = CreateContext(schema, mode, updater, action, components, contentId, previousData); validator.Validate(value, context); @@ -42,16 +45,19 @@ public static class ValidationTestExtensions AddErrors(context.Root, errors); } - public static async ValueTask ValidateAsync(this IField field, object? value, IList errors, + public static async ValueTask ValidateAsync(this IField field, + object? value, + IList errors, Schema? schema = null, ValidationMode mode = ValidationMode.Default, ValidationUpdater? updater = null, IValidatorsFactory? factory = null, ValidationAction action = ValidationAction.Upsert, ResolvedComponents? components = null, - DomainId? contentId = null) + DomainId? contentId = null, + ContentData? previousData = null) { - var context = CreateContext(schema, mode, updater, action, components, contentId); + var context = CreateContext(schema, mode, updater, action, components, contentId, previousData); new ValidatorBuilder(factory, context).ValueValidator(field) .Validate(value, context); @@ -61,16 +67,19 @@ public static class ValidationTestExtensions AddErrors(context.Root, errors); } - public static async Task ValidatePartialAsync(this ContentData data, PartitionResolver partitionResolver, IList errors, + public static async Task ValidatePartialAsync(this ContentData data, + PartitionResolver partitionResolver, + IList errors, Schema? schema = null, ValidationMode mode = ValidationMode.Default, ValidationUpdater? updater = null, IValidatorsFactory? factory = null, ValidationAction action = ValidationAction.Upsert, ResolvedComponents? components = null, - DomainId? contentId = null) + DomainId? contentId = null, + ContentData? previousData = null) { - var context = CreateContext(schema, mode, updater, action, components, contentId); + var context = CreateContext(schema, mode, updater, action, components, contentId, previousData); await new ValidatorBuilder(factory, context).ContentValidator(partitionResolver) .ValidateInputPartialAsync(data); @@ -78,16 +87,19 @@ public static class ValidationTestExtensions errors.AddRange(context.Root.Errors); } - public static async Task ValidateAsync(this ContentData data, PartitionResolver partitionResolver, IList errors, + public static async Task ValidateAsync(this ContentData data, + PartitionResolver partitionResolver, + IList errors, Schema? schema = null, ValidationMode mode = ValidationMode.Default, ValidationUpdater? updater = null, IValidatorsFactory? factory = null, ValidationAction action = ValidationAction.Upsert, ResolvedComponents? components = null, - DomainId? contentId = null) + DomainId? contentId = null, + ContentData? previousData = null) { - var context = CreateContext(schema, mode, updater, action, components, contentId); + var context = CreateContext(schema, mode, updater, action, components, contentId, previousData); await new ValidatorBuilder(factory, context).ContentValidator(partitionResolver) .ValidateInputAsync(data); @@ -116,9 +128,10 @@ public static class ValidationTestExtensions Schema? schema, ValidationMode mode, ValidationUpdater? updater, - ValidationAction action = ValidationAction.Upsert, - ResolvedComponents? components = null, - DomainId? contentId = null) + ValidationAction action, + ResolvedComponents? components, + DomainId? contentId, + ContentData? previousData) { schema ??= new Schema(); @@ -127,7 +140,10 @@ public static class ValidationTestExtensions schema with { Id = SchemaId.Id, Name = SchemaId.Name }, contentId ?? DomainId.NewGuid(), components ?? ResolvedComponents.Empty, - TestUtils.DefaultSerializer); + TestUtils.DefaultSerializer) + { + PreviousData = previousData + }; var context = new ValidationContext(rootContext) diff --git a/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/Validators/AllowedValuesValidatorTests.cs b/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/Validators/AllowedValuesValidatorTests.cs index b44d84cc9..17f4f740d 100644 --- a/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/Validators/AllowedValuesValidatorTests.cs +++ b/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/Validators/AllowedValuesValidatorTests.cs @@ -44,4 +44,4 @@ public class AllowedValuesValidatorTests : IClassFixture errors.Should().BeEquivalentTo( ["Not an allowed value."]); } -} \ No newline at end of file +} diff --git a/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/Validators/NotChangedValidatorTests.cs b/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/Validators/NotChangedValidatorTests.cs new file mode 100644 index 000000000..1edadba3e --- /dev/null +++ b/backend/tests/Squidex.Domain.Apps.Core.Tests/Operations/ValidateContent/Validators/NotChangedValidatorTests.cs @@ -0,0 +1,144 @@ +// ========================================================================== +// Squidex Headless CMS +// ========================================================================== +// Copyright (c) Squidex UG (haftungsbeschraenkt) +// All rights reserved. Licensed under the MIT license. +// ========================================================================== + +using Squidex.Domain.Apps.Core.Contents; +using Squidex.Domain.Apps.Core.Schemas; +using Squidex.Domain.Apps.Core.TestHelpers; +using Squidex.Domain.Apps.Core.ValidateContent.Validators; + +namespace Squidex.Domain.Apps.Core.Operations.ValidateContent.Validators; + +public class NotChangedValidatorTests : IClassFixture +{ + private readonly IRootField field = + Fields.String(1, "myField", Partitioning.Invariant, + new StringFieldProperties { IsCreateOnly = true }); + + private readonly List errors = []; + + [Fact] + public async Task Should_not_add_error_if_value_is_wrong_type() + { + var sut = new NotChangedValidator(field, []); + + await sut.ValidateAsync(true, errors); + + Assert.Empty(errors); + } + + [Fact] + public async Task Should_not_add_error_if_values_are_the_same() + { + var previousData = + new ContentData() + .AddField("myField", + new ContentFieldData() + .AddInvariant("Value1")); + + var newData = + new ContentFieldData() + .AddInvariant("Value1"); + + var sut = new NotChangedValidator(field, previousData); + + await sut.ValidateAsync(newData, errors); + + Assert.Empty(errors); + } + + [Fact] + public async Task Should_add_error_if_values_differ() + { + var previousData = + new ContentData() + .AddField("myField", + new ContentFieldData() + .AddInvariant("Value1")); + + var newData = + new ContentFieldData() + .AddInvariant("Value2"); + + var sut = new NotChangedValidator(field, previousData); + + await sut.ValidateAsync(newData, errors); + + errors.Should().BeEquivalentTo( + ["iv: Field cannot be changed after creation."]); + } + + [Fact] + public async Task Should_add_error_if_values_differ_as_new_data_does_not_have_field() + { + var previousData = + new ContentData() + .AddField("myField", + new ContentFieldData() + .AddInvariant("Value1")); + + var newData = + new ContentFieldData(); + + var sut = new NotChangedValidator(field, previousData); + + await sut.ValidateAsync(newData, errors); + + errors.Should().BeEquivalentTo( + ["iv: Field cannot be changed after creation."]); + } + + [Fact] + public async Task Should_add_error_if_values_differ_as_new_data_is_null() + { + var previousData = + new ContentData() + .AddField("myField", + new ContentFieldData() + .AddInvariant("Value1")); + + var sut = new NotChangedValidator(field, previousData); + + await sut.ValidateAsync(null, errors); + + errors.Should().BeEquivalentTo( + ["iv: Field cannot be changed after creation."]); + } + + [Fact] + public async Task Should_add_error_if_values_differ_as_previous_data_does_not_have_field() + { + var newData = + new ContentFieldData() + .AddInvariant("Value2"); + + var sut = new NotChangedValidator(field, []); + + await sut.ValidateAsync(newData, errors); + + errors.Should().BeEquivalentTo( + ["iv: Field cannot be changed after creation."]); + } + + [Fact] + public async Task Should_add_error_if_values_differ_as_previous_data_does_not_have_value() + { + var previousData = + new ContentData() + .AddField("myField", []); + + var newData = + new ContentFieldData() + .AddInvariant("Value2"); + + var sut = new NotChangedValidator(field, []); + + await sut.ValidateAsync(newData, errors); + + errors.Should().BeEquivalentTo( + ["iv: Field cannot be changed after creation."]); + } +} diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Add_should_create_events_and_add_field.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Add_should_create_events_and_add_field.verified.txt index 18a47ecdf..5dea9fc5f 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Add_should_create_events_and_add_field.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Add_should_create_events_and_add_field.verified.txt @@ -16,7 +16,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -27,7 +28,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -50,7 +52,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -61,7 +64,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -84,7 +88,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -95,7 +100,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -124,7 +130,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -135,7 +142,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -158,7 +166,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -169,7 +178,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -192,7 +202,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -203,7 +214,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -243,7 +255,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, FieldId: 1,age, SchemaId: Guid_2,my-schema, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Add_should_create_events_and_add_field_to_array.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Add_should_create_events_and_add_field_to_array.verified.txt index 981a31f0f..2e2a52e5b 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Add_should_create_events_and_add_field_to_array.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Add_should_create_events_and_add_field_to_array.verified.txt @@ -18,7 +18,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -29,7 +30,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -49,7 +51,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -60,7 +63,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -80,7 +84,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -91,7 +96,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -112,7 +118,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -123,7 +130,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -143,7 +151,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -154,7 +163,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -174,7 +184,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -185,7 +196,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -198,12 +210,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -228,7 +242,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -239,7 +254,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -259,7 +275,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -270,7 +287,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -290,7 +308,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -301,7 +320,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -322,7 +342,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -333,7 +354,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -353,7 +375,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -364,7 +387,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -384,7 +408,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -395,7 +420,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -408,12 +434,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -438,7 +466,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -449,7 +478,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -469,7 +499,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -480,7 +511,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -500,7 +532,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -511,7 +544,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -532,7 +566,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -543,7 +578,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -563,7 +599,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -574,7 +611,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -594,7 +632,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -605,7 +644,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -618,12 +658,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -654,7 +696,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -665,7 +708,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -685,7 +729,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -696,7 +741,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -716,7 +762,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -727,7 +774,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -748,7 +796,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -759,7 +808,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -779,7 +829,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -790,7 +841,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -810,7 +862,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -821,7 +874,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -834,12 +888,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -864,7 +920,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -875,7 +932,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -895,7 +953,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -906,7 +965,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -926,7 +986,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -937,7 +998,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -958,7 +1020,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -969,7 +1032,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -989,7 +1053,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1000,7 +1065,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1020,7 +1086,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1031,7 +1098,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1044,12 +1112,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -1074,7 +1144,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1085,7 +1156,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1105,7 +1177,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1116,7 +1189,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1136,7 +1210,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1147,7 +1222,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1168,7 +1244,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1179,7 +1256,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1199,7 +1277,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1210,7 +1289,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1230,7 +1310,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1241,7 +1322,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1254,12 +1336,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -1299,7 +1383,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, FieldId: 2,age, ParentFieldId: 1,array, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.ConfigureUIFields_should_create_events_for_list_fields_and_update_schema.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.ConfigureUIFields_should_create_events_for_list_fields_and_update_schema.verified.txt index 000219e23..183bde17d 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.ConfigureUIFields_should_create_events_for_list_fields_and_update_schema.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.ConfigureUIFields_should_create_events_for_list_fields_and_update_schema.verified.txt @@ -16,7 +16,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -27,7 +28,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -50,7 +52,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -61,7 +64,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -84,7 +88,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -95,7 +100,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -127,7 +133,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -138,7 +145,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -161,7 +169,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -172,7 +181,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -195,7 +205,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -206,7 +217,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.ConfigureUIFields_should_create_events_for_reference_fields_and_update_schema.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.ConfigureUIFields_should_create_events_for_reference_fields_and_update_schema.verified.txt index e684c0b94..2d22811d5 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.ConfigureUIFields_should_create_events_for_reference_fields_and_update_schema.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.ConfigureUIFields_should_create_events_for_reference_fields_and_update_schema.verified.txt @@ -16,7 +16,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -27,7 +28,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -50,7 +52,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -61,7 +64,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -84,7 +88,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -95,7 +100,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -127,7 +133,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -138,7 +145,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -161,7 +169,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -172,7 +181,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -195,7 +205,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -206,7 +217,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Create_should_create_events_and_schema_with_initial_fields.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Create_should_create_events_and_schema_with_initial_fields.verified.txt index bb196405f..c24b2d577 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Create_should_create_events_and_schema_with_initial_fields.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Create_should_create_events_and_schema_with_initial_fields.verified.txt @@ -16,7 +16,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -27,7 +28,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -48,7 +50,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -59,7 +62,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -82,7 +86,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -93,7 +98,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -111,7 +117,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -122,7 +129,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -142,7 +150,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -153,7 +162,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -171,7 +181,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -182,7 +193,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -202,7 +214,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -213,7 +226,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -231,7 +245,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -242,7 +257,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -263,7 +279,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -274,7 +291,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -292,7 +310,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -303,7 +322,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -323,7 +343,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -334,7 +355,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -352,7 +374,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -363,7 +386,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -383,7 +407,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -394,7 +419,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -412,7 +438,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -423,7 +450,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -436,12 +464,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field3, @@ -464,7 +494,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -475,7 +506,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -496,7 +528,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -507,7 +540,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -530,7 +564,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -541,7 +576,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -559,7 +595,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -570,7 +607,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -590,7 +628,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -601,7 +640,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -619,7 +659,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -630,7 +671,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -650,7 +692,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -661,7 +704,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -679,7 +723,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -690,7 +735,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -711,7 +757,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -722,7 +769,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -740,7 +788,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -751,7 +800,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -771,7 +821,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -782,7 +833,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -800,7 +852,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -811,7 +864,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -831,7 +885,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -842,7 +897,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -860,7 +916,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -871,7 +928,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -884,12 +942,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field3, @@ -912,7 +972,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -923,7 +984,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -944,7 +1006,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -955,7 +1018,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -978,7 +1042,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -989,7 +1054,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -1007,7 +1073,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1018,7 +1085,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -1038,7 +1106,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1049,7 +1118,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -1067,7 +1137,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1078,7 +1149,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -1098,7 +1170,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1109,7 +1182,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -1127,7 +1201,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1138,7 +1213,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -1159,7 +1235,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1170,7 +1247,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -1188,7 +1266,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1199,7 +1278,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -1219,7 +1299,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1230,7 +1311,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -1248,7 +1330,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1259,7 +1342,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -1279,7 +1363,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1290,7 +1375,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -1308,7 +1394,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1319,7 +1406,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -1332,12 +1420,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field3, @@ -1366,7 +1456,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1377,7 +1468,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -1398,7 +1490,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1409,7 +1502,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -1432,7 +1526,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1443,7 +1538,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -1461,7 +1557,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1472,7 +1569,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -1492,7 +1590,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1503,7 +1602,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -1521,7 +1621,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1532,7 +1633,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -1552,7 +1654,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1563,7 +1666,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -1581,7 +1685,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1592,7 +1697,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -1613,7 +1719,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1624,7 +1731,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -1642,7 +1750,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1653,7 +1762,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -1673,7 +1783,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1684,7 +1795,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -1702,7 +1814,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1713,7 +1826,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -1733,7 +1847,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1744,7 +1859,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -1762,7 +1878,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1773,7 +1890,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -1786,12 +1904,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field3, @@ -1814,7 +1934,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1825,7 +1946,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -1846,7 +1968,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1857,7 +1980,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -1880,7 +2004,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1891,7 +2016,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -1909,7 +2035,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1920,7 +2047,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -1940,7 +2068,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1951,7 +2080,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -1969,7 +2099,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1980,7 +2111,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -2000,7 +2132,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2011,7 +2144,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -2029,7 +2163,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2040,7 +2175,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -2061,7 +2197,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2072,7 +2209,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -2090,7 +2228,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2101,7 +2240,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -2121,7 +2261,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2132,7 +2273,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -2150,7 +2292,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2161,7 +2304,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -2181,7 +2325,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2192,7 +2337,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -2210,7 +2356,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2221,7 +2368,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -2234,12 +2382,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field3, @@ -2262,7 +2412,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2273,7 +2424,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -2294,7 +2446,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2305,7 +2458,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -2328,7 +2482,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2339,7 +2494,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -2357,7 +2513,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2368,7 +2525,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -2388,7 +2546,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2399,7 +2558,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -2417,7 +2577,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2428,7 +2589,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -2448,7 +2610,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2459,7 +2622,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -2477,7 +2641,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2488,7 +2653,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -2509,7 +2675,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2520,7 +2687,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -2538,7 +2706,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2549,7 +2718,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -2569,7 +2739,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2580,7 +2751,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -2598,7 +2770,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2609,7 +2782,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -2629,7 +2803,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2640,7 +2815,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -2658,7 +2834,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2669,7 +2846,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -2682,12 +2860,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field3, @@ -2730,7 +2910,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2741,7 +2922,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -2762,7 +2944,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2773,7 +2956,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -2796,7 +2980,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2807,7 +2992,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -2825,7 +3011,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2836,7 +3023,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -2856,7 +3044,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2867,7 +3056,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -2885,7 +3075,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2896,7 +3087,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -2916,7 +3108,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2927,7 +3120,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -2945,7 +3139,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2956,7 +3151,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -2977,7 +3173,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2988,7 +3185,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -3006,7 +3204,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3017,7 +3216,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -3037,7 +3237,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3048,7 +3249,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -3066,7 +3268,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3077,7 +3280,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -3097,7 +3301,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3108,7 +3313,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -3126,7 +3332,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3137,7 +3344,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -3150,12 +3358,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field3, @@ -3178,7 +3388,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3189,7 +3400,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -3210,7 +3422,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3221,7 +3434,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -3244,7 +3458,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3255,7 +3470,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -3273,7 +3489,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3284,7 +3501,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -3304,7 +3522,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3315,7 +3534,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -3333,7 +3553,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3344,7 +3565,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -3364,7 +3586,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3375,7 +3598,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -3393,7 +3617,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3404,7 +3629,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -3425,7 +3651,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3436,7 +3663,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -3454,7 +3682,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3465,7 +3694,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -3485,7 +3715,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3496,7 +3727,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -3514,7 +3746,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3525,7 +3758,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -3545,7 +3779,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3556,7 +3791,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -3574,7 +3810,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3585,7 +3822,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -3598,12 +3836,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field3, @@ -3626,7 +3866,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3637,7 +3878,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -3658,7 +3900,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3669,7 +3912,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -3692,7 +3936,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3703,7 +3948,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -3721,7 +3967,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3732,7 +3979,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -3752,7 +4000,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3763,7 +4012,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -3781,7 +4031,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3792,7 +4043,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -3812,7 +4064,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3823,7 +4076,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -3841,7 +4095,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3852,7 +4107,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -3873,7 +4129,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3884,7 +4141,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -3902,7 +4160,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3913,7 +4172,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -3933,7 +4193,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3944,7 +4205,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -3962,7 +4224,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -3973,7 +4236,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -3993,7 +4257,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4004,7 +4269,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -4022,7 +4288,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4033,7 +4300,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -4046,12 +4314,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field3, @@ -4079,7 +4349,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4090,7 +4361,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -4111,7 +4383,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4122,7 +4395,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -4145,7 +4419,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4156,7 +4431,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -4174,7 +4450,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4185,7 +4462,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -4205,7 +4483,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4216,7 +4495,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -4234,7 +4514,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4245,7 +4526,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -4265,7 +4547,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4276,7 +4559,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -4294,7 +4578,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4305,7 +4590,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -4326,7 +4612,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4337,7 +4624,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -4355,7 +4643,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4366,7 +4655,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -4386,7 +4676,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4397,7 +4688,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -4415,7 +4707,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4426,7 +4719,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -4446,7 +4740,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4457,7 +4752,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -4475,7 +4771,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4486,7 +4783,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -4499,12 +4797,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field3, @@ -4527,7 +4827,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4538,7 +4839,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -4559,7 +4861,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4570,7 +4873,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -4593,7 +4897,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4604,7 +4909,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -4622,7 +4928,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4633,7 +4940,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -4653,7 +4961,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4664,7 +4973,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -4682,7 +4992,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4693,7 +5004,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -4713,7 +5025,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4724,7 +5037,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -4742,7 +5056,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4753,7 +5068,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -4774,7 +5090,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4785,7 +5102,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -4803,7 +5121,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4814,7 +5133,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -4834,7 +5154,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4845,7 +5166,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -4863,7 +5185,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4874,7 +5197,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -4894,7 +5218,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4905,7 +5230,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -4923,7 +5249,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4934,7 +5261,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -4947,12 +5275,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field3, @@ -4975,7 +5305,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -4986,7 +5317,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -5007,7 +5339,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -5018,7 +5351,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -5041,7 +5375,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -5052,7 +5387,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -5070,7 +5406,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -5081,7 +5418,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -5101,7 +5439,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -5112,7 +5451,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -5130,7 +5470,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -5141,7 +5482,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -5161,7 +5503,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -5172,7 +5515,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -5190,7 +5534,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -5201,7 +5546,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -5222,7 +5568,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -5233,7 +5580,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -5251,7 +5599,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -5262,7 +5611,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -5282,7 +5632,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -5293,7 +5644,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -5311,7 +5663,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -5322,7 +5675,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -5342,7 +5696,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -5353,7 +5708,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 4, Name: nested1, @@ -5371,7 +5727,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -5382,7 +5739,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 5, Name: nested2, @@ -5395,12 +5753,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field3, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.DeleteField_should_create_events_and_delete_nested_field.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.DeleteField_should_create_events_and_delete_nested_field.verified.txt index 6178d4004..9e30ac7f3 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.DeleteField_should_create_events_and_delete_nested_field.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.DeleteField_should_create_events_and_delete_nested_field.verified.txt @@ -11,12 +11,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -34,12 +36,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -57,12 +61,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -86,12 +92,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -109,12 +117,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -132,12 +142,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.DisableField_should_create_events_and_update_field_disabled_flag.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.DisableField_should_create_events_and_update_field_disabled_flag.verified.txt index a22173f92..82197f326 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.DisableField_should_create_events_and_update_field_disabled_flag.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.DisableField_should_create_events_and_update_field_disabled_flag.verified.txt @@ -16,7 +16,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -27,7 +28,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -50,7 +52,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -61,7 +64,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -84,7 +88,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -95,7 +100,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -124,7 +130,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -135,7 +142,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -158,7 +166,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -169,7 +178,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -192,7 +202,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -203,7 +214,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.DisableField_should_create_events_and_update_nested_field_disabled_flag.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.DisableField_should_create_events_and_update_nested_field_disabled_flag.verified.txt index 6ab90f307..fa88a5058 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.DisableField_should_create_events_and_update_nested_field_disabled_flag.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.DisableField_should_create_events_and_update_nested_field_disabled_flag.verified.txt @@ -18,7 +18,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -29,7 +30,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -49,7 +51,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -60,7 +63,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -80,7 +84,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -91,7 +96,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -112,7 +118,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -123,7 +130,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -143,7 +151,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -154,7 +163,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -174,7 +184,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -185,7 +196,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -198,12 +210,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -228,7 +242,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -239,7 +254,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -259,7 +275,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -270,7 +287,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -290,7 +308,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -301,7 +320,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -322,7 +342,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -333,7 +354,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -353,7 +375,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -364,7 +387,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -384,7 +408,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -395,7 +420,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -408,12 +434,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -438,7 +466,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -449,7 +478,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -469,7 +499,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -480,7 +511,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -500,7 +532,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -511,7 +544,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -532,7 +566,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -543,7 +578,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -563,7 +599,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -574,7 +611,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -594,7 +632,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -605,7 +644,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -618,12 +658,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -654,7 +696,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -665,7 +708,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -685,7 +729,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -696,7 +741,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -716,7 +762,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -727,7 +774,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -748,7 +796,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -759,7 +808,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -779,7 +829,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -790,7 +841,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -810,7 +862,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -821,7 +874,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -834,12 +888,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -864,7 +920,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -875,7 +932,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -895,7 +953,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -906,7 +965,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -926,7 +986,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -937,7 +998,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -958,7 +1020,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -969,7 +1032,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -989,7 +1053,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1000,7 +1065,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1020,7 +1086,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1031,7 +1098,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1044,12 +1112,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -1074,7 +1144,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1085,7 +1156,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1105,7 +1177,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1116,7 +1189,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1136,7 +1210,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1147,7 +1222,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1168,7 +1244,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1179,7 +1256,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1199,7 +1277,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1210,7 +1289,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1230,7 +1310,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1241,7 +1322,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1254,12 +1336,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.EnableField_should_create_events_and_update_field_disabled_flag.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.EnableField_should_create_events_and_update_field_disabled_flag.verified.txt index b1d2fcd84..adad8f35a 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.EnableField_should_create_events_and_update_field_disabled_flag.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.EnableField_should_create_events_and_update_field_disabled_flag.verified.txt @@ -16,7 +16,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -27,7 +28,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -50,7 +52,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -61,7 +64,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -84,7 +88,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -95,7 +100,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -124,7 +130,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -135,7 +142,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -158,7 +166,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -169,7 +178,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -192,7 +202,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -203,7 +214,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.EnableField_should_create_events_and_update_nested_field_disabled_flag.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.EnableField_should_create_events_and_update_nested_field_disabled_flag.verified.txt index 7da4bd1ef..9d7939500 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.EnableField_should_create_events_and_update_nested_field_disabled_flag.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.EnableField_should_create_events_and_update_nested_field_disabled_flag.verified.txt @@ -18,7 +18,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -29,7 +30,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -49,7 +51,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -60,7 +63,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -80,7 +84,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -91,7 +96,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -112,7 +118,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -123,7 +130,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -143,7 +151,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -154,7 +163,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -174,7 +184,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -185,7 +196,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -198,12 +210,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -228,7 +242,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -239,7 +254,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -259,7 +275,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -270,7 +287,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -290,7 +308,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -301,7 +320,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -322,7 +342,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -333,7 +354,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -353,7 +375,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -364,7 +387,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -384,7 +408,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -395,7 +420,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -408,12 +434,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -438,7 +466,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -449,7 +478,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -469,7 +499,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -480,7 +511,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -500,7 +532,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -511,7 +544,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -532,7 +566,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -543,7 +578,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -563,7 +599,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -574,7 +611,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -594,7 +632,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -605,7 +644,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -618,12 +658,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -654,7 +696,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -665,7 +708,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -685,7 +729,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -696,7 +741,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -716,7 +762,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -727,7 +774,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -748,7 +796,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -759,7 +808,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -779,7 +829,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -790,7 +841,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -810,7 +862,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -821,7 +874,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -834,12 +888,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -864,7 +920,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -875,7 +932,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -895,7 +953,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -906,7 +965,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -926,7 +986,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -937,7 +998,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -958,7 +1020,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -969,7 +1032,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -989,7 +1053,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1000,7 +1065,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1020,7 +1086,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1031,7 +1098,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1044,12 +1112,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -1074,7 +1144,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1085,7 +1156,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1105,7 +1177,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1116,7 +1189,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1136,7 +1210,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1147,7 +1222,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1168,7 +1244,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1179,7 +1256,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1199,7 +1277,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1210,7 +1289,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1230,7 +1310,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1241,7 +1322,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1254,12 +1336,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.HideField_should_create_events_and_update_field_hidden_flag.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.HideField_should_create_events_and_update_field_hidden_flag.verified.txt index 6e2b36543..60c32f8f0 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.HideField_should_create_events_and_update_field_hidden_flag.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.HideField_should_create_events_and_update_field_hidden_flag.verified.txt @@ -16,7 +16,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -27,7 +28,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -50,7 +52,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -61,7 +64,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -84,7 +88,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -95,7 +100,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -124,7 +130,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -135,7 +142,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -158,7 +166,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -169,7 +178,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -192,7 +202,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -203,7 +214,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.HideField_should_create_events_and_update_nested_field_hidden_flag.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.HideField_should_create_events_and_update_nested_field_hidden_flag.verified.txt index 13baad09a..1eac25cbc 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.HideField_should_create_events_and_update_nested_field_hidden_flag.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.HideField_should_create_events_and_update_nested_field_hidden_flag.verified.txt @@ -18,7 +18,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -29,7 +30,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -49,7 +51,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -60,7 +63,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -80,7 +84,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -91,7 +96,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -112,7 +118,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -123,7 +130,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -143,7 +151,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -154,7 +163,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -174,7 +184,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -185,7 +196,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -198,12 +210,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -228,7 +242,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -239,7 +254,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -259,7 +275,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -270,7 +287,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -290,7 +308,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -301,7 +320,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -322,7 +342,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -333,7 +354,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -353,7 +375,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -364,7 +387,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -384,7 +408,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -395,7 +420,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -408,12 +434,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -438,7 +466,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -449,7 +478,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -469,7 +499,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -480,7 +511,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -500,7 +532,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -511,7 +544,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -532,7 +566,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -543,7 +578,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -563,7 +599,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -574,7 +611,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -594,7 +632,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -605,7 +644,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -618,12 +658,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -654,7 +696,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -665,7 +708,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -685,7 +729,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -696,7 +741,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -716,7 +762,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -727,7 +774,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -748,7 +796,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -759,7 +808,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -779,7 +829,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -790,7 +841,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -810,7 +862,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -821,7 +874,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -834,12 +888,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -864,7 +920,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -875,7 +932,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -895,7 +953,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -906,7 +965,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -926,7 +986,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -937,7 +998,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -958,7 +1020,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -969,7 +1032,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -989,7 +1053,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1000,7 +1065,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1020,7 +1086,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1031,7 +1098,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1044,12 +1112,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -1074,7 +1144,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1085,7 +1156,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1105,7 +1177,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1116,7 +1189,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1136,7 +1210,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1147,7 +1222,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1168,7 +1244,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1179,7 +1256,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1199,7 +1277,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1210,7 +1289,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1230,7 +1310,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1241,7 +1322,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1254,12 +1336,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.LockField_should_create_events_and_update_field_locked_flag.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.LockField_should_create_events_and_update_field_locked_flag.verified.txt index ffa1001ae..9b63976b0 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.LockField_should_create_events_and_update_field_locked_flag.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.LockField_should_create_events_and_update_field_locked_flag.verified.txt @@ -16,7 +16,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -27,7 +28,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -50,7 +52,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -61,7 +64,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -84,7 +88,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -95,7 +100,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -124,7 +130,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -135,7 +142,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -158,7 +166,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -169,7 +178,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -192,7 +202,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -203,7 +214,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.LockField_should_create_events_and_update_nested_field_locked_flag.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.LockField_should_create_events_and_update_nested_field_locked_flag.verified.txt index a6cbaac5a..ba5bd4927 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.LockField_should_create_events_and_update_nested_field_locked_flag.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.LockField_should_create_events_and_update_nested_field_locked_flag.verified.txt @@ -18,7 +18,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -29,7 +30,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -49,7 +51,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -60,7 +63,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -80,7 +84,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -91,7 +96,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -112,7 +118,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -123,7 +130,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -143,7 +151,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -154,7 +163,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -174,7 +184,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -185,7 +196,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -198,12 +210,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -228,7 +242,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -239,7 +254,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -259,7 +275,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -270,7 +287,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -290,7 +308,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -301,7 +320,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -322,7 +342,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -333,7 +354,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -353,7 +375,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -364,7 +387,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -384,7 +408,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -395,7 +420,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -408,12 +434,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -438,7 +466,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -449,7 +478,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -469,7 +499,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -480,7 +511,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -500,7 +532,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -511,7 +544,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -532,7 +566,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -543,7 +578,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -563,7 +599,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -574,7 +611,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -594,7 +632,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -605,7 +644,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -618,12 +658,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -654,7 +696,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -665,7 +708,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -685,7 +729,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -696,7 +741,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -716,7 +762,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -727,7 +774,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -748,7 +796,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -759,7 +808,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -779,7 +829,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -790,7 +841,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -810,7 +862,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -821,7 +874,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -834,12 +888,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -864,7 +920,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -875,7 +932,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -895,7 +953,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -906,7 +965,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -926,7 +986,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -937,7 +998,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -958,7 +1020,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -969,7 +1032,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -989,7 +1053,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1000,7 +1065,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1020,7 +1086,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1031,7 +1098,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1044,12 +1112,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -1074,7 +1144,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1085,7 +1156,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1105,7 +1177,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1116,7 +1189,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1136,7 +1210,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1147,7 +1222,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1168,7 +1244,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1179,7 +1256,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1199,7 +1277,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1210,7 +1289,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1230,7 +1310,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1241,7 +1322,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1254,12 +1336,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Reorder_should_create_events_and_reorder_fields.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Reorder_should_create_events_and_reorder_fields.verified.txt index fb8622d85..c935c365a 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Reorder_should_create_events_and_reorder_fields.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Reorder_should_create_events_and_reorder_fields.verified.txt @@ -16,7 +16,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -27,7 +28,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -48,7 +50,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -59,7 +62,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -82,7 +86,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -93,7 +98,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -114,7 +120,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -125,7 +132,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -148,7 +156,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -159,7 +168,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -180,7 +190,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -191,7 +202,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -220,7 +232,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -231,7 +244,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -252,7 +266,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -263,7 +278,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -286,7 +302,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -297,7 +314,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -318,7 +336,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -329,7 +348,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, @@ -352,7 +372,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -363,7 +384,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: field1, @@ -384,7 +406,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -395,7 +418,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field2, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Reorder_should_create_events_and_reorder_nestedy_fields.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Reorder_should_create_events_and_reorder_nestedy_fields.verified.txt index 101f38e81..46df47d53 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Reorder_should_create_events_and_reorder_nestedy_fields.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.Reorder_should_create_events_and_reorder_nestedy_fields.verified.txt @@ -18,7 +18,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -29,7 +30,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -47,7 +49,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -58,7 +61,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -78,7 +82,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -89,7 +94,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -107,7 +113,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -118,7 +125,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -138,7 +146,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -149,7 +158,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -167,7 +177,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -178,7 +189,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -199,7 +211,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -210,7 +223,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -228,7 +242,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -239,7 +254,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -259,7 +275,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -270,7 +287,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -288,7 +306,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -299,7 +318,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -319,7 +339,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -330,7 +351,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -348,7 +370,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -359,7 +382,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -372,12 +396,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -402,7 +428,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -413,7 +440,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -431,7 +459,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -442,7 +471,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -462,7 +492,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -473,7 +504,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -491,7 +523,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -502,7 +535,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -522,7 +556,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -533,7 +568,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -551,7 +587,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -562,7 +599,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -583,7 +621,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -594,7 +633,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -612,7 +652,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -623,7 +664,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -643,7 +685,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -654,7 +697,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -672,7 +716,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -683,7 +728,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -703,7 +749,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -714,7 +761,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -732,7 +780,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -743,7 +792,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -756,12 +806,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -786,7 +838,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -797,7 +850,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -815,7 +869,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -826,7 +881,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -846,7 +902,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -857,7 +914,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -875,7 +933,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -886,7 +945,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -906,7 +966,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -917,7 +978,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -935,7 +997,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -946,7 +1009,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -967,7 +1031,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -978,7 +1043,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -996,7 +1062,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1007,7 +1074,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -1027,7 +1095,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1038,7 +1107,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -1056,7 +1126,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1067,7 +1138,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -1087,7 +1159,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1098,7 +1171,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -1116,7 +1190,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1127,7 +1202,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -1140,12 +1216,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -1176,7 +1254,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1187,7 +1266,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -1205,7 +1285,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1216,7 +1297,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -1236,7 +1318,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1247,7 +1330,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -1265,7 +1349,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1276,7 +1361,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -1296,7 +1382,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1307,7 +1394,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -1325,7 +1413,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1336,7 +1425,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -1357,7 +1447,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1368,7 +1459,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -1386,7 +1478,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1397,7 +1490,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -1417,7 +1511,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1428,7 +1523,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -1446,7 +1542,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1457,7 +1554,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -1477,7 +1575,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1488,7 +1587,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -1506,7 +1606,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1517,7 +1618,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -1530,12 +1632,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -1560,7 +1664,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1571,7 +1676,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -1589,7 +1695,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1600,7 +1707,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -1620,7 +1728,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1631,7 +1740,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -1649,7 +1759,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1660,7 +1771,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -1680,7 +1792,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1691,7 +1804,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -1709,7 +1823,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1720,7 +1835,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -1741,7 +1857,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1752,7 +1869,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -1770,7 +1888,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1781,7 +1900,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -1801,7 +1921,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1812,7 +1933,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -1830,7 +1952,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1841,7 +1964,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -1861,7 +1985,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1872,7 +1997,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -1890,7 +2016,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1901,7 +2028,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -1914,12 +2042,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -1944,7 +2074,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1955,7 +2086,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -1973,7 +2105,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1984,7 +2117,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -2004,7 +2138,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2015,7 +2150,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -2033,7 +2169,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2044,7 +2181,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -2064,7 +2202,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2075,7 +2214,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -2093,7 +2233,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2104,7 +2245,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -2125,7 +2267,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2136,7 +2279,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -2154,7 +2298,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2165,7 +2310,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -2185,7 +2331,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2196,7 +2343,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -2214,7 +2362,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2225,7 +2374,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -2245,7 +2395,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2256,7 +2407,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: field1, @@ -2274,7 +2426,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -2285,7 +2438,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 3, Name: field2, @@ -2298,12 +2452,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.ShowField_should_create_events_and_update_field_hidden_flag.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.ShowField_should_create_events_and_update_field_hidden_flag.verified.txt index b1d2fcd84..adad8f35a 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.ShowField_should_create_events_and_update_field_hidden_flag.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.ShowField_should_create_events_and_update_field_hidden_flag.verified.txt @@ -16,7 +16,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -27,7 +28,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -50,7 +52,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -61,7 +64,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -84,7 +88,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -95,7 +100,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -124,7 +130,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -135,7 +142,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -158,7 +166,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -169,7 +178,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -192,7 +202,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -203,7 +214,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.ShowField_should_create_events_and_update_nested_field_hidden_flag.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.ShowField_should_create_events_and_update_nested_field_hidden_flag.verified.txt index 7da4bd1ef..9d7939500 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.ShowField_should_create_events_and_update_nested_field_hidden_flag.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.ShowField_should_create_events_and_update_nested_field_hidden_flag.verified.txt @@ -18,7 +18,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -29,7 +30,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -49,7 +51,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -60,7 +63,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -80,7 +84,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -91,7 +96,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -112,7 +118,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -123,7 +130,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -143,7 +151,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -154,7 +163,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -174,7 +184,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -185,7 +196,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -198,12 +210,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -228,7 +242,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -239,7 +254,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -259,7 +275,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -270,7 +287,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -290,7 +308,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -301,7 +320,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -322,7 +342,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -333,7 +354,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -353,7 +375,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -364,7 +387,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -384,7 +408,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -395,7 +420,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -408,12 +434,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -438,7 +466,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -449,7 +478,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -469,7 +499,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -480,7 +511,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -500,7 +532,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -511,7 +544,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -532,7 +566,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -543,7 +578,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -563,7 +599,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -574,7 +611,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -594,7 +632,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -605,7 +644,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -618,12 +658,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -654,7 +696,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -665,7 +708,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -685,7 +729,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -696,7 +741,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -716,7 +762,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -727,7 +774,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -748,7 +796,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -759,7 +808,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -779,7 +829,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -790,7 +841,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -810,7 +862,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -821,7 +874,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -834,12 +888,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -864,7 +920,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -875,7 +932,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -895,7 +953,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -906,7 +965,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -926,7 +986,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -937,7 +998,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -958,7 +1020,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -969,7 +1032,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -989,7 +1053,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1000,7 +1065,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1020,7 +1086,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1031,7 +1098,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1044,12 +1112,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -1074,7 +1144,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1085,7 +1156,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1105,7 +1177,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1116,7 +1189,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1136,7 +1210,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1147,7 +1222,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1168,7 +1244,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1179,7 +1256,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1199,7 +1277,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1210,7 +1289,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1230,7 +1310,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { MinLength: 10, @@ -1241,7 +1322,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1254,12 +1336,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.UpdateField_should_create_events_and_update_field_properties.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.UpdateField_should_create_events_and_update_field_properties.verified.txt index e8db802b0..6b5293097 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.UpdateField_should_create_events_and_update_field_properties.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.UpdateField_should_create_events_and_update_field_properties.verified.txt @@ -14,7 +14,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -23,7 +24,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -44,7 +46,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -53,7 +56,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -74,7 +78,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -83,7 +88,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -110,7 +116,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -119,7 +126,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -140,7 +148,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -149,7 +158,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -170,7 +180,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -179,7 +190,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: age, @@ -216,7 +228,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, FieldId: 1,age, SchemaId: Guid_2,my-schema, diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.UpdateField_should_create_events_and_update_nested_field_properties.verified.txt b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.UpdateField_should_create_events_and_update_nested_field_properties.verified.txt index 1190d216c..99a9fbd12 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.UpdateField_should_create_events_and_update_nested_field_properties.verified.txt +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Verify/SchemaDomainObjectTests.UpdateField_should_create_events_and_update_nested_field_properties.verified.txt @@ -16,7 +16,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -25,7 +26,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -43,7 +45,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -52,7 +55,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -70,7 +74,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -79,7 +84,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -98,7 +104,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -107,7 +114,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -125,7 +133,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -134,7 +143,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -152,7 +162,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -161,7 +172,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -174,12 +186,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -202,7 +216,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -211,7 +226,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -229,7 +245,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -238,7 +255,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -256,7 +274,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -265,7 +284,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -284,7 +304,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -293,7 +314,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -311,7 +333,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -320,7 +343,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -338,7 +362,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -347,7 +372,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -360,12 +386,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -388,7 +416,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -397,7 +426,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -415,7 +445,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -424,7 +455,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -442,7 +474,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -451,7 +484,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -470,7 +504,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -479,7 +514,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -497,7 +533,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -506,7 +543,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -524,7 +562,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -533,7 +572,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -546,12 +586,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -580,7 +622,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -589,7 +632,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -607,7 +651,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -616,7 +661,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -634,7 +680,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -643,7 +690,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -662,7 +710,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -671,7 +720,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -689,7 +739,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -698,7 +749,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -716,7 +768,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -725,7 +778,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -738,12 +792,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -766,7 +822,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -775,7 +832,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -793,7 +851,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -802,7 +861,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -820,7 +880,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -829,7 +890,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -848,7 +910,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -857,7 +920,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -875,7 +939,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -884,7 +949,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -902,7 +968,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -911,7 +978,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -924,12 +992,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -952,7 +1022,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -961,7 +1032,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -979,7 +1051,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -988,7 +1061,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1006,7 +1080,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -1015,7 +1090,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1034,7 +1110,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -1043,7 +1120,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1061,7 +1139,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -1070,7 +1149,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1088,7 +1168,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsUnique: false, @@ -1097,7 +1178,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 2, Name: age, @@ -1110,12 +1192,14 @@ Properties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, RawProperties: { IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Id: 1, Name: array, @@ -1152,7 +1236,8 @@ CreateEnum: false, IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, FieldId: 2,age, ParentFieldId: 1,array, diff --git a/backend/tests/Squidex.Infrastructure.Tests/Tasks/SchedulerTests.cs b/backend/tests/Squidex.Infrastructure.Tests/Tasks/SchedulerTests.cs index 5657b3413..3789ef1c8 100644 --- a/backend/tests/Squidex.Infrastructure.Tests/Tasks/SchedulerTests.cs +++ b/backend/tests/Squidex.Infrastructure.Tests/Tasks/SchedulerTests.cs @@ -104,7 +104,6 @@ public class SchedulerTests target.Schedule(async _ => { await Task.Delay(1); - actuals.Add(value); }); } @@ -114,8 +113,7 @@ public class SchedulerTests target.Schedule(_ => { actuals.Add(value); - - return Task.CompletedTask; + return default; }); } } diff --git a/frontend/angular.json b/frontend/angular.json index 69701a029..6790b6ce6 100644 --- a/frontend/angular.json +++ b/frontend/angular.json @@ -200,7 +200,13 @@ "configDir": ".storybook", "browserTarget": "squidex:build", "compodoc": false, - "port": 6006 + "port": 6006, + "stylePreprocessorOptions": { + "includePaths": [ + "./src/app/theme", + "node_modules" + ] + } } }, "build-storybook": { diff --git a/frontend/src/app/features/content/pages/content/content-page.component.ts b/frontend/src/app/features/content/pages/content/content-page.component.ts index 085b8a642..25f5b51f3 100644 --- a/frontend/src/app/features/content/pages/content/content-page.component.ts +++ b/frontend/src/app/features/content/pages/content/content-page.component.ts @@ -109,6 +109,7 @@ export class ContentPageComponent implements CanComponentDeactivate, OnInit { const role = appsState.snapshot.selectedApp?.roleName; this.mutableContext = { + action: 'Create', apiUrl: apiUrl.buildUrl('api'), appId: contentsState.appId, appName: contentsState.appName, @@ -224,6 +225,7 @@ export class ContentPageComponent implements CanComponentDeactivate, OnInit { } private updateContext() { + this.mutableContext['action'] = this.content ? 'Create' : 'Update'; this.mutableContext['initialContent'] = this.content; this.mutableContext['language'] = this.language; this.mutableContext['languages'] = this.languages; diff --git a/frontend/src/app/features/content/shared/forms/content-field.component.html b/frontend/src/app/features/content/shared/forms/content-field.component.html index b45d3ee32..4ba259004 100644 --- a/frontend/src/app/features/content/shared/forms/content-field.component.html +++ b/frontend/src/app/features/content/shared/forms/content-field.component.html @@ -1,6 +1,6 @@
    - + @if (!(formModel.hiddenChanges | async)) {
    diff --git a/frontend/src/app/features/content/shared/forms/field-editor.component.ts b/frontend/src/app/features/content/shared/forms/field-editor.component.ts index f206174a9..5633eed97 100644 --- a/frontend/src/app/features/content/shared/forms/field-editor.component.ts +++ b/frontend/src/app/features/content/shared/forms/field-editor.component.ts @@ -135,7 +135,7 @@ export class FieldEditorComponent { } if (changes.formModel || changes.comments) { - this.annotations = this.comments?.getAnnotations(this.formModel.fieldPath); + this.annotations = this.comments?.getAnnotations(this.formModel.path); } } @@ -161,7 +161,7 @@ export class FieldEditorComponent { } public annotationCreate(annotation: AnnotationSelection) { - this.messageBus.emit(new AnnotationCreate(this.formModel.fieldPath, annotation)); + this.messageBus.emit(new AnnotationCreate(this.formModel.path, annotation)); } public annotationsSelect(annotation: ReadonlyArray) { @@ -169,7 +169,7 @@ export class FieldEditorComponent { } public annotationsUpdate(annotations: ReadonlyArray) { - this.comments?.updateAnnotations(this.formModel.fieldPath, annotations); + this.comments?.updateAnnotations(this.formModel.path, annotations); } public unset() { diff --git a/frontend/src/app/features/schemas/pages/schema/fields/forms/field-form-validation.component.html b/frontend/src/app/features/schemas/pages/schema/fields/forms/field-form-validation.component.html index 288229518..229192450 100644 --- a/frontend/src/app/features/schemas/pages/schema/fields/forms/field-form-validation.component.html +++ b/frontend/src/app/features/schemas/pages/schema/fields/forms/field-form-validation.component.html @@ -20,6 +20,17 @@
    + +
    +
    +
    + + +
    +
    +
    @switch (field.rawProperties.fieldType) { diff --git a/frontend/src/app/features/schemas/pages/schema/rules/schema-field-rules-form.component.html b/frontend/src/app/features/schemas/pages/schema/rules/schema-field-rules-form.component.html index 32ea8c0fb..2e832673e 100644 --- a/frontend/src/app/features/schemas/pages/schema/rules/schema-field-rules-form.component.html +++ b/frontend/src/app/features/schemas/pages/schema/rules/schema-field-rules-form.component.html @@ -22,8 +22,8 @@
    diff --git a/frontend/src/app/features/schemas/pages/schema/rules/schema-field-rules-form.component.scss b/frontend/src/app/features/schemas/pages/schema/rules/schema-field-rules-form.component.scss index e23e3babb..4a5a9ad7c 100644 --- a/frontend/src/app/features/schemas/pages/schema/rules/schema-field-rules-form.component.scss +++ b/frontend/src/app/features/schemas/pages/schema/rules/schema-field-rules-form.component.scss @@ -15,7 +15,5 @@ } .label { - font-size: $font-small; - font-weight: normal; line-height: 2.4rem; } \ No newline at end of file diff --git a/frontend/src/app/features/schemas/pages/schema/rules/schema-field-rules-form.component.ts b/frontend/src/app/features/schemas/pages/schema/rules/schema-field-rules-form.component.ts index 63c695198..1576eec4c 100644 --- a/frontend/src/app/features/schemas/pages/schema/rules/schema-field-rules-form.component.ts +++ b/frontend/src/app/features/schemas/pages/schema/rules/schema-field-rules-form.component.ts @@ -10,7 +10,7 @@ import { Component, Input, OnInit } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { EMPTY, Observable, shareReplay } from 'rxjs'; import { TranslatePipe } from '@app/framework'; -import { CodeEditorComponent, ConfigureFieldRulesForm, ConfirmClickDirective, ControlErrorsComponent, FIELD_RULE_ACTIONS, SchemaDto, SchemasService, SchemasState, ScriptCompletions } from '@app/shared'; +import { CodeEditorComponent, ConfigureFieldRulesForm, ConfirmClickDirective, ControlErrorsComponent, FIELD_RULE_ACTIONS, FieldPropertiesDto, SchemaDto, SchemasService, SchemasState, ScriptCompletions } from '@app/shared'; @Component({ selector: 'sqx-schema-field-rules-form', @@ -32,7 +32,7 @@ export class SchemaFieldRulesFormComponent implements OnInit { public editForm = new ConfigureFieldRulesForm(); - public fieldNames!: ReadonlyArray; + public fieldOptions: ReadonlyArray<{ label: string; value: string }> = []; public fieldActions = FIELD_RULE_ACTIONS; public fieldCompletions: Observable = EMPTY; @@ -49,21 +49,39 @@ export class SchemaFieldRulesFormComponent implements OnInit { } public ngOnChanges() { - const fieldNames: string[] = []; + const fieldNames = new Set(); + const fieldTags = new Set(); + + const addField = (name: string, properties: FieldPropertiesDto) => { + fieldNames.add(name); + + if (properties.tags) { + for (const tag of properties.tags) { + fieldTags.add(tag); + } + } + }; for (const field of this.schema.fields) { if (field.properties.isContentField) { - fieldNames.push(field.name); + addField(field.name, field.properties); for (const nestedField of field.nested || []) { if (nestedField.properties.isContentField) { - fieldNames.push(`${field.name}.${nestedField.name}`); + addField(`${field.name}.${nestedField.name}`, nestedField.properties); } } } } - this.fieldNames = fieldNames.sort(); + this.fieldOptions = [ + ...[...fieldNames] + .sorted() + .map(value => ({ label: `field: ${value}`, value })), + ...[...fieldTags] + .sorted() + .map(value => ({ label: `tag: ${value}`, value: `tag:${value}` })), + ]; this.isEditable = this.schema.canUpdateUrls; @@ -72,7 +90,7 @@ export class SchemaFieldRulesFormComponent implements OnInit { } public add() { - this.editForm.add(this.fieldNames); + this.editForm.add(this.fieldOptions[0].value); } public saveSchema() { diff --git a/frontend/src/app/features/schemas/pages/schemas/schema-form.component.scss b/frontend/src/app/features/schemas/pages/schemas/schema-form.component.scss index 4ad9f618a..3887afc6d 100644 --- a/frontend/src/app/features/schemas/pages/schemas/schema-form.component.scss +++ b/frontend/src/app/features/schemas/pages/schemas/schema-form.component.scss @@ -14,55 +14,4 @@ $icon-size: 4.5rem; .name-group { margin-bottom: 1.5rem; -} - -.type { - margin-bottom: .5rem; - - &-title { - font-weight: bold; - } - - &-text { - font-size: $font-small; - } - - &-icon { - background: transparent; - border: 1px solid $color-border; - border-radius: $border-radius; - color: $color-theme-brand; - cursor: pointer; - font-size: 1.75rem; - font-weight: normal; - height: $icon-size; - line-height: $icon-size; - margin-right: .5rem; - text-align: center; - text-decoration: none; - width: $icon-size; - - .radio-input { - display: none; - } - - &.active { - @include box-shadow-outer(0, 0, 10px, .5); - background: $color-theme-brand; - border-color: $color-theme-brand; - color: $color-white; - - &:hover { - color: $color-white; - } - } - - &:hover { - border-color: $color-border-dark; - } - } - - .radio-input { - display: none; - } } \ No newline at end of file diff --git a/frontend/src/app/features/settings/pages/clients/client-add-form.component.html b/frontend/src/app/features/settings/pages/clients/client-add-form.component.html index 586d26524..98cf7e28f 100644 --- a/frontend/src/app/features/settings/pages/clients/client-add-form.component.html +++ b/frontend/src/app/features/settings/pages/clients/client-add-form.component.html @@ -1,4 +1,4 @@ -
    +
    {{ "clients.add.title" | sqxTranslate }}
    diff --git a/frontend/src/app/features/settings/pages/contributors/contributor-add-form.component.html b/frontend/src/app/features/settings/pages/contributors/contributor-add-form.component.html index 0b5dbefe0..0b3d3659c 100644 --- a/frontend/src/app/features/settings/pages/contributors/contributor-add-form.component.html +++ b/frontend/src/app/features/settings/pages/contributors/contributor-add-form.component.html @@ -1,4 +1,4 @@ -
    +
    {{ "contributors.add.title" | sqxTranslate }}
    diff --git a/frontend/src/app/features/settings/pages/jobs/jobs-page.component.html b/frontend/src/app/features/settings/pages/jobs/jobs-page.component.html index cca5b2e9b..e6e6985df 100644 --- a/frontend/src/app/features/settings/pages/jobs/jobs-page.component.html +++ b/frontend/src/app/features/settings/pages/jobs/jobs-page.component.html @@ -1,5 +1,5 @@ - + -
    +
    + +
    -
    - -
    +
    +
    - - {{ "roles.add.description" | sqxTranslate }} -
    +
    + + {{ "roles.add.description" | sqxTranslate }}
    diff --git a/frontend/src/app/features/settings/pages/roles/roles-page.component.html b/frontend/src/app/features/settings/pages/roles/roles-page.component.html index 3e3a9d989..af0b9dd53 100644 --- a/frontend/src/app/features/settings/pages/roles/roles-page.component.html +++ b/frontend/src/app/features/settings/pages/roles/roles-page.component.html @@ -15,7 +15,7 @@ @if (rolesState.defaultRoles | async; as defaultRoles) { @if (defaultRoles.length > 0) {
    -
    {{ "roles.defaultRoles" | sqxTranslate }}
    +
    {{ "roles.defaultRoles" | sqxTranslate }}
    {{ "roles.defaultRoles.hint" | sqxTranslate }} @for (role of defaultRoles; track role.name) { diff --git a/frontend/src/app/features/settings/pages/templates/templates-page.component.html b/frontend/src/app/features/settings/pages/templates/templates-page.component.html index a9a942116..e5b372b0a 100644 --- a/frontend/src/app/features/settings/pages/templates/templates-page.component.html +++ b/frontend/src/app/features/settings/pages/templates/templates-page.component.html @@ -1,5 +1,5 @@ - + -
    +
    + +
    -
    - -
    +
    +
    - - {{ "workflows.add.description" | sqxTranslate }} - + + + {{ "workflows.add.description" | sqxTranslate }} diff --git a/frontend/src/app/features/settings/pages/workflows/workflows-page.component.html b/frontend/src/app/features/settings/pages/workflows/workflows-page.component.html index 47888abf2..98ac8b1c9 100644 --- a/frontend/src/app/features/settings/pages/workflows/workflows-page.component.html +++ b/frontend/src/app/features/settings/pages/workflows/workflows-page.component.html @@ -24,6 +24,10 @@ } } + @if (workflowsState.canCreate | async) { + + } + @if (schemasSource && (workflowsState.isLoaded | async) && (workflowsState.workflows | async); as workflows) { @for (workflow of workflows; track workflow.id) { @@ -32,10 +36,6 @@ {{ "workflows.empty" | sqxTranslate }} } - - @if (workflowsState.canCreate | async) { - - } } diff --git a/frontend/src/app/features/teams/pages/contributors/contributor-add-form.component.html b/frontend/src/app/features/teams/pages/contributors/contributor-add-form.component.html index fc90b3972..71e35fc03 100644 --- a/frontend/src/app/features/teams/pages/contributors/contributor-add-form.component.html +++ b/frontend/src/app/features/teams/pages/contributors/contributor-add-form.component.html @@ -1,4 +1,4 @@ -
    +
    {{ "contributors.add.title" | sqxTranslate }}
    diff --git a/frontend/src/app/framework/angular/forms/editors/code-editor.component.ts b/frontend/src/app/framework/angular/forms/editors/code-editor.component.ts index 8c6c67c73..aff13ef15 100644 --- a/frontend/src/app/framework/angular/forms/editors/code-editor.component.ts +++ b/frontend/src/app/framework/angular/forms/editors/code-editor.component.ts @@ -15,6 +15,8 @@ export const SQX_CODE_EDITOR_CONTROL_VALUE_ACCESSOR: any = { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => CodeEditorComponent), multi: true, }; +type Editor = AceAjax.Editor & { completers?: AceAjax.Completer[]; completer?: { showDocTooltip: (item: any) => void } }; + @Component({ selector: 'sqx-code-editor', styleUrls: ['./code-editor.component.scss'], @@ -26,7 +28,7 @@ export const SQX_CODE_EDITOR_CONTROL_VALUE_ACCESSOR: any = { }) export class CodeEditorComponent extends StatefulControlComponent<{}, any> implements AfterViewInit, FocusComponent { private aceModes?: ModeList; - private aceEditor?: AceAjax.Editor; + private aceEditor?: Editor; private aceTools = false; private valueChanged = new Subject(); private value = ''; @@ -165,37 +167,43 @@ export class CodeEditorComponent extends StatefulControlComponent<{}, any> imple this.onDisabled(this.snapshot.isDisabled); if (this.aceTools) { - const previous = (this.aceEditor as any)['completers'] as AceAjax.Completer[]; - - (this.aceEditor as any)['completers'] = [ - previous?.[0], { - getCompletions: (editor: any, session: any, pos: any, prefix: any, callback: any) => { - callback(null, this.completions); - }, - getDocTooltip: (item: AceAjax.Completion) => { - const source = item as unknown as ScriptCompletion; - - if (source.path && source.description) { - item.docHTML = `${item.value}
    ${source.description}`; - - if (source.allowedValues) { - item.docHTML += '
    Allowed Values:
      '; - - for (const value of source.allowedValues) { - item.docHTML += `
    • ${value}
    • `; - } - - item.docHTML += '
    '; + const originalCompleter = this.aceEditor.completer!; + const originalShowDocTooltip = originalCompleter.showDocTooltip; + originalCompleter.showDocTooltip = item => { + requestAnimationFrame(() => { + originalShowDocTooltip.apply(originalCompleter, [item]); + }); + }; + + const completer: AceAjax.Completer = { + getCompletions: (editor: any, session: any, pos: any, prefix: any, callback: any) => { + callback(null, this.completions); + }, + getDocTooltip: (item: AceAjax.Completion) => { + const source = item as unknown as ScriptCompletion; + + if (source.path && source.description) { + item.docHTML = `${item.value}
    ${source.description}`; + + if (source.allowedValues) { + item.docHTML += '
    Allowed Values:
      '; + + for (const value of source.allowedValues) { + item.docHTML += `
    • ${value}
    • `; } - if (source.deprecationReason) { - item.docHTML += `
      Deprecated: ${source.deprecationReason}
      `; - } + item.docHTML += '
    '; } - }, - identifierRegexps: [/[a-zA-Z_0-9\$\-\.\u00A2-\u2000\u2070-\uFFFF]/], - } as AceAjax.Completer, - ]; + + if (source.deprecationReason) { + item.docHTML += `
    Deprecated: ${source.deprecationReason}
    `; + } + } + }, + }; + + const previous = this.aceEditor.completers || []; + this.aceEditor.completers = [...previous, completer]; } this.aceEditor.on('blur', () => { this.changeValue(); diff --git a/frontend/src/app/framework/angular/modals/dialog-renderer.component.html b/frontend/src/app/framework/angular/modals/dialog-renderer.component.html index 64f41f3e7..9ed46ac67 100644 --- a/frontend/src/app/framework/angular/modals/dialog-renderer.component.html +++ b/frontend/src/app/framework/angular/modals/dialog-renderer.component.html @@ -19,12 +19,13 @@ } +
    @for (notification of snapshot.notifications; track notification) { - diff --git a/frontend/src/app/framework/angular/modals/dialog-renderer.component.scss b/frontend/src/app/framework/angular/modals/dialog-renderer.component.scss index a4eb1e998..82eff4beb 100644 --- a/frontend/src/app/framework/angular/modals/dialog-renderer.component.scss +++ b/frontend/src/app/framework/angular/modals/dialog-renderer.component.scss @@ -34,25 +34,31 @@ &-bottom-left { @include fixed(auto, auto, 0, 0); } +} - .shadow, - .shadowed { - position: relative; - } +.alert { + overflow-x: hidden; + overflow-y: hidden; +} + +.timed { + position: relative; +} + +.timer { + @include absolute(0, auto, 0, 0); + animation: width 10s 1 linear; + border: 0; + border-radius: 0; + height: 4px; + width: 100%; - .shadowed { - z-index: 2; + &-danger { + background-color: $color-theme-error; } - .shadow { - @include absolute(0, auto, 0, 0); - animation: width 10s 1 linear; - background: $color-black; - border: 0; - opacity: .1; - overflow: hidden; - width: 100%; - z-index: 1; + &-primary { + background-color: $color-theme-brand; } } @@ -71,12 +77,13 @@ $caret-size: 6px; color: $color-white; font-size: $font-small; font-weight: normal; - padding: .5rem; + padding: .25rem .5rem; + pointer-events: none; white-space: nowrap; &-left { &::after { - @include caret-right($color-tooltip, $caret-size); + @include caret-right($color-tooltip, $caret-size + 1px); @include absolute(50%, -$caret-size * 2, auto, auto); margin-top: -$caret-size; } @@ -84,7 +91,7 @@ $caret-size: 6px; &-right { &::after { - @include caret-left($color-tooltip, $caret-size); + @include caret-left($color-tooltip, $caret-size + 1px); @include absolute(50%, auto, auto, -$caret-size * 2); margin-top: -$caret-size; } @@ -92,7 +99,7 @@ $caret-size: 6px; &-top { &::after { - @include caret-bottom($color-tooltip, $caret-size); + @include caret-bottom($color-tooltip, $caret-size + 1px); @include absolute(auto, auto, -$caret-size * 2, 50%); margin-left: -$caret-size; } @@ -100,7 +107,7 @@ $caret-size: 6px; &-bottom { &::after { - @include caret-top($color-tooltip, $caret-size); + @include caret-top($color-tooltip, $caret-size + 1px); @include absolute(-$caret-size * 2, auto, auto, 50%); margin-left: -$caret-size; } diff --git a/frontend/src/app/framework/angular/modals/dialog-renderer.stories.ts b/frontend/src/app/framework/angular/modals/dialog-renderer.stories.ts new file mode 100644 index 000000000..cf1b29d4b --- /dev/null +++ b/frontend/src/app/framework/angular/modals/dialog-renderer.stories.ts @@ -0,0 +1,139 @@ +/* + * Squidex Headless CMS + * + * @license + * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. + */ + +import { Component, inject, Input } from '@angular/core'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; +import { Meta, moduleMetadata, StoryObj } from '@storybook/angular'; +import { ConfirmClickDirective, DialogRendererComponent, DialogService, ErrorDto, LocalizerService, RootViewComponent, TooltipDirective } from '@app/framework'; + +type TestMode = 'ErrorText' | 'ErrorDetails' | 'Info'; + +@Component({ + selector: 'sqx-test', + template: ` + + `, + imports: [ + DialogRendererComponent, + ], +}) +class TestComponent { + public readonly dialogs = inject(DialogService); + + @Input() + public mode: TestMode = 'Info'; + + public test() { + if (this.mode === 'ErrorDetails') { + const error = new ErrorDto(500, + 'Error in Server', + 'Error Code', + [ + 'Details 1', + 'Details 2', + 'Details 3', + 'Details 4', + ], + ); + + this.dialogs.notifyError(error); + } else if (this.mode === 'ErrorText') { + this.dialogs.notifyError('Error'); + } else { + this.dialogs.notifyInfo('Info'); + } + } +} + +export default { + title: 'Framework/Dialogs', + component: DialogRendererComponent, + decorators: [ + moduleMetadata({ + imports: [ + BrowserAnimationsModule, + ConfirmClickDirective, + RootViewComponent, + TestComponent, + TooltipDirective, + ], + providers: [ + DialogService, + { + provide: LocalizerService, + useValue: new LocalizerService({ + 'common.no': 'No', + 'common.remember': 'Remember', + 'common.yes': 'Yes', + }), + }, + ], + }), + ], + render: args => ({ + props: args, + template: ` + +
    +

    Dialogs

    +
    + + + +
    + +

    Tooltips

    +
    + + + + +
    + +

    Immediate Tooltips

    +
    + + + + +
    + +

    Confirm

    +
    + + + +
    +
    + + +
    + `, + }), +} as Meta; + +type Story = StoryObj; + +export const Primary: Story = { + args: { + }, +}; \ No newline at end of file diff --git a/frontend/src/app/framework/utils/types.ts b/frontend/src/app/framework/utils/types.ts index a2880ca58..1f3804ae1 100644 --- a/frontend/src/app/framework/utils/types.ts +++ b/frontend/src/app/framework/utils/types.ts @@ -101,18 +101,6 @@ export module Types { return Types.isUndefined(value) === true || Types.isNull(value) === true; } - export function fastMerge(lhs: ReadonlyArray, rhs: ReadonlyArray) { - if (rhs.length === 0) { - return lhs; - } - - if (lhs.length === 0) { - return rhs; - } - - return [...lhs, ...rhs]; - } - export function clone(lhs: T): T { if (Types.isArray(lhs)) { const result = []; diff --git a/frontend/src/app/shared/components/forms/geolocation-editor.component.html b/frontend/src/app/shared/components/forms/geolocation-editor.component.html index c5df8b931..6d3771fa4 100644 --- a/frontend/src/app/shared/components/forms/geolocation-editor.component.html +++ b/frontend/src/app/shared/components/forms/geolocation-editor.component.html @@ -12,26 +12,22 @@
    - @if (!snapshot.isCompact) { -
    - -
    - } - -
    +
    -
    - @if (!snapshot.isCompact) { -
    - -
    - } + @if (!snapshot.isCompact) { + + } +
    -
    +
    + + @if (!snapshot.isCompact) { + + }
    @if (!snapshot.isCompact) { diff --git a/frontend/src/app/shared/components/forms/geolocation-editor.component.scss b/frontend/src/app/shared/components/forms/geolocation-editor.component.scss index f5c247da2..fee0ffa6f 100644 --- a/frontend/src/app/shared/components/forms/geolocation-editor.component.scss +++ b/frontend/src/app/shared/components/forms/geolocation-editor.component.scss @@ -23,4 +23,16 @@ .form-control { max-width: 100%; } +} + +.coordinate { + position: relative; + + label { + @include absolute(.5rem, null, null, 1rem); + } + + .form-control { + padding-left: 3rem; + } } \ No newline at end of file diff --git a/frontend/src/app/shared/components/forms/geolocation-editor.component.ts b/frontend/src/app/shared/components/forms/geolocation-editor.component.ts index afc9f3dc2..78a7748c7 100644 --- a/frontend/src/app/shared/components/forms/geolocation-editor.component.ts +++ b/frontend/src/app/shared/components/forms/geolocation-editor.component.ts @@ -183,7 +183,7 @@ export class GeolocationEditorComponent extends StatefulControlComponentthis).isRequired = _data["isRequired"]; (this).isRequiredOnPublish = _data["isRequiredOnPublish"]; (this).isHalfWidth = _data["isHalfWidth"]; + (this).isCreateOnly = _data["isCreateOnly"]; (this).editorUrl = _data["editorUrl"]; if (Array.isArray(_data["tags"])) { (this).tags = [] as any; @@ -3129,6 +3132,7 @@ export abstract class FieldPropertiesDto implements IFieldPropertiesDto { data["isRequired"] = this.isRequired; data["isRequiredOnPublish"] = this.isRequiredOnPublish; data["isHalfWidth"] = this.isHalfWidth; + data["isCreateOnly"] = this.isCreateOnly; data["editorUrl"] = this.editorUrl; if (Array.isArray(this.tags)) { data["tags"] = []; @@ -3174,6 +3178,8 @@ export interface IFieldPropertiesDto { readonly isRequiredOnPublish?: boolean; /** Indicates if the field should be rendered with half width only. */ readonly isHalfWidth?: boolean; + /** Indicates if the field can only be created and not modified. */ + readonly isCreateOnly?: boolean; /** Optional url to the editor. */ readonly editorUrl?: string | undefined; /** Tags for automation processes. */ diff --git a/frontend/src/app/shared/state/contents.form-rules.ts b/frontend/src/app/shared/state/contents.form-rules.ts index f47ba485a..fca9709fc 100644 --- a/frontend/src/app/shared/state/contents.form-rules.ts +++ b/frontend/src/app/shared/state/contents.form-rules.ts @@ -9,10 +9,10 @@ /* eslint-disable no-useless-return */ import { Types } from '@app/framework'; -import { FieldRuleDto, SchemaDto } from './../model'; +import { FieldDto, FieldRuleDto, NestedFieldDto, SchemaDto } from './../model'; export type RuleContext = { data: any; user?: any }; -export type RuleForm = { fieldPath: string }; +export type RuleForm = { path: string; field: FieldDto | NestedFieldDto }; export interface CompiledRules { get rules(): ReadonlyArray; @@ -24,12 +24,13 @@ export interface RulesProvider { getRules(form: RuleForm): CompiledRules; } +const EMPTY_RULES_ARRAY: CompiledRule[] = []; +const EMPTY_RULES_STATIC = { rules: EMPTY_RULES_ARRAY }; +const TAG_PREFIX = 'tag:'; + export class CompiledRule { private readonly function: Function; - - public get field() { - return this.rule.field; - } + private readonly evaluator: (path: string, field: FieldDto | NestedFieldDto) => boolean; public get action() { return this.rule.action; @@ -39,13 +40,35 @@ export class CompiledRule { private readonly rule: FieldRuleDto, private readonly useItemData: boolean, ) { - try { - this.function = new Function(`return function(user, ctx, data, itemData) { return ${rule.condition} }`)(); - } catch { - this.function = () => false; + if (rule.field.startsWith(TAG_PREFIX)) { + const tag = rule.field.substring(TAG_PREFIX.length).trim(); + + this.evaluator = (_, field) => { + const tags = field.properties?.tags; + + return Types.isArray(tags) && tags.indexOf(tag) >= 0; + }; + } else { + this.evaluator = (path, _) => { + return this.rule.field === path; + }; + } + + if (!rule.condition) { + this.function = () => true; + } else { + try { + this.function = new Function(`return function(user, ctx, data, itemData) { return ${rule.condition} }`)(); + } catch { + this.function = () => false; + } } } + public isApplied(path: string, field: FieldDto | NestedFieldDto) { + return this.evaluator(path, field); + } + public eval(context: RuleContext, itemData: any) { try { const data = this.useItemData ? itemData || context.data : context.data; @@ -56,10 +79,8 @@ export class CompiledRule { } } } -const EMPTY_RULES: CompiledRule[] = []; -const EMPTY_RULES_STATIC = { rules: EMPTY_RULES }; -class ComponentRules implements ComponentRules { +class ComponentRules implements CompiledRules { private previouSchema?: SchemaDto; private compiledRules: ReadonlyArray = []; @@ -68,9 +89,9 @@ class ComponentRules implements ComponentRules { if (schema !== this.previouSchema) { if (schema) { - this.compiledRules = Types.fastMerge(this.parentRules.getRules(this.form).rules, this.getRelativeRules(this.form, schema)); + this.compiledRules = fastMerge(this.parentRules.getRules(this.form).rules, this.getRelativeRules(this.form, schema)); } else { - this.compiledRules = EMPTY_RULES; + this.compiledRules = EMPTY_RULES_ARRAY; } } @@ -89,13 +110,13 @@ class ComponentRules implements ComponentRules { const rules = this.parentRules.compileRules(schema); if (rules.length === 0) { - return EMPTY_RULES; + return EMPTY_RULES_ARRAY; } - const pathField = form.fieldPath.substring(this.parentPath.length + 1); - const pathSimple = getSimplePath(pathField); + const pathNormal = form.path.substring(this.parentPath.length + 1); + const pathSimple = getSimplePath(pathNormal); - return rules.filter(x => x.field === pathField || x.field === pathSimple); + return rules.filter(x => x.isApplied(pathNormal, form.field) || x.isApplied(pathSimple, form.field)); } } @@ -118,15 +139,15 @@ export class ComponentRulesProvider implements RulesProvider { export class RootRulesProvider implements RulesProvider { private readonly rulesCache: { [id: string]: ReadonlyArray } = {}; - private readonly rules: ReadonlyArray; + private readonly rulesRoot: ReadonlyArray; constructor(schema: SchemaDto) { - this.rules = this.compileRules(schema); + this.rulesRoot = this.compileRules(schema); } public compileRules(schema: SchemaDto) { if (!schema) { - return EMPTY_RULES; + return EMPTY_RULES_ARRAY; } let result = this.rulesCache[schema.id]; @@ -141,16 +162,16 @@ export class RootRulesProvider implements RulesProvider { } public getRules(form: RuleForm) { - const allRules = this.rules; + const allRules = this.rulesRoot; if (allRules.length === 0) { return EMPTY_RULES_STATIC; } - const pathField = form.fieldPath; - const pathSimple = getSimplePath(pathField); + const pathNormal = form.path; + const pathSimple = getSimplePath(pathNormal); - const rules = allRules.filter(x => x.field === pathField || x.field === pathSimple); + const rules = allRules.filter(x => x.isApplied(pathNormal, form.field) || x.isApplied(pathSimple, form.field)); return { rules }; } @@ -164,4 +185,16 @@ function getSimplePath(path: string) { } return parts.join('.'); +} + +function fastMerge(lhs: ReadonlyArray, rhs: ReadonlyArray) { + if (rhs.length === 0) { + return lhs; + } + + if (lhs.length === 0) { + return rhs; + } + + return [...lhs, ...rhs]; } \ No newline at end of file diff --git a/frontend/src/app/shared/state/contents.forms-helpers.ts b/frontend/src/app/shared/state/contents.forms-helpers.ts index 5f0cd9099..758f5b328 100644 --- a/frontend/src/app/shared/state/contents.forms-helpers.ts +++ b/frontend/src/app/shared/state/contents.forms-helpers.ts @@ -16,7 +16,7 @@ import { CompiledRules, RuleContext, RulesProvider } from './contents.form-rules export type TranslationStatuses = { [language: string]: number }; -export type AnyFieldDto = FieldDto | NestedFieldDto; +export type AnyFieldDto = NestedFieldDto; export function contentsTranslationStatus(datas: any[], schema: SchemaDto, languages: ReadonlyArray) { const result: TranslationStatuses = {}; @@ -100,7 +100,7 @@ export abstract class Hidden { export type FieldGroup = { separator?: T; fields: T[]; id: string }; -export function groupFields(fields: ReadonlyArray, keepEmpty = false): FieldGroup[] { +export function groupFields(fields: ReadonlyArray, keepEmpty = false): FieldGroup[] { const result: FieldGroup[] = []; let currentSeparator: T | undefined; @@ -170,23 +170,38 @@ export class PartitionConfig { } } -export type AbstractContentFormState = { +export type AbstractContentFormState = Readonly<{ isDisabled?: boolean; isHidden?: boolean; isRequired?: boolean; -}; +}>; -export interface FormGlobals { +export type FormGlobals = Readonly<{ partitions: PartitionConfig; + remoteValidator?: ValidatorFn; schema: SchemaDto; schemas: { [id: string ]: SchemaDto }; - remoteValidator?: ValidatorFn; -} - -export abstract class AbstractContentForm extends Hidden { +}>; + +export type ControlArgs = Readonly<{ + field: T; + globals: FormGlobals; + isOptional: boolean; + partition: string; + path: string; + rules: RulesProvider; +}>; + +export abstract class AbstractContentForm extends Hidden { private readonly collapsed$ = new BehaviorSubject(null); private readonly ruleSet: CompiledRules; + public readonly field: T; + public readonly globals: FormGlobals; + public readonly isOptional: boolean; + public readonly partition: string; + public readonly path: string; + public get collapsed() { return this.collapsed$.value; } @@ -196,20 +211,28 @@ export abstract class AbstractContentForm, public readonly form: TForm, - public readonly isOptional: boolean, - public readonly rules: RulesProvider, ) { super(); + this.field = args.field; + this.globals = args.globals; + this.isOptional = args.isOptional; + this.partition = args.partition; + this.path = args.path; + this.ruleSet = args.rules.getRules(args); + } + + public relativePath(relative: string) { + return `${this.path}.${relative}`; + } - this.ruleSet = rules.getRules(this); + public setValue(value: any) { + this.form.reset(value); } - public path(relative: string) { - return `${this.fieldPath}.${relative}`; + public unset() { + this.form.setValue(undefined); } public collapse() { @@ -252,14 +275,6 @@ export abstract class AbstractContentForm { }, }); - // Should hide fields. expect(array.get(0)!.get('field1')!.hidden).toBeTruthy(); expect(array.get(1)!.get('field1')!.hidden).toBeFalsy(); }); + it('should hide field based on tags', () => { + const contentForm = createForm([ + createField({ id: 1, properties: createProperties('Number', { tags: ['tag1'] }), partitioning: 'invariant' }), + createField({ id: 2, properties: createProperties('Number'), partitioning: 'invariant' }), + ], [ + new FieldRuleDto({ field: 'tag:tag1', action: 'Hide' }), + ]); + + const field1 = contentForm.get('field1'); + const field1_iv = contentForm.get('field1')!.get('iv'); + const field2 = contentForm.get('field2'); + + expect(field1!.hidden).toBeTruthy(); + expect(field2!.hidden).toBeFalsy(); + expect(field1_iv!.hidden).toBeTruthy(); + }); + it('should add component with default values', () => { const componentId = MathHelper.guid(); const component = createSchema({ diff --git a/frontend/src/app/shared/state/contents.forms.ts b/frontend/src/app/shared/state/contents.forms.ts index 55244ebdf..8e316cc20 100644 --- a/frontend/src/app/shared/state/contents.forms.ts +++ b/frontend/src/app/shared/state/contents.forms.ts @@ -10,9 +10,9 @@ import { BehaviorSubject, Observable } from 'rxjs'; import { distinctUntilChanged, map } from 'rxjs/operators'; import { debounceTimeSafe, ExtendedFormGroup, Form, FormArrayTemplate, TemplatedFormArray, Types, value$ } from '@app/framework'; import { FormGroupTemplate, TemplatedFormGroup } from '@app/framework/angular/forms/templated-form-group'; -import { AppLanguageDto, ComponentFieldPropertiesDto, FieldDto, fieldInvariant, LanguageDto, NestedFieldDto, SchemaDto, TableField } from '../model'; -import { ComponentRulesProvider, RootRulesProvider, RulesProvider } from './contents.form-rules'; -import { AbstractContentForm, AbstractContentFormState, AnyFieldDto, contentTranslationStatus, FieldSection, fieldTranslationStatus, FormGlobals, groupFields, PartitionConfig } from './contents.forms-helpers'; +import { AppLanguageDto, ComponentFieldPropertiesDto, FieldDto, fieldInvariant, LanguageDto, SchemaDto, TableField } from '../model'; +import { ComponentRulesProvider, RootRulesProvider } from './contents.form-rules'; +import { AbstractContentForm, AbstractContentFormState, AnyFieldDto, contentTranslationStatus, ControlArgs, FieldSection, fieldTranslationStatus, FormGlobals, groupFields, PartitionConfig } from './contents.forms-helpers'; import { FieldDefaultValue, FieldsValidators } from './contents.forms.visitors'; type SaveQueryFormType = { name: string; user: boolean }; @@ -104,6 +104,7 @@ export class EditContentForm extends Form { remoteValidator: this.remoteValidator, }; + const form = this.form; const rules = new RootRulesProvider(schema); this.sections = groupFields(schema.fields).map(({ separator, fields }) => { @@ -111,16 +112,17 @@ export class EditContentForm extends Form { for (const field of fields) { const childForm = - new FieldForm( - globals, + new FieldForm({ field, - field.name, - rules); - - this.form.setControl(field.name, childForm.form); + globals, + isOptional: false, + partition: '', + path: field.name, + rules, + }); + form.setControl(field.name, childForm.form); forms.push(childForm); - this.fields[field.name] = childForm; } @@ -212,25 +214,24 @@ export class FieldForm extends AbstractContentForm { public readonly translationStatus = value$(this.form).pipe(map(x => fieldTranslationStatus(x))); - constructor(globals: FormGlobals, field: FieldDto, fieldPath: string, rules: RulesProvider) { - super(globals, field, fieldPath, FieldForm.buildForm(), false, rules); + constructor(args: ControlArgs) { + super(args, FieldForm.buildForm()); - for (const { key, isOptional } of globals.partitions.getAll(field)) { + for (const { key: partition, isOptional } of args.globals.partitions.getAll(args.field)) { const childForm = - buildForm( - this.globals, - field, - this.path(key), + buildForm({ + ...args, isOptional, - rules, - key); + partition, + path: this.relativePath(partition), + }); - this.partitions[key] = childForm; + this.partitions[partition] = childForm; - this.form.setControl(key, childForm.form); + this.form.setControl(partition, childForm.form); } - this.isRequired = !!field.properties.isRequired; + this.isRequired = !!args.field.properties.isRequired; } public get(language: string | LanguageDto | AppLanguageDto) { @@ -277,15 +278,13 @@ export class FieldForm extends AbstractContentForm { } } -export class FieldValueForm extends AbstractContentForm { +export class FieldValueForm extends AbstractContentForm { private isRequired = false; - constructor(globals: FormGlobals, field: FieldDto | NestedFieldDto, fieldPath: string, isOptional: boolean, rules: RulesProvider, partition: string) { - super(globals, field, fieldPath, - FieldValueForm.buildControl(field, isOptional, partition, globals), - isOptional, rules); + constructor(args: ControlArgs) { + super(args, FieldValueForm.buildControl(args, args.partition)); - this.isRequired = !!field.properties.isRequired && !isOptional; + this.isRequired = !!args.field.properties.isRequired && !args.isOptional; } protected updateCustomState(_context: any, _itemData: any, state: AbstractContentFormState) { @@ -295,7 +294,6 @@ export class FieldValueForm extends AbstractContentForm { +export class FieldArrayForm extends AbstractContentForm { private readonly item$ = new BehaviorSubject>([]); public get itemChanges(): Observable> { @@ -335,15 +333,15 @@ export class FieldArrayForm extends AbstractContentForm this), FieldsValidators.create(field, isOptional)), - isOptional, rules); + super(args, + new TemplatedFormArray( + new ArrayTemplate(() => this), + FieldsValidators.create(args.field, args.isOptional))); - this.form.setValue(FieldDefaultValue.get(field, this.partition), { emitEvent: false }); + this.form.setValue(FieldDefaultValue.get(args.field, args.partition), { emitEvent: false }); (this.form.template as any)['form'] = this; } @@ -410,40 +408,25 @@ class ArrayTemplate implements FormArrayTemplate { this.createItem(model); model.internalItems = [...this.model.items, child]; - return child.form; } public removeControl(index: number) { const model = this.model; - model.internalItems = model.items.filter((_, i) => i !== index); } public clearControls() { const model = this.model; - model.internalItems = []; } private createItem(model: FieldArrayForm) { - return new ArrayItemForm( - model.globals, - model.field as FieldDto, - model.fieldPath, - model.isOptional, - model.rules, - model.partition); + return new ArrayItemForm(model.args); } private createComponent(model: FieldArrayForm) { - return new ComponentForm( - model.globals, - model.field as FieldDto, - model.fieldPath, - model.isOptional, - model.rules, - model.partition); + return new ComponentForm(model.args); } } @@ -479,12 +462,8 @@ export class ObjectFormBase extends AbstractContentForm implements FormGroupTemplate { - private currentSchema: ReadonlyArray | undefined; + private currentSchema: ReadonlyArray | undefined; protected get model() { return this.modelProvider(); @@ -552,18 +531,14 @@ abstract class ObjectTemplate impleme const forms: FieldItemForm[] = []; for (const field of fields) { - const childForm = buildForm( - model.globals, + const childForm = buildForm({ + ...model.args, field, - model.path(field.name), - model.isOptional, - model.rules, - model.partition); + path: model.relativePath(field.name), + }); form.setControl(field.name, childForm.form); - forms.push(childForm); - fieldByName[field.name] = childForm; } @@ -585,10 +560,8 @@ abstract class ObjectTemplate impleme } export class ArrayItemForm extends ObjectFormBase { - constructor(globals: FormGlobals, field: FieldDto, fieldPath: string, isOptional: boolean, rules: RulesProvider, partition: string) { - super(globals, field, fieldPath, isOptional, rules, - new ArrayItemTemplate(() => this), partition); - + constructor(args: ControlArgs) { + super(args, new ArrayItemTemplate(() => this)); this.form.build({}); } } @@ -622,11 +595,11 @@ export class ComponentForm extends ObjectFormBase { return this.field.properties as ComponentFieldPropertiesDto; } - constructor(globals: FormGlobals, field: AnyFieldDto, fieldPath: string, isOptional: boolean, rules: RulesProvider, partition: string) { - super(globals, field, fieldPath, isOptional, - new ComponentRulesProvider(fieldPath, rules, () => this.schema), - new ComponentTemplate(() => this), - partition); + constructor(args: ControlArgs) { + super({ + ...args, + rules: new ComponentRulesProvider(args.path, args.rules, () => this.schema), + }, new ComponentTemplate(() => this)); this.form.reset(undefined); } @@ -656,15 +629,15 @@ class ComponentTemplate extends ObjectTemplate { } } -function buildForm(globals: FormGlobals, field: FieldDto | NestedFieldDto, fieldPath: string, isOptional: boolean, rules: RulesProvider, partition: string) { - switch (field.properties.fieldType) { +function buildForm(args: ControlArgs) { + switch (args.field.properties.fieldType) { case 'Array': - return new FieldArrayForm(globals, field, fieldPath, isOptional, rules, partition, false); + return new FieldArrayForm(args, false); case 'Component': - return new ComponentForm(globals, field, fieldPath, isOptional, rules, partition); + return new ComponentForm(args); case 'Components': - return new FieldArrayForm(globals, field, fieldPath, isOptional, rules, partition, true); + return new FieldArrayForm(args, true); default: - return new FieldValueForm(globals, field, fieldPath, isOptional, rules, partition); + return new FieldValueForm(args); } } diff --git a/frontend/src/app/shared/state/schemas.forms.ts b/frontend/src/app/shared/state/schemas.forms.ts index 3c7363dd3..322178211 100644 --- a/frontend/src/app/shared/state/schemas.forms.ts +++ b/frontend/src/app/shared/state/schemas.forms.ts @@ -94,8 +94,8 @@ export class ConfigureFieldRulesForm extends Form) { - this.form.add(fieldNames); + public add(name?: string) { + this.form.add(name); } public remove(index: number) { @@ -114,17 +114,15 @@ export class ConfigureFieldRulesForm extends Form) { + public createControl(_: any, fieldName?: string) { return new ExtendedFormGroup({ action: new UntypedFormControl('Disable', Validators.required, ), - field: new UntypedFormControl(fieldNames?.[0], - Validators.required, - ), - condition: new UntypedFormControl('', + field: new UntypedFormControl(fieldName, Validators.required, ), + condition: new UntypedFormControl(''), }); } } @@ -229,6 +227,9 @@ export class EditFieldForm extends Form { const updated = createSchema(1, '_new'); - schemasService.setup(x => x.putSchema(app, schema1, It.isAny(), schema1.version)) + schemasService.setup(x => x.putSchema(app, schema1, request, schema1.version)) .returns(() => of(updated)).verifiable(); schemasState.update(schema1, request).subscribe(); @@ -258,7 +258,7 @@ describe('SchemasState', () => { const updated = createSchema(1, '_new'); - schemasService.setup(x => x.putSchemaSync(app, schema1, It.isAny(), schema1.version)) + schemasService.setup(x => x.putSchemaSync(app, schema1, request, schema1.version)) .returns(() => of(updated)).verifiable(); schemasState.synchronize(schema1, request).subscribe(); @@ -272,7 +272,7 @@ describe('SchemasState', () => { const updated = createSchema(1, '_new'); - schemasService.setup(x => x.putScripts(app, schema1, It.isAny(), schema1.version)) + schemasService.setup(x => x.putScripts(app, schema1, request, schema1.version)) .returns(() => of(updated)).verifiable(); schemasState.configureScripts(schema1, request).subscribe(); @@ -286,7 +286,7 @@ describe('SchemasState', () => { const updated = createSchema(1, '_new'); - schemasService.setup(x => x.putPreviewUrls(app, schema1, It.isAny(), schema1.version)) + schemasService.setup(x => x.putPreviewUrls(app, schema1, request, schema1.version)) .returns(() => of(updated)).verifiable(); schemasState.configurePreviewUrls(schema1, request).subscribe(); @@ -295,6 +295,20 @@ describe('SchemasState', () => { expect(schemasState.snapshot.selectedSchema).toEqualIgnoringProps(updated); }); + it('should update schema and selected schema if field rulesconfigured', () => { + const request = new ConfigureFieldRulesDto({ fieldRules: [] }); + + const updated = createSchema(1, '_new'); + + schemasService.setup(x => x.putFieldRules(app, schema1, request, schema1.version)) + .returns(() => of(updated)).verifiable(); + + schemasState.configureFieldRules(schema1, request).subscribe(); + + expect(schemasState.snapshot.schemas).toEqualIgnoringProps([updated, schema2]); + expect(schemasState.snapshot.selectedSchema).toEqualIgnoringProps(updated); + }); + it('should add schema to snapshot if created', () => { const request = new CreateSchemaDto({ name: 'newName' }); diff --git a/frontend/src/app/shared/state/schemas.state.ts b/frontend/src/app/shared/state/schemas.state.ts index 846d318ab..4b68aed63 100644 --- a/frontend/src/app/shared/state/schemas.state.ts +++ b/frontend/src/app/shared/state/schemas.state.ts @@ -249,7 +249,7 @@ export class SchemasState extends State { } public configureFieldRules(schema: SchemaDto, request: ConfigureFieldRulesDto): Observable { - return this.schemasService.putFieldRules(this.appName, schema, { fieldRules: request } as any, schema.version).pipe( + return this.schemasService.putFieldRules(this.appName, schema, request, schema.version).pipe( tap(updated => { this.replaceSchema(updated, schema.version, 'i18n:schemas.saved'); }), diff --git a/frontend/src/app/theme/_bootstrap-vars.scss b/frontend/src/app/theme/_bootstrap-vars.scss index ebba4e4d1..28461a77e 100644 --- a/frontend/src/app/theme/_bootstrap-vars.scss +++ b/frontend/src/app/theme/_bootstrap-vars.scss @@ -44,6 +44,8 @@ $warning: $color-theme-warning; // Background. $body-bg: $color-background; +$body-secondary-color: $color-text-decent; + // Borders. $border-color: $color-border; $border-radius: .25rem; diff --git a/frontend/src/app/theme/_bootstrap.scss b/frontend/src/app/theme/_bootstrap.scss index 6ced88ba6..7a8aedded 100644 --- a/frontend/src/app/theme/_bootstrap.scss +++ b/frontend/src/app/theme/_bootstrap.scss @@ -379,8 +379,8 @@ a { cursor: pointer; font-size: 1.5rem; font-weight: normal; - margin-right: .5rem; - margin-bottom: .5rem; + margin-right: .75rem; + margin-bottom: 1rem; text-align: center; width: 4.5rem; } @@ -560,7 +560,13 @@ $icon-size: 4.5rem; } &-text { - font-size: .9rem; + font-size: $font-small; + margin-top: 0; + margin-bottom: 1rem; + } + + label { + font-size: $font-size-base; } .btn-radio { @@ -669,6 +675,10 @@ $icon-size: 4.5rem; &-title { margin-bottom: 1rem; } + + &-create { + padding: 1.5rem 2rem; + } } // diff --git a/frontend/src/app/theme/_vars.scss b/frontend/src/app/theme/_vars.scss index e4b3b847c..928e0274e 100644 --- a/frontend/src/app/theme/_vars.scss +++ b/frontend/src/app/theme/_vars.scss @@ -63,6 +63,8 @@ $color-badge-primary-foreground: #4186e0; $color-badge-secondary-background: #e6e6e6; $color-badge-secondary-foreground: #555; +$body-secondary-color: $color-text-decent; + $border-radius: .25rem; $input-shadow: inset 0 1px 2px rgb(0 0 0 / 8%); diff --git a/tools/TestSuite/TestSuite.ApiTests/ContentQueryTests.cs b/tools/TestSuite/TestSuite.ApiTests/ContentQueryTests.cs index d0f5105aa..5d8c2dec8 100644 --- a/tools/TestSuite/TestSuite.ApiTests/ContentQueryTests.cs +++ b/tools/TestSuite/TestSuite.ApiTests/ContentQueryTests.cs @@ -144,7 +144,7 @@ public class ContentQueryTests(ContentQueryFixture fixture) : IClassFixture x.Data.Number).ToArray()); - Assert.Equal(new[] { 5, 6 }, items2.Select(x => x.Data.Number).ToArray()); + Assert.Equal([4, 5, 6], items1.Select(x => x.Data.Number).ToArray()); + Assert.Equal([5, 6], items2.Select(x => x.Data.Number).ToArray()); } [Fact] @@ -662,7 +662,7 @@ public class ContentQueryTests(ContentQueryFixture fixture) : IClassFixture(query); var items = result.Items; - Assert.Equal(new[] { 4, 5, 6 }, items.Select(x => x.Data.Number).ToArray()); + Assert.Equal([4, 5, 6], items.Select(x => x.Data.Number).ToArray()); } [Fact] @@ -690,7 +690,7 @@ public class ContentQueryTests(ContentQueryFixture fixture) : IClassFixture(query); var items = result.Items; - Assert.Equal(new[] { 4, 5, 6 }, items.Select(x => x.Data.Number).ToArray()); + Assert.Equal([4, 5, 6], items.Select(x => x.Data.Number).ToArray()); } [Fact] @@ -714,7 +714,7 @@ public class ContentQueryTests(ContentQueryFixture fixture) : IClassFixture(query); var items = result["queryMyReadsContents"]; - Assert.Equal(new[] { 4, 5, 6 }, items?.Select(x => x["data"]?["number"]?["iv"]?.Value() ?? -1).ToArray()); + Assert.Equal([4, 5, 6], items?.Select(x => x["data"]?["number"]?["iv"]?.Value() ?? -1).ToArray() ?? []); } [Fact] diff --git a/tools/TestSuite/TestSuite.ApiTests/ContentUpdateTests.cs b/tools/TestSuite/TestSuite.ApiTests/ContentUpdateTests.cs index 0c2649eb2..b63a70302 100644 --- a/tools/TestSuite/TestSuite.ApiTests/ContentUpdateTests.cs +++ b/tools/TestSuite/TestSuite.ApiTests/ContentUpdateTests.cs @@ -1232,4 +1232,29 @@ public class ContentUpdateTests(ContentFixture fixture) : IClassFixture>(() => _.Contents.UpdateAsync(content)); + + Assert.Equal(400, ex.StatusCode); + Assert.Contains("Validation error: immutable.iv: Field cannot be changed", ex.ToString()); + } } diff --git a/tools/TestSuite/TestSuite.ApiTests/RuleValidationTests.cs b/tools/TestSuite/TestSuite.ApiTests/RuleValidationTests.cs index b7350fe60..ea74d8e70 100644 --- a/tools/TestSuite/TestSuite.ApiTests/RuleValidationTests.cs +++ b/tools/TestSuite/TestSuite.ApiTests/RuleValidationTests.cs @@ -45,7 +45,7 @@ public class RuleValidationTests(CreatedAppFixture fixture) : IClassFixture(async () => { - await _.Client.Rules.ValidateRuleAsync(trigger); + await _.Client.Rules.ValidateTriggerAsync(trigger); }); Assert.Equal(400, ex.StatusCode); diff --git a/tools/TestSuite/TestSuite.ApiTests/TestSuite.ApiTests.csproj b/tools/TestSuite/TestSuite.ApiTests/TestSuite.ApiTests.csproj index 528cfcc9c..c91e8e2f3 100644 --- a/tools/TestSuite/TestSuite.ApiTests/TestSuite.ApiTests.csproj +++ b/tools/TestSuite/TestSuite.ApiTests/TestSuite.ApiTests.csproj @@ -10,18 +10,18 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - + + + - - - + + + all runtime; build; native; contentfiles; analyzers diff --git a/tools/TestSuite/TestSuite.ApiTests/Verify/AppCreationTests.Should_create_app_from_templates.verified.txt b/tools/TestSuite/TestSuite.ApiTests/Verify/AppCreationTests.Should_create_app_from_templates.verified.txt index cb3973239..ff76546aa 100644 --- a/tools/TestSuite/TestSuite.ApiTests/Verify/AppCreationTests.Should_create_app_from_templates.verified.txt +++ b/tools/TestSuite/TestSuite.ApiTests/Verify/AppCreationTests.Should_create_app_from_templates.verified.txt @@ -45,7 +45,8 @@ Hints: The title of the page., IsRequired: true, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Links: { delete: { @@ -82,7 +83,8 @@ Hints: The text of the page., IsRequired: true, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Links: { delete: { @@ -118,7 +120,8 @@ Hints: Autogenerated slug that can be used to identity the page., IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Links: { delete: { @@ -235,7 +238,8 @@ Hints: The title of the post., IsRequired: true, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Links: { delete: { @@ -272,7 +276,8 @@ Hints: The text of the post., IsRequired: true, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Links: { delete: { @@ -308,7 +313,8 @@ Hints: Autogenerated slug that can be used to identity the post., IsRequired: false, IsRequiredOnPublish: false, - IsHalfWidth: false + IsHalfWidth: false, + IsCreateOnly: false }, Links: { delete: { diff --git a/tools/TestSuite/TestSuite.LoadTests/TestSuite.LoadTests.csproj b/tools/TestSuite/TestSuite.LoadTests/TestSuite.LoadTests.csproj index ac58fcf17..46cc58fd3 100644 --- a/tools/TestSuite/TestSuite.LoadTests/TestSuite.LoadTests.csproj +++ b/tools/TestSuite/TestSuite.LoadTests/TestSuite.LoadTests.csproj @@ -7,14 +7,14 @@ enable - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + all runtime; build; native; contentfiles; analyzers diff --git a/tools/TestSuite/TestSuite.Shared/Model/TestEntity.cs b/tools/TestSuite/TestSuite.Shared/Model/TestEntity.cs index f84376568..46a99fae2 100644 --- a/tools/TestSuite/TestSuite.Shared/Model/TestEntity.cs +++ b/tools/TestSuite/TestSuite.Shared/Model/TestEntity.cs @@ -82,6 +82,14 @@ public sealed class TestEntity : Content IsRequired = false } }, + new UpsertSchemaFieldDto + { + Name = TestEntityData.ImmutableField, + Properties = new StringFieldPropertiesDto + { + IsCreateOnly = true + } + }, ], Scripts = scripts, IsPublished = true @@ -133,6 +141,8 @@ public sealed class TestEntityData public static readonly string SearchableField = nameof(Searchable).ToLowerInvariant(); + public static readonly string ImmutableField = nameof(Immutable).ToLowerInvariant(); + public static readonly string StringField = nameof(String).ToLowerInvariant(); public static readonly string NumberField = nameof(Number).ToLowerInvariant(); @@ -151,6 +161,9 @@ public sealed class TestEntityData [JsonConverter(typeof(InvariantConverter))] public string? Id { get; set; } + [JsonConverter(typeof(InvariantConverter))] + public string? Immutable { get; set; } + [JsonConverter(typeof(InvariantConverter))] public string? String { get; set; } diff --git a/tools/TestSuite/TestSuite.Shared/TestSuite.Shared.csproj b/tools/TestSuite/TestSuite.Shared/TestSuite.Shared.csproj index 02baa2a29..43e993493 100644 --- a/tools/TestSuite/TestSuite.Shared/TestSuite.Shared.csproj +++ b/tools/TestSuite/TestSuite.Shared/TestSuite.Shared.csproj @@ -7,22 +7,22 @@ enable - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - + + + + + - - - + + + - - + +